Figure 1: A class with datatype property.
Ontology(<http://nomagic.com/ontology/example-case/case-02> Import(<http://www.omg.org/spec/PrimitiveTypes/20100901>) Declaration( Class(:Person) ) Declaration( DataProperty(:hasName) ) Declaration( AnnotationProperty(<http://purl.org/dc/terms/description>) ) Declaration( Datatype(xsd:string) ) AnnotationAssertion(rdfs:label :Person "Person"@en) SubClassOf( :Person ObjectIntersectionOf( DataMaxCardinality(1 :hasName xsd:string) DataMinCardinality(1 :hasName xsd:string) ) ) AnnotationAssertion(rdfs:label :hasName "has name"@en) DataPropertyDomain(:hasName :Person) DataPropertyRange(:hasName xsd:string) AnnotationAssertion(http://purl.org/dc/terms/description <http://www.omg.org/spec/PrimitiveTypes/20100901#String> "An instance of String defines a piece of text. The semantics of the string itself depends on its purpose, it can be a comment, computational language expression, OCL expression, etc. It is used for String attributes and String expressions in the metamodel."@en) )
Related Pages: