Re: Jena remote dataset and prefix mapping

2016-03-04 Thread Valerio Belcastro
Ok guys thank you all! Sorry but I'm new to Jena and Semantic web applications and I'm trying to figure out how things works. 2016-03-04 11:43 GMT+01:00 Andy Seaborne : > > Is it possible to get prefix mapping from remote graph in Jena? > > I think there is some confusion over a

Re: Jena remote dataset and prefix mapping

2016-03-04 Thread Andy Seaborne
> Is it possible to get prefix mapping from remote graph in Jena? I think there is some confusion over a "remote" graph here. With the standard SPARQL protocols, you can either query a remote endpoint or fetch a remote graph - SPARQL Graph Store Protocol (and dataset FWIW). DatasetAccessor

Re: Jena remote dataset and prefix mapping

2016-03-03 Thread Valerio Belcastro
I'm trying to implement this interface BaseRDFTripleModel which has a method called listNamespaces(). The Sesame implementation of this method is achieved by simply calling the

Re: Jena remote dataset and prefix mapping

2016-03-03 Thread A. Soroka
The class to which you refer is not a Jena type at all and has no connection with the Jena Graph type. The fact that the Sesame RepositoryConnection type understands namespace prefixes in no way implies that any particular Jena type will do the same thing in the same way. I’m not sure there is

Re: Jena remote dataset and prefix mapping

2016-03-03 Thread Valerio Belcastro
I want to achieve the same behavior of getNamespaces() method from Sesame RepositoryConnection class. This

Re: Jena remote dataset and prefix mapping

2016-03-03 Thread A. Soroka
Yes, this was my point: a SPARQL (RDF) dataset is not a syntactic construct. It is a collection of graphs defined by its behavior. If you could write some more about your use case for this mechanism, we might be able to help you resolve it by some other means… --- A. Soroka The University of

Re: Jena remote dataset and prefix mapping

2016-03-03 Thread Martynas Jusevičius
As far as I understand, prefix mapping is only available after parsing, as it's a purely syntactic thing. Some syntaxes have prefixes (Turtle or RDF/XML, for example), some don't (N-Triples). So in general you cannot retrieve them, as there is no such thing in the RDF data model. I might be wrong

Re: Jena remote dataset and prefix mapping

2016-03-03 Thread Valerio Belcastro
Jena Graph class has the method getPrefixMapping() . This method returns a map that associates prefixes to their uri. I would like to achieve the same behaviour with a remote graph without using

Re: Jena remote dataset and prefix mapping

2016-03-03 Thread Martynas Jusevičius
I think DatasetAccessor is for the Graph Store Protocol. On Thu, Mar 3, 2016 at 11:12 PM, A. Soroka wrote: > If you are talking about a graph accessed via SPARQL, it’s not clear (to me) > what you mean by “prefix mapping”. A SPARQL dataset doesn’t have a prefix > mapping

Re: Jena remote dataset and prefix mapping

2016-03-03 Thread A. Soroka
If you are talking about a graph accessed via SPARQL, it’s not clear (to me) what you mean by “prefix mapping”. A SPARQL dataset doesn’t have a prefix mapping that is constant between queries. Is there something else you mean by the term? --- A. Soroka The University of Virginia Library > On