Fuseki is an HTTP SPARQL server - but what is the backend? If it's TDB, you can use the code from the TDB examples with the corresponding TDB location.
If enabled, you could also use SPARQL Update protocol, i.e. write queries instead of Java code. The documentation: https://jena.apache.org/documentation/serving_data/#use-from-java On 21.06.2018 22:53, jena melina wrote: > hello , > > I'm have a java program that manipulate my ontology ( create activity , > tag , user ...) > > > > > public TEST() { > onto = ModelFactory.*createOntologyModel*(OntModelSpec.*OWL_MEM*); > OntDocumentManager manager = onto.getDocumentManager(); > > > manager.addAltEntry("https://www.w3.org/ns/test", "ontologies/test.owl") > ; > manager.addAltEntry("https://www.w3.org/ns/test2", > "ontologies/test2.owl"); > > this.synchronize(); > > > } > > > > For example to create Activity I use this method : > > public Resource createEntity(String uri) throws > AlreadyExistingRdfResourceException { > > Resource res = onto.getIndividual(uri); > if (res != null) throw new AlreadyExistingRdfResourceException(uri); > res = onto.createResource(uri); > return res; > } > > > > Now I need to use Fuseki server to save all modification that I do , but I > don’t want to do many modification on my code , so I don’t know if I can > found help here .. > > I know how to connect to Fuseki server , but I don’t found how I can save > the owl into fuseki server , and how I can request or modify my ontology > using (my code + Fuseki server ). > > > thanks for your help >
