You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Ankur Padia <pa...@gmail.com> on 2014/04/30 10:21:25 UTC
How to know which data set is selected ?
Hello everyone,
I am trying to print the name of the dataset and couple of rdf triples
from the dataset, once it is selected but before sparql query is entered in
the sparl.tpl.
However, I am not able to get access to the name of the dataset or the
dataset object in java to access the same.
I will be thankful if any one can let me know how to proceed.
Regards,
Ankur Padia.
Re: How to know which data set is selected ?
Posted by Andy Seaborne <an...@apache.org>.
On 30/04/14 09:21, Ankur Padia wrote:
> Hello everyone,
>
> I am trying to print the name of the dataset and couple of rdf triples
> from the dataset, once it is selected but before sparql query is entered in
> the sparl.tpl.
>
> However, I am not able to get access to the name of the dataset or the
> dataset object in java to access the same.
>
> I will be thankful if any one can let me know how to proceed.
>
> Regards,
> Ankur Padia.
>
Reading between the lines, I think your using Fuseki - is this on the
server or in a client application?
Andy
Re: How to know which data set is selected ?
Posted by Nagore Salaberria <na...@gmail.com>.
hello,
Regarding questions you can read your file to the SPARQL RDF query, you
must use the object model.
*for example:*
*FileManager.get().addLocatorClassLoader(elipticas.class.getClassLoader());*
*Model model = FileManager.get().loadModel("RDF/rodillo.rdf");*
*I hope I've helped*
*Nagore.*
2014-04-30 10:21 GMT+02:00 Ankur Padia <pa...@gmail.com>:
> Hello everyone,
>
> I am trying to print the name of the dataset and couple of rdf triples
> from the dataset, once it is selected but before sparql query is entered in
> the sparl.tpl.
>
> However, I am not able to get access to the name of the dataset or the
> dataset object in java to access the same.
>
> I will be thankful if any one can let me know how to proceed.
>
> Regards,
> Ankur Padia.
>
--
Nagore Salaberria<na...@gmail.com>