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 "Test-person Example Context Ontology"
m |
(→Instance Data) |
||
Line 22: | Line 22: | ||
</person:Person> | </person:Person> | ||
<higgins:NormalizedStringSimpleAttribute rdf:about="urn:color1"> | <higgins:NormalizedStringSimpleAttribute rdf:about="urn:color1"> | ||
− | <higgins:normalizedStringSimpleValue rdf:datatype="http://www.w3.org/2001/XMLSchema#normalizedString">blue</higgins:normalizedStringSimpleValue> | + | <higgins:normalizedStringSimpleValue |
+ | rdf:datatype="http://www.w3.org/2001/XMLSchema#normalizedString">blue | ||
+ | </higgins:normalizedStringSimpleValue> | ||
<higgins:source> | <higgins:source> | ||
<higgins:SubjectRelationship rdf:about="urn:subjectRelationship1"> | <higgins:SubjectRelationship rdf:about="urn:subjectRelationship1"> | ||
Line 31: | Line 33: | ||
</higgins:NormalizedStringSimpleAttribute> | </higgins:NormalizedStringSimpleAttribute> | ||
<higgins:NormalizedStringSimpleAttribute rdf:about="urn:phoneNumber1"> | <higgins:NormalizedStringSimpleAttribute rdf:about="urn:phoneNumber1"> | ||
− | <higgins:normalizedStringSimpleValue rdf:datatype="http://www.w3.org/2001/XMLSchema#normalizedString">555-1212</higgins:normalizedStringSimpleValue> | + | <higgins:normalizedStringSimpleValue |
+ | rdf:datatype="http://www.w3.org/2001/XMLSchema#normalizedString">555-1212 | ||
+ | </higgins:normalizedStringSimpleValue> | ||
</higgins:NormalizedStringSimpleAttribute> | </higgins:NormalizedStringSimpleAttribute> | ||
Or graphically:<br> | Or graphically:<br> | ||
[[Image:test-person-instances-1.2.JPG]] | [[Image:test-person-instances-1.2.JPG]] |
Revision as of 17:03, 29 September 2006
test-person.owl
Note: The following example conforms to higgins.owl version 1.2 or 1.3 (see [1])
http://www.eclipse.org/higgins/ontologies/2006/test-person.owl is an ontology that defines a Person class with eyeColor and homePhone attributes. This has been developed for illustrative and/or debugging purposes only.
CVS source files
Use this Eclipse .PSF (team project set) to get access to all files mentioned on this page:
<?xml version="1.0" encoding="UTF-8"?> <psf version="2.0"> <provider id="org.eclipse.team.cvs.core.cvsnature"> <project reference="1.0,:extssh:dev.eclipse.org:/cvsroot/technology,org.eclipse.higgins/ontology,org.eclipse.higgins.ontology"/> </provider> </psf>
Instance Data
Here is an example of an instance of a Person named Mary that is based on the above test-person.owl schema. Mary has a home number of 555-1212 and an eye color (as sourced by the RMV in Colorado) of blue:
<person:Person rdf:about="urn:Mary"> <person:homePhone rdf:resource="urn:phoneNumber1"/> <person:eyeColor rdf:resource="urn:color1"/> </person:Person> <higgins:NormalizedStringSimpleAttribute rdf:about="urn:color1"> <higgins:normalizedStringSimpleValue rdf:datatype="http://www.w3.org/2001/XMLSchema#normalizedString">blue </higgins:normalizedStringSimpleValue> <higgins:source> <higgins:SubjectRelationship rdf:about="urn:subjectRelationship1"> <higgins:contextURI>http://www.colorado.gov/rmv</higgins:contextURI> <higgins:subjectCUID>23-523-523-5-66</higgins:subjectCUID> </higgins:SubjectRelationship> </higgins:source> </higgins:NormalizedStringSimpleAttribute> <higgins:NormalizedStringSimpleAttribute rdf:about="urn:phoneNumber1"> <higgins:normalizedStringSimpleValue rdf:datatype="http://www.w3.org/2001/XMLSchema#normalizedString">555-1212 </higgins:normalizedStringSimpleValue> </higgins:NormalizedStringSimpleAttribute>