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

Reply via email to