On 14/10/15 10:03, Muhammad Asif Razzaq wrote:
Hi there,
Thanks for the support,
I have the requirement to extract *.owl* file using Jena API (output in
RDF/XML format),
"extract" means loaded into Fuseki presumably.
so is it possible to get the desired output from Fuseki1 server using
SPARQL over HTTP?, if so how can we retrieve it?, please guide,
Thanks in advance,
Best Regards
See DatasetAccessorFactory
DatasetAccessorFactory.createHTTP("http://localhost:3030/ds/data") ;
Get the model, print in any format you choose.
Scripting way to get the file:
http://jena.apache.org/documentation/fuseki2/soh.html
Andy
On Tue, Oct 6, 2015 at 1:43 AM, Andy Seaborne <[email protected]
<mailto:[email protected]>> wrote:
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
--
Regards
_
_
_*Muhammad Asif Razzaq*_