[TASK] Make code and ontology match more.
This commit is contained in:
1 parent
a4444da92e
commit
f49110eaef
4 files changed
+276
-87
No files matched your search
+238
-61
@@ -1,18 +1,42 @@
|
||||
<?xml version="1.0"?>
|
||||
<rdf:RDF xmlns="http://myexample.org/"
|
||||
xml:base="http://myexample.org/"
|
||||
<rdf:RDF xmlns="http://simontology.org/#"
|
||||
xml:base="http://simontology.org"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:owl="http://www.w3.org/2002/07/owl#"
|
||||
xmlns:xml="http://www.w3.org/XML/1998/namespace"
|
||||
xmlns:myexample="http://myexample.org/#"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
|
||||
xmlns:simontology="http://simontology.org/#"
|
||||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
|
||||
<owl:Ontology rdf:about="http://myexample.org/">
|
||||
<owl:Ontology rdf:about="http://simontology.org">
|
||||
<rdfs:comment xml:lang="de">Beispielhafte Ontologie für die Autosimulation</rdfs:comment>
|
||||
</owl:Ontology>
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Annotation properties
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#maximumMotorRPM -->
|
||||
|
||||
<owl:AnnotationProperty rdf:about="http://simontology.org/#maximumMotorRPM"/>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#maximumTirePressure -->
|
||||
|
||||
<owl:AnnotationProperty rdf:about="http://simontology.org/#maximumTirePressure"/>
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
@@ -24,21 +48,51 @@
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/#drives -->
|
||||
<!-- http://simontology.org/#drives -->
|
||||
|
||||
<owl:ObjectProperty rdf:about="http://myexample.org/#drives">
|
||||
<owl:inverseOf rdf:resource="http://myexample.org/#isDrivenBy"/>
|
||||
<rdfs:domain rdf:resource="http://myexample.org/#Driver"/>
|
||||
<rdfs:range rdf:resource="http://myexample.org/#Car"/>
|
||||
<owl:ObjectProperty rdf:about="http://simontology.org/#drives">
|
||||
<owl:inverseOf rdf:resource="http://simontology.org/#isDrivenBy"/>
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Driver"/>
|
||||
<rdfs:range rdf:resource="http://simontology.org/Car"/>
|
||||
</owl:ObjectProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/#isDrivenBy -->
|
||||
<!-- http://simontology.org/#isDrivenBy -->
|
||||
|
||||
<owl:ObjectProperty rdf:about="http://myexample.org/#isDrivenBy">
|
||||
<rdfs:domain rdf:resource="http://myexample.org/#Car"/>
|
||||
<rdfs:range rdf:resource="http://myexample.org/#Driver"/>
|
||||
<owl:ObjectProperty rdf:about="http://simontology.org/#isDrivenBy">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:range rdf:resource="http://simontology.org/Driver"/>
|
||||
</owl:ObjectProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#relatedCar -->
|
||||
|
||||
<owl:ObjectProperty rdf:about="http://simontology.org/#relatedCar">
|
||||
<owl:inverseOf rdf:resource="http://simontology.org/#relatedEvent"/>
|
||||
<rdfs:domain rdf:resource="http://simontology.org/CarEvent"/>
|
||||
<rdfs:range rdf:resource="http://simontology.org/Car"/>
|
||||
</owl:ObjectProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#relatedEvent -->
|
||||
|
||||
<owl:ObjectProperty rdf:about="http://simontology.org/#relatedEvent">
|
||||
<owl:inverseOf rdf:resource="http://simontology.org/#relatedUser"/>
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Driver"/>
|
||||
<rdfs:range rdf:resource="http://simontology.org/Event"/>
|
||||
</owl:ObjectProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#relatedUser -->
|
||||
|
||||
<owl:ObjectProperty rdf:about="http://simontology.org/#relatedUser">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Event"/>
|
||||
<rdfs:range rdf:resource="http://simontology.org/Driver"/>
|
||||
</owl:ObjectProperty>
|
||||
|
||||
|
||||
@@ -54,60 +108,129 @@
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/hasDriverLicense -->
|
||||
<!-- http://simobjects.org/maximumMotorRPM -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://myexample.org/hasDriverLicense">
|
||||
<rdfs:domain rdf:resource="http://myexample.org/#Driver"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
|
||||
<owl:DatatypeProperty rdf:about="http://simobjects.org/maximumMotorRPM">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#integer"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/requiresDriverLicense -->
|
||||
<!-- http://simobjects.org/maximumTirePressure -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://myexample.org/requiresDriverLicense">
|
||||
<rdfs:domain rdf:resource="http://myexample.org/#Car"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/#maximumMotorRPM -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://myexample.org/#maximumMotorRPM">
|
||||
<rdfs:domain rdf:resource="http://myexample.org/#Car"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#positiveInteger"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/#maximumTirePressure -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://myexample.org/#maximumTirePressure">
|
||||
<rdfs:domain rdf:resource="http://myexample.org/#Car"/>
|
||||
<owl:DatatypeProperty rdf:about="http://simobjects.org/maximumTirePressure">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#double"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/#minimumMotorRPM -->
|
||||
<!-- http://simontology.org/#handbrakeEngaged -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://myexample.org/#minimumMotorRPM">
|
||||
<rdfs:domain rdf:resource="http://myexample.org/#Car"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#positiveInteger"/>
|
||||
<owl:DatatypeProperty rdf:about="http://simontology.org/#handbrakeEngaged">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:domain rdf:resource="http://simontology.org/CarStatusEvent"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#boolean"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/#minimumTirePressure -->
|
||||
<!-- http://simontology.org/#hasDriverLicense -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://myexample.org/#minimumTirePressure">
|
||||
<rdfs:domain rdf:resource="http://myexample.org/#Car"/>
|
||||
<owl:DatatypeProperty rdf:about="http://simontology.org/#hasDriverLicense">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Driver"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#locked -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://simontology.org/#locked">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:domain rdf:resource="http://simontology.org/CarStatusEvent"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#boolean"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#minimumMotorRPM -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://simontology.org/#minimumMotorRPM">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#integer"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#minimumTirePressure -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://simontology.org/#minimumTirePressure">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#double"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#motorOn -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://simontology.org/#motorOn">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:domain rdf:resource="http://simontology.org/CarStatusEvent"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#boolean"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#motorRPM -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://simontology.org/#motorRPM">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:domain rdf:resource="http://simontology.org/CarStatusEvent"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#integer"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#requiresDriverLicense -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://simontology.org/#requiresDriverLicense">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#speed -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://simontology.org/#speed">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:domain rdf:resource="http://simontology.org/CarStatusEvent"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#integer"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#tirePressure -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://simontology.org/#tirePressure">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/Car"/>
|
||||
<rdfs:domain rdf:resource="http://simontology.org/CarStatusEvent"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#double"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/#usagePeriod -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="http://simontology.org/#usagePeriod">
|
||||
<rdfs:domain rdf:resource="http://simontology.org/CarTakenEvent"/>
|
||||
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#integer"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
@@ -119,15 +242,69 @@
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/#Car -->
|
||||
<!-- http://simontology.org/Car -->
|
||||
|
||||
<owl:Class rdf:about="http://myexample.org/#Car"/>
|
||||
<owl:Class rdf:about="http://simontology.org/Car"/>
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/#Driver -->
|
||||
<!-- http://simontology.org/CarAirbagEvent -->
|
||||
|
||||
<owl:Class rdf:about="http://myexample.org/#Driver"/>
|
||||
<owl:Class rdf:about="http://simontology.org/CarAirbagEvent">
|
||||
<rdfs:subClassOf rdf:resource="http://simontology.org/CarEvent"/>
|
||||
</owl:Class>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/CarEvent -->
|
||||
|
||||
<owl:Class rdf:about="http://simontology.org/CarEvent">
|
||||
<rdfs:subClassOf rdf:resource="http://simontology.org/Event"/>
|
||||
</owl:Class>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/CarReturnedEvent -->
|
||||
|
||||
<owl:Class rdf:about="http://simontology.org/CarReturnedEvent">
|
||||
<rdfs:subClassOf rdf:resource="http://simontology.org/CarUserEvent"/>
|
||||
</owl:Class>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/CarStatusEvent -->
|
||||
|
||||
<owl:Class rdf:about="http://simontology.org/CarStatusEvent">
|
||||
<rdfs:subClassOf rdf:resource="http://simontology.org/CarEvent"/>
|
||||
</owl:Class>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/CarTakenEvent -->
|
||||
|
||||
<owl:Class rdf:about="http://simontology.org/CarTakenEvent">
|
||||
<rdfs:subClassOf rdf:resource="http://simontology.org/CarUserEvent"/>
|
||||
</owl:Class>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/CarUserEvent -->
|
||||
|
||||
<owl:Class rdf:about="http://simontology.org/CarUserEvent">
|
||||
<rdfs:subClassOf rdf:resource="http://simontology.org/CarEvent"/>
|
||||
</owl:Class>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/Driver -->
|
||||
|
||||
<owl:Class rdf:about="http://simontology.org/Driver"/>
|
||||
|
||||
|
||||
|
||||
<!-- http://simontology.org/Event -->
|
||||
|
||||
<owl:Class rdf:about="http://simontology.org/Event"/>
|
||||
|
||||
|
||||
|
||||
@@ -142,25 +319,25 @@
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/#Max -->
|
||||
<!-- http://simobjects.org/Max -->
|
||||
|
||||
<owl:NamedIndividual rdf:about="http://myexample.org/#Max">
|
||||
<rdf:type rdf:resource="http://myexample.org/#Driver"/>
|
||||
<hasDriverLicense rdf:datatype="http://www.w3.org/2001/XMLSchema#string">B</hasDriverLicense>
|
||||
<owl:NamedIndividual rdf:about="http://simobjects.org/Max">
|
||||
<rdf:type rdf:resource="http://simontology.org/Driver"/>
|
||||
<simontology:hasDriverLicense rdf:datatype="http://www.w3.org/2001/XMLSchema#string">B</simontology:hasDriverLicense>
|
||||
</owl:NamedIndividual>
|
||||
|
||||
|
||||
|
||||
<!-- http://myexample.org/#Volvo -->
|
||||
<!-- http://simobjects.org/Volvo -->
|
||||
|
||||
<owl:NamedIndividual rdf:about="http://myexample.org/#Volvo">
|
||||
<rdf:type rdf:resource="http://myexample.org/#Car"/>
|
||||
<myexample:isDrivenBy rdf:resource="http://myexample.org/#Max"/>
|
||||
<requiresDriverLicense rdf:datatype="http://www.w3.org/2001/XMLSchema#string">B</requiresDriverLicense>
|
||||
<myexample:maximumMotorRPM rdf:datatype="http://www.w3.org/2001/XMLSchema#positiveInteger">4500</myexample:maximumMotorRPM>
|
||||
<myexample:maximumTirePressure rdf:datatype="http://www.w3.org/2001/XMLSchema#double">3.5</myexample:maximumTirePressure>
|
||||
<myexample:minimumMotorRPM rdf:datatype="http://www.w3.org/2001/XMLSchema#positiveInteger">800</myexample:minimumMotorRPM>
|
||||
<myexample:minimumTirePressure rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2.9</myexample:minimumTirePressure>
|
||||
<owl:NamedIndividual rdf:about="http://simobjects.org/Volvo">
|
||||
<rdf:type rdf:resource="http://simontology.org/Car"/>
|
||||
<simontology:isDrivenBy rdf:resource="http://simobjects.org/Max"/>
|
||||
<simontology:minimumMotorRPM rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">800</simontology:minimumMotorRPM>
|
||||
<simontology:minimumTirePressure rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2.9</simontology:minimumTirePressure>
|
||||
<simontology:requiresDriverLicense rdf:datatype="http://www.w3.org/2001/XMLSchema#string">B</simontology:requiresDriverLicense>
|
||||
<simontology:maximumMotorRPM rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">4500</simontology:maximumMotorRPM>
|
||||
<simontology:maximumTirePressure rdf:datatype="http://www.w3.org/2001/XMLSchema#double">3.5</simontology:maximumTirePressure>
|
||||
</owl:NamedIndividual>
|
||||
</rdf:RDF>
|
||||
|
||||
|
||||
Reference in new issue
Block a user