[TASK] Improve TBox.
This commit is contained in:
parent
142be2955d
commit
6e584ad301
|
@ -3,38 +3,48 @@
|
|||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
|
||||
|
||||
<rdf:Description rdf:about="http://example.org/carSim/carSimulationOntology#Car">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://example.org/carSim/carSimulationOntology#CarModel">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://example.org/carSim/carSimulationOntology#Driver">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://example.org/carSim/carSimulationOntology#Event">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://example.org/carSim/carSimulationOntology#CarEvent">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
|
||||
<rdfs:subClassOf rdf:resource="http://example.org/carSim/carSimulationOntology#Event"/>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://example.org/carSim/carSimulationOntology#CarAirbagEvent">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
|
||||
<rdfs:subClassOf rdf:resource="http://example.org/carSim/carSimulationOntology#CarEvent"/>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://example.org/carSim/carSimulationOntology#CarStatusEvent">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
|
||||
<rdfs:subClassOf rdf:resource="http://example.org/carSim/carSimulationOntology#CarEvent"/>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://example.org/carSim/carSimulationOntology#CarUserEvent">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
|
||||
<rdfs:subClassOf rdf:resource="http://example.org/carSim/carSimulationOntology#CarEvent"/>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://example.org/carSim/carSimulationOntology#CarTakenEvent">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
|
||||
<rdfs:subClassOf rdf:resource="http://example.org/carSim/carSimulationOntology#CarUserEvent"/>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://example.org/carSim/carSimulationOntology#CarReturnedEvent">
|
||||
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
|
||||
<rdfs:subClassOf rdf:resource="http://example.org/carSim/carSimulationOntology#CarUserEvent"/>
|
||||
</rdf:Description>
|
||||
|
||||
|
|
|
@ -51,11 +51,9 @@
|
|||
#------------------------------------------------------------------
|
||||
# RDFS Closure rules
|
||||
#------------------------------------------------------------------
|
||||
|
||||
# This one could be omitted since the results are not really very interesting!
|
||||
[rdf1and4: (?x ?p ?y) -> (?p rdf:type rdf:Property), (?x rdf:type rdfs:Resource), (?y rdf:type rdfs:Resource)]
|
||||
[rdfs7b: (?a rdf:type rdfs:Class) -> (?a rdfs:subClassOf rdfs:Resource)]
|
||||
|
||||
[rdfs2: (?x ?p ?y), (?p rdfs:domain ?c) -> (?x rdf:type ?c)]
|
||||
[rdfs3: (?x ?p ?y), (?p rdfs:range ?c) -> (?y rdf:type ?c)]
|
||||
[rdfs5a: (?a rdfs:subPropertyOf ?b), (?b rdfs:subPropertyOf ?c) -> (?a rdfs:subPropertyOf ?c)]
|
||||
|
|
|
@ -30,6 +30,7 @@ public class Main {
|
|||
Main.prefixManager = new PrefixManager();
|
||||
// Register generic prefixes
|
||||
Main.prefixManager.registerPrefix("rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#");
|
||||
Main.prefixManager.registerPrefix("rdfs", "http://www.w3.org/2000/01/rdf-schema#");
|
||||
Main.prefixManager.registerPrefix("xsd", "http://www.w3.org/2001/XMLSchema#");
|
||||
Main.prefixManager.registerPrefix("f", "http://larkc.eu/csparql/sparql/jena/ext#");
|
||||
|
||||
|
|
Loading…
Reference in New Issue