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 "Person-with-friend Example Context Ontology"

(Instance Data)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}
 
==person-with-friend.owl==
 
==person-with-friend.owl==
In this ontology we define a pwf:Person (a kind of [[Digital Subject]] class and a pwf:friend (a kind of higgins:attribute) property. (For the sake of simplicity in this example we've rolled our own "friend" relationship; in practice we'd try to build off existing schemas like FOAF, etc.)
+
In this ontology we define a pwf:Person (a kind of [[Digital Subject]] class and a pwf:friend (a kind of higgins:attribute) property (as well as pwf:firstname and pwf:surname). (For the sake of simplicity in this example we've rolled our own "friend" relationship; in practice we'd try to build off existing schemas like FOAF, etc.)
  
The entire ontology is here. As you'll see the friend property is defined:
+
The entire ontology is [http://www.eclipse.org/higgins/ontologies/2006/person-with-friend.owl here]. Within it you'll see that the friend property is defined as:
 
  <owl:ObjectProperty rdf:ID="friend">
 
  <owl:ObjectProperty rdf:ID="friend">
 
   <rdfs:subPropertyOf rdf:resource="&higgins;#attribute"/>
 
   <rdfs:subPropertyOf rdf:resource="&higgins;#attribute"/>
Line 34: Line 35:
 
===Graphically===
 
===Graphically===
 
[[Image:pwf-instance.JPG]]
 
[[Image:pwf-instance.JPG]]
 +
 +
==See Also==
 +
* [[Data Model]]
 +
 +
[[Category:Higgins Data Model]]

Latest revision as of 08:47, 16 December 2008

{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}

person-with-friend.owl

In this ontology we define a pwf:Person (a kind of Digital Subject class and a pwf:friend (a kind of higgins:attribute) property (as well as pwf:firstname and pwf:surname). (For the sake of simplicity in this example we've rolled our own "friend" relationship; in practice we'd try to build off existing schemas like FOAF, etc.)

The entire ontology is here. Within it you'll see that the friend property is defined as:

<owl:ObjectProperty rdf:ID="friend">
  <rdfs:subPropertyOf rdf:resource="&higgins;#attribute"/>
  <rdfs:domain rdf:resource="&higgins;#DigitalSubject"/>
  <rdfs:range rdf:resource="&higgins;#SubjectRelationship"/>
</owl:ObjectProperty>

Instance Data

<pwf:Person rdf:about="urn:mary">
  <pwf:firstname rdf:resource="urn:mary-firstname"/>
  <pwf:surname rdf:resource="urn:mary-surname"/>
  <pwf:friend rdf:resource="urn:sr-to-bob"/>
</pwf:Person>

<higgins:NormalizedStringSimpleAttribute rdf:about="urn:mary-firstname">
  <higgins:normalizedStringSimpleValue rdf:datatype="&xsd;normalizedString">
    Mary</higgins:normalizedStringSimpleValue>
</higgins:NormalizedStringSimpleAttribute>

<higgins:NormalizedStringSimpleAttribute rdf:about="urn:mary-surname">
  <higgins:normalizedStringSimpleValue rdf:datatype="&xsd;normalizedString">
    Ruddy</higgins:normalizedStringSimpleValue>
</higgins:NormalizedStringSimpleAttribute>

<higgins:SubjectRelationship rdf:about="urn:sr-to-bob">
  <higgins:contextURI rdf:datatype=&xsd;anyURI">
    http://example.com/robertjones/public-business-card</higgins:contextURI>
  <higgins:subjectCUID>bob</higgins:subjectCUID>
</higgins:SubjectRelationship>

Graphically

Pwf-instance.JPG

See Also

Back to the top