Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "Test-person Example Context Ontology"

 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
''Note: The following example conforms to higgins.owl version 0.5.5''
+
{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}
 +
==test-person.owl==
 +
''Note: The following example conforms to higgins.owl version 1.2 or 1.3 (see [http://www.eclipse.org/higgins/ontologies/2006/higgins.owl])''
  
Here [http://spwiki.editme.com/Person0-5-1 Person0.5.1] is an ontology that defines a Person class with eyeColor and homePhone attributes. Graphically:<br>
+
''Note: This example is out of date slightly WRT to higgins.owl version 1.13+" --the home phone attribute should subclass higgins:Correlation''
[[Image:Person0.5.1.JPG]]
+
 
 +
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.
  
 
==Instance Data==
 
==Instance Data==
Here is an example of a Person named Mary whose phone number is 555-1212 and whose eye color (as sourced by the RMV in Colorado) is blue: <br>
+
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: <br>
 +
 
 
  <person:Person rdf:about="urn:Mary">
 
  <person:Person rdf:about="urn:Mary">
  <person:homePhone rdf:resource="urn:phoneNumber1"/>
+
  <person:homePhone rdf:resource="urn:phoneNumber1"/>
  <person:eyeColor rdf:resource="urn:color1"/>
+
  <person:eyeColor rdf:resource="urn:color1"/>
 
  </person:Person>
 
  </person:Person>
  <higgins:StringDatatypeAttribute rdf:about="urn:color1">
+
  <higgins:NormalizedStringSimpleAttribute rdf:about="urn:color1">
  <higgins:stringDatatypeValue>blue</higgins:stringDatatypeValue>
+
  <higgins:normalizedStringSimpleValue
  <higgins:source>
+
  rdf:datatype="http://www.w3.org/2001/XMLSchema#normalizedString">blue
    <higgins:SubjectRelationship rdf:about="urn:subjectRelationship1">    
+
  </higgins:normalizedStringSimpleValue>
      <higgins:contextURI>http://www.colorado.gov/rmv</higgins:contextURI>
+
  <higgins:source>
      <higgins:subjectCUID>23-523-523-5-66</higgins:subjectCUID>
+
  <higgins:SubjectRelationship rdf:about="urn:subjectRelationship1">
    </higgins:SubjectRelationship>
+
    <higgins:contextURI>http://www.colorado.gov/rmv</higgins:contextURI>
  </higgins:source>
+
    <higgins:subjectCUID>23-523-523-5-66</higgins:subjectCUID>
  </higgins:StringDatatypeAttribute>
+
  </higgins:SubjectRelationship>
  <higgins:StringDatatypeAttribute rdf:about="urn:phoneNumber1">
+
  </higgins:source>
  <higgins:stringDatatypeValue>555-1212</higgins:stringDatatypeValue>
+
  </higgins:NormalizedStringSimpleAttribute>
  </higgins:StringDatatypeAttribute>
+
  <higgins:NormalizedStringSimpleAttribute rdf:about="urn:phoneNumber1">
 +
  <higgins:normalizedStringSimpleValue
 +
  rdf:datatype="http://www.w3.org/2001/XMLSchema#normalizedString">555-1212
 +
  </higgins:normalizedStringSimpleValue>
 +
  </higgins:NormalizedStringSimpleAttribute>
  
 
Or graphically:<br>
 
Or graphically:<br>
[[Image:pinst.png]]
+
[[Image:test-person-instances-1.2.JPG]]
 +
 
 +
[[Category:Higgins Data Model]]

Latest revision as of 08:47, 16 December 2008

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

test-person.owl

Note: The following example conforms to higgins.owl version 1.2 or 1.3 (see [1])

Note: This example is out of date slightly WRT to higgins.owl version 1.13+" --the home phone attribute should subclass higgins:Correlation

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.

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>

Or graphically:
Test-person-instances-1.2.JPG

Back to the top