Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Person-with-friend Example Context Ontology"
(→Instance Data) |
(→person-with-friend.owl) |
||
Line 5: | Line 5: | ||
<owl:ObjectProperty rdf:ID="friend"> | <owl:ObjectProperty rdf:ID="friend"> | ||
<rdfs:subPropertyOf rdf:resource="&higgins;#attribute"/> | <rdfs:subPropertyOf rdf:resource="&higgins;#attribute"/> | ||
− | <rdfs:domain rdf:resource=" | + | <rdfs:domain rdf:resource="&higgins;#DigitalSubject"/> |
− | <rdfs:range rdf:resource=" | + | <rdfs:range rdf:resource="&higgins;#SubjectRelationship"/> |
</owl:ObjectProperty> | </owl:ObjectProperty> | ||
Revision as of 10:47, 19 October 2006
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.)
The entire ontology is here. As you'll see the friend property is defined:
<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
<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>