Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Attribute"

(Relationship to RDF/OWL)
(Definition)
Line 5: Line 5:
  
 
== Definition ==
 
== Definition ==
* Defines a property of an [[Entity]] (or [[Context]]).  
+
* Is a property of an [[Entity]] (or [[Context]]).  
 
* Has one or more values all of which MUST be unique
 
* Has one or more values all of which MUST be unique
 
* Has either simple or complex value(s)
 
* Has either simple or complex value(s)
Line 12: Line 12:
 
** The allowed value(s) are defined by a [[Data Range]] (URI)
 
** The allowed value(s) are defined by a [[Data Range]] (URI)
 
* Complex values are [[Entity | Entities]]
 
* Complex values are [[Entity | Entities]]
* Has a type (URI).
+
* Has an [[Attribute Type]] id
  
=== Relationship to RDF/OWL ===
+
== Relationship to RDF/OWL ==
 
* The values of an attribute are the union of all objects O found in all RDF {subject, predicate, object} triples {S, P, O} such that S is the id of the Entity (or Context) in question and P is the string id of the [[Attribute Type]]
 
* The values of an attribute are the union of all objects O found in all RDF {subject, predicate, object} triples {S, P, O} such that S is the id of the Entity (or Context) in question and P is the string id of the [[Attribute Type]]
  

Revision as of 21:29, 1 September 2008

{{#eclipseproject:technology.higgins}}

Higgins logo 76Wx100H.jpg

Version

This page describes the concept of Attribute used in Context Data Model 1.1

Definition

  • Is a property of an Entity (or Context).
  • Has one or more values all of which MUST be unique
  • Has either simple or complex value(s)
  • Simple values:
    • Are literal values (e.g. "green") based on a "base" XML Schema type URI (e.g. string)
    • The allowed value(s) are defined by a Data Range (URI)
  • Complex values are Entities
  • Has an Attribute Type id

Relationship to RDF/OWL

  • The values of an attribute are the union of all objects O found in all RDF {subject, predicate, object} triples {S, P, O} such that S is the id of the Entity (or Context) in question and P is the string id of the Attribute Type

Kinds of Attributes Defined in CDM

Examples

The person Bob Smith might be represented as an Entity in the Context of his employer, the Port Control Authority. This Entity might have the following types of Attributes (and associated values) in this Context:

  • email-address = bob@portcontrol.gov
  • phone number = {617-555-1234, 617-333-4321} <-- multi-valued attribute example
  • passport information = ...etc.
  • fingerprint data = ...etc.
  • surname = "Smith"

The surname Attribute in the example above might have a type of http://openschemas.org/2006/person/surname. The schema associated with the containing Context provides metadata about this URI.

This same Bob Smith might also be represented as an Entity in a "customer-to-Clothes-R-Us" Context (this customer's relationship with the Clothes-R-Us merchant. In this Context Bob has these Attributes:

  • platinumCustomer = True
  • preferredColor = "blue"

Open Issues

  1. At present an Attribute cannot have N>1 values if the values are the same. For example a very odd father might name each of his three kids "frank". Thus the father Entity cannot have an attribute "names-of-children" whose values are "frank, frank, frank".
  2. We need to be able to describe the reality that "real world" context providers must restrict attributes to be "closed"

Back to the top