Branch | build status |
---|---|
master |
Materialize triples from database using : Ontop-Quest API + OBDA file + Ontology .
Steps :
1 - mvn clean install assembly:single
2 - Args
-owl : owl path file. ( Required )
-odba : Mapping file. ( Required )
-out : output path file. ( Required )
-q : Sparql Query. ( Not Required ) Default "SELECT DISTINCT ?S ?P ?O { ?S ?P ?O . } "
-ttl : Activate output turtle format. ( Not Required ). Default : FALSE
Note: if -ttl is specified, Query must contain exactly 3 variables ( S, P, O ) .
3 - Exp
❯ java -Xmx2048M -cp target/ontop-materializer-1.18.0-jar-with-dependencies.jar ontop.Main_1_18 \
-owl 'src/main/resources/mapping/ontology.owl' \
-obda 'src/main/resources/mapping/ontology.obda' \
-out './ontopMaterializedTriples.nt' \
-q " SELECT ?S ?P ?O { ?S ?P ?O } " \
-ttl
❯ java -Xmx2048M -cp target/ontop-materializer-1.18.0-jar-with-dependencies.jar ontop.Main_1_18 \
-owl 'src/main/resources/mapping/ontology.owl' \
-obda 'src/main/resources/mapping/ontology.obda' \
-out './ontopMaterializedTriples.nt' \
❯ java -Xmx2048M -cp target/ontop-materializer-1.18.0-jar-with-dependencies.jar ontop.Main_1_18 \
-owl 'src/main/resources/mapping/ontology.owl' \
-obda 'src/main/resources/mapping/ontology.obda' \
-out './ontopMaterializedTriples.nt' \
-q " SELECT ?uri ?name ?location ?aria WHERE { .... } "
❯ java -Xmx2048M -cp target/ontop-materializer-1.18.0-jar-with-dependencies.jar ontop.Main_1_18 \
-owl 'src/main/resources/mapping/ontology.owl' \
-obda 'src/main/resources/mapping/ontology.obda' \
-out './ontopMaterializedTriples.nt' \
-q " SELECT ?uri ?name ?location ?aria WHERE { .... } " \
-ttl