On 05/10/15 11:39, Muhammad Asif Razzaq wrote:
Dear Users,
I have downloaded Fuseki 1 Distribution. zip, unpacked it, executed on
command prompt in windows 7, and can access it on browser at port 3030. my
problem is, how can i access it through java code, I am using Netbeans 8, I
have problem to save and access that in rdf form, needs to store triples.
I have also downloaded TDB, question is whether all my triples will go in
.ttl files, or some other mechanism, please reply. Thanks in advance.
For loading data into a server:
DatasetAccessorFactory.createHTTP("http://localhost:3030/ds/data") ;
http://jena.apache.org/documentation/fuseki2/soh.html
to put RDF data into the server.
where /ds is the dataset created in the Fuseki UI.
For SPARQL query
http://jena.apache.org/documentation/query/sparql-remote.html
QueryExecutionFactory.sparqlService("http://localhost:3030/ds/query", ...)
and for SPARQL Update:
UpdateExecutionFactory.createRemote("http://localhost:3030/ds/update",
Andy