| 1 |
@prefix : <http://example.com/owl/families/> . |
| 2 |
@prefix otherOnt: <http://example.org/otherOntologies/families/> . |
| 3 |
@prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 4 |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 5 |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 6 |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 7 |
|
| 8 |
<http://example.com/owl/families> |
| 9 |
rdf:type owl:Ontology ; |
| 10 |
owl:imports <http://example.org/otherOntologies/families.owl> . |
| 11 |
|
| 12 |
:hasSpouse rdf:type owl:SymmetricProperty . |
| 13 |
:hasRelative rdf:type owl:ReflexiveProperty . |
| 14 |
:parentOf rdf:type owl:IrreflexiveProperty . |
| 15 |
:hasAncestor rdf:type owl:TransitiveProperty . |
| 16 |
|
| 17 |
:hasHusband rdf:type owl:FunctionalProperty . |
| 18 |
:hasHusband rdf:type owl:InverseFunctionalProperty . |
| 19 |
|
| 20 |
:hasWife rdf:type owl:ObjectProperty . |
| 21 |
:hasWife rdfs:domain :Man ; |
| 22 |
rdfs:range :Woman . |
| 23 |
:hasWife rdfs:subPropertyOf :hasSpouse . |
| 24 |
|
| 25 |
:hasSon owl:propertyDisjointWith :hasDaughter. |
| 26 |
:hasFather rdfs:subPropertyOf :hasParent. |
| 27 |
|
| 28 |
:hasParent owl:inverseOf :hasChild . |
| 29 |
:hasParent owl:propertyDisjointWith :hasSpouse . |
| 30 |
|
| 31 |
:hasGrandparent owl:propertyChainAxiom ( :hasParent :hasParent ) . |
| 32 |
:hasUncle owl:propertyChainAxiom ( :hasFather :hasBrother ) . |
| 33 |
|
| 34 |
:hasAge owl:equivalentProperty otherOnt:age . |
| 35 |
:hasAge rdf:type owl:DatatypeProperty . |
| 36 |
:hasAge rdf:type owl:FunctionalProperty . |
| 37 |
:hasAge rdfs:domain :Person ; |
| 38 |
rdfs:range xsd:nonNegativeInteger . |
| 39 |
|
| 40 |
:hasChild owl:equivalentProperty otherOnt:child . |
| 41 |
:hasChild rdf:type owl:AsymmetricProperty . |
| 42 |
|
| 43 |
:Woman rdfs:subClassOf :Person . |
| 44 |
|
| 45 |
:Mother rdfs:subClassOf :Woman . |
| 46 |
:Mother owl:equivalentClass [ |
| 47 |
rdf:type owl:Class ; |
| 48 |
owl:intersectionOf ( :Woman :Parent ) |
| 49 |
] . |
| 50 |
|
| 51 |
:Person rdf:type owl:Class . |
| 52 |
:Person owl:equivalentClass :Human . |
| 53 |
:Person rdfs:comment "Represents the set of all people."^^xsd:string . |
| 54 |
:Person owl:hasKey ( :hasSSN ) . |
| 55 |
:hasSSN rdf:type owl:DataProperty . |
| 56 |
:Parent owl:equivalentClass [ |
| 57 |
rdf:type owl:Class ; |
| 58 |
owl:unionOf ( :Mother :Father ) |
| 59 |
] . |
| 60 |
|
| 61 |
:Parent owl:equivalentClass [ |
| 62 |
rdf:type owl:Restriction ; |
| 63 |
owl:onProperty :hasChild ; |
| 64 |
owl:someValuesFrom :Person |
| 65 |
] . |
| 66 |
|
| 67 |
:Grandfather rdfs:subClassOf [ |
| 68 |
rdf:type owl:Class ; |
| 69 |
owl:intersectionOf ( :Man :Parent ) |
| 70 |
] . |
| 71 |
|
| 72 |
:HappyPerson |
| 73 |
owl:equivalentClass [ |
| 74 |
rdf:type owl:Class ; |
| 75 |
owl:intersectionOf ( [ rdf:type owl:Restriction ; |
| 76 |
owl:onProperty :hasChild ; |
| 77 |
owl:allValuesFrom :HappyPerson ] |
| 78 |
[ rdf:type owl:Restriction ; |
| 79 |
owl:onProperty :hasChild ; |
| 80 |
owl:someValuesFrom :HappyPerson ] |
| 81 |
) |
| 82 |
] . |
| 83 |
|
| 84 |
:JohnsChildren owl:equivalentClass [ |
| 85 |
rdf:type owl:Restriction ; |
| 86 |
owl:onProperty :hasParent ; |
| 87 |
owl:hasValue :John |
| 88 |
] . |
| 89 |
|
| 90 |
:NarcisticPerson owl:equivalentClass [ |
| 91 |
rdf:type owl:Restriction ; |
| 92 |
owl:onProperty :loves ; |
| 93 |
owl:hasSelf "true"^^xsd:boolean . |
| 94 |
] . |
| 95 |
|
| 96 |
:MyBirthdayGuests owl:equivalentClass [ |
| 97 |
rdf:type owl:Class ; |
| 98 |
owl:oneOf ( :Bill :John :Mary ) |
| 99 |
] . |
| 100 |
:Orphan owl:equivalentClass [ |
| 101 |
rdf:type owl:Restriction ; |
| 102 |
owl:onProperty [ owl:inverseOf :hasChild ] ; |
| 103 |
owl:allValuesFrom :Dead |
| 104 |
] . |
| 105 |
|
| 106 |
:Teenager rdfs:subClassOf |
| 107 |
[ rdf:type owl:Restriction ; |
| 108 |
owl:onProperty :hasAge ; |
| 109 |
owl:someValuesFrom |
| 110 |
[ rdf:type rdfs:Datatype ; |
| 111 |
owl:onDatatype xsd:integer ; |
| 112 |
owl:withRestrictions ( [ xsd:minExclusive "12"^^xsd:integer ] |
| 113 |
[ xsd:maxInclusive "19"^^xsd:integer ] |
| 114 |
) |
| 115 |
] |
| 116 |
] . |
| 117 |
|
| 118 |
:Man rdfs:subClassOf :Person . |
| 119 |
[] rdf:type owl:Axiom ; |
| 120 |
owl:annotatedSource :Man ; |
| 121 |
owl:annotatedProperty rdfs:subClassOf ; |
| 122 |
owl:annotatedTarget :Person ; |
| 123 |
rdfs:comment "States that every man is a person."^^xsd:string . |
| 124 |
|
| 125 |
:Adult owl:equivalentClass otherOnt:Grownup . |
| 126 |
|
| 127 |
:Father rdfs:subClassOf [ |
| 128 |
rdf:type owl:Class ; |
| 129 |
owl:intersectionOf ( :Man :Parent ) |
| 130 |
] . |
| 131 |
|
| 132 |
:ChildlessPerson owl:equivalentClass [ |
| 133 |
rdf:type owl:Class ; |
| 134 |
owl:intersectionOf ( :Person [ owl:complementOf :Parent ] ) |
| 135 |
] . |
| 136 |
:ChildlessPerson owl:subClassOf [ |
| 137 |
rdf:type owl:Class ; |
| 138 |
owl:intersectionOf ( :Person |
| 139 |
[ owl:complementOf [ |
| 140 |
rdf:type owl:Restriction ; |
| 141 |
owl:onProperty [ owl:inverseOf :hasParent ] ; |
| 142 |
owl:someValuesFrom owl:Thing |
| 143 |
] |
| 144 |
] |
| 145 |
) |
| 146 |
] . |
| 147 |
|
| 148 |
[] rdf:type owl:Class ; |
| 149 |
owl:intersectionOf ( [ rdf:type owl:Class ; |
| 150 |
owl:oneOf ( :Mary :Bill :Meg ) ] |
| 151 |
:Female |
| 152 |
) ; |
| 153 |
rdfs:subClassOf [ |
| 154 |
rdf:type owl:Class ; |
| 155 |
owl:intersectionOf ( :Parent |
| 156 |
[ rdf:type owl:Restriction ; |
| 157 |
owl:maxCardinality "1"^^xsd:nonNegativeInteger ; |
| 158 |
owl:onProperty :hasChild ] |
| 159 |
[ rdf:type owl:Restriction ; |
| 160 |
owl:onProperty :hasChild ; |
| 161 |
owl:allValuesFrom :Female ] |
| 162 |
) |
| 163 |
] . |
| 164 |
|
| 165 |
[] rdf:type owl:AllDisjointClasses ; |
| 166 |
owl:members ( :Mother :Father :YoungChild ) . |
| 167 |
|
| 168 |
[] rdf:type owl:AllDisjointClasses ; |
| 169 |
owl:members ( :Woman :Man ) . |
| 170 |
|
| 171 |
:personAge owl:equivalentClass |
| 172 |
[ rdf:type rdfs:Datatype; |
| 173 |
owl:onDatatype xsd:integer; |
| 174 |
owl:withRestrictions ( |
| 175 |
[ xsd:minInclusive "0"^^xsd:integer ] |
| 176 |
[ xsd:maxInclusive "150"^^xsd:integer ] |
| 177 |
) |
| 178 |
] . |