IO aAdder = aConn.add().io().format(RDFFormat.RDFXML);
aAdder.file(new File("data/FatherBrotherOnto.owl"));
URI Boys = ValueFactoryImpl.getInstance().createURI("http://www.lsis.fr/myOnto.owl#Boys");
URI Alice = ValueFactoryImpl.getInstance().createURI("http://www.lsis.fr/myOnto.owl#Alice");
Graph aGraph = Graphs.newGraph();
aGraph.add(Alice, RDF.TYPE, Boys);
aConn.add().graph(aGraph);
aConn.commit();
I used this code to create new instances in the ontology but i have not found these instance in the file.owl.
is there are other methods that i have to use it to do this ?IO aAdder = aConn.add().io().format(RDFFormat.RDFXML);
aAdder.file(new File("data/FatherBrotherOnto.owl"));
URI Boys = ValueFactoryImpl.getInstance().createURI("http://www.lsis.fr/myOnto.owl#Boys");
URI Alice = ValueFactoryImpl.getInstance().createURI("http://www.lsis.fr/myOnto.owl#Alice");
Graph aGraph = Graphs.newGraph();
aGraph.add(Alice, RDF.TYPE, Boys);
aConn.add().graph(aGraph);
aConn.commit();
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en