@prefix : .
@prefix otherOnt: .
@prefix owl: .
@prefix rdfs: .
@prefix rdf: .
@prefix xsd: .
rdf:type owl:Ontology ;
owl:imports .
:hasSpouse rdf:type owl:SymmetricProperty .
:hasRelative rdf:type owl:ReflexiveProperty .
:parentOf rdf:type owl:IrreflexiveProperty .
:hasAncestor rdf:type owl:TransitiveProperty .
:hasHusband rdf:type owl:FunctionalProperty .
:hasHusband rdf:type owl:InverseFunctionalProperty .
:hasWife rdf:type owl:ObjectProperty .
:hasWife rdfs:domain :Man ;
rdfs:range :Woman .
:hasWife rdfs:subPropertyOf :hasSpouse .
:hasSon owl:propertyDisjointWith :hasDaughter.
:hasFather rdfs:subPropertyOf :hasParent.
:hasParent owl:inverseOf :hasChild .
:hasParent owl:propertyDisjointWith :hasSpouse .
:hasGrandparent owl:propertyChainAxiom ( :hasParent :hasParent ) .
:hasUncle owl:propertyChainAxiom ( :hasFather :hasBrother ) .
:hasAge owl:equivalentProperty otherOnt:age .
:hasAge rdf:type owl:DatatypeProperty .
:hasAge rdf:type owl:FunctionalProperty .
:hasAge rdfs:domain :Person ;
rdfs:range xsd:nonNegativeInteger .
:hasChild owl:equivalentProperty otherOnt:child .
:hasChild rdf:type owl:AsymmetricProperty .
:Woman rdfs:subClassOf :Person .
:Mother rdfs:subClassOf :Woman .
:Mother owl:equivalentClass [
rdf:type owl:Class ;
owl:intersectionOf ( :Woman :Parent )
] .
:Person rdf:type owl:Class .
:Person owl:equivalentClass :Human .
:Person rdfs:comment "Represents the set of all people."^^xsd:string .
:Person owl:hasKey ( :hasSSN ) .
:hasSSN rdf:type owl:DataProperty .
:Parent owl:equivalentClass [
rdf:type owl:Class ;
owl:unionOf ( :Mother :Father )
] .
:Parent owl:equivalentClass [
rdf:type owl:Restriction ;
owl:onProperty :hasChild ;
owl:someValuesFrom :Person
] .
:Grandfather rdfs:subClassOf [
rdf:type owl:Class ;
owl:intersectionOf ( :Man :Parent )
] .
:HappyPerson
owl:equivalentClass [
rdf:type owl:Class ;
owl:intersectionOf ( [ rdf:type owl:Restriction ;
owl:onProperty :hasChild ;
owl:allValuesFrom :HappyPerson ]
[ rdf:type owl:Restriction ;
owl:onProperty :hasChild ;
owl:someValuesFrom :HappyPerson ]
)
] .
:JohnsChildren owl:equivalentClass [
rdf:type owl:Restriction ;
owl:onProperty :hasParent ;
owl:hasValue :John
] .
:NarcisticPerson owl:equivalentClass [
rdf:type owl:Restriction ;
owl:onProperty :loves ;
owl:hasSelf "true"^^xsd:boolean .
] .
:MyBirthdayGuests owl:equivalentClass [
rdf:type owl:Class ;
owl:oneOf ( :Bill :John :Mary )
] .
:Orphan owl:equivalentClass [
rdf:type owl:Restriction ;
owl:onProperty [ owl:inverseOf :hasChild ] ;
owl:allValuesFrom :Dead
] .
:Teenager rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:onProperty :hasAge ;
owl:someValuesFrom
[ rdf:type rdfs:Datatype ;
owl:onDatatype xsd:integer ;
owl:withRestrictions ( [ xsd:minExclusive "12"^^xsd:integer ]
[ xsd:maxInclusive "19"^^xsd:integer ]
)
]
] .
:Man rdfs:subClassOf :Person .
[] rdf:type owl:Axiom ;
owl:annotatedSource :Man ;
owl:annotatedProperty rdfs:subClassOf ;
owl:annotatedTarget :Person ;
rdfs:comment "States that every man is a person."^^xsd:string .
:Adult owl:equivalentClass otherOnt:Grownup .
:Father rdfs:subClassOf [
rdf:type owl:Class ;
owl:intersectionOf ( :Man :Parent )
] .
:ChildlessPerson owl:equivalentClass [
rdf:type owl:Class ;
owl:intersectionOf ( :Person [ owl:complementOf :Parent ] )
] .
:ChildlessPerson owl:subClassOf [
rdf:type owl:Class ;
owl:intersectionOf ( :Person
[ owl:complementOf [
rdf:type owl:Restriction ;
owl:onProperty [ owl:inverseOf :hasParent ] ;
owl:someValuesFrom owl:Thing
]
]
)
] .
[] rdf:type owl:Class ;
owl:intersectionOf ( [ rdf:type owl:Class ;
owl:oneOf ( :Mary :Bill :Meg ) ]
:Female
) ;
rdfs:subClassOf [
rdf:type owl:Class ;
owl:intersectionOf ( :Parent
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty :hasChild ]
[ rdf:type owl:Restriction ;
owl:onProperty :hasChild ;
owl:allValuesFrom :Female ]
)
] .
[] rdf:type owl:AllDisjointClasses ;
owl:members ( :Mother :Father :YoungChild ) .
[] rdf:type owl:AllDisjointClasses ;
owl:members ( :Woman :Man ) .
:personAge owl:equivalentClass
[ rdf:type rdfs:Datatype;
owl:onDatatype xsd:integer;
owl:withRestrictions (
[ xsd:minInclusive "0"^^xsd:integer ]
[ xsd:maxInclusive "150"^^xsd:integer ]
)
] .