Named graph with a relative URI

2015-07-28 Thread Jean-Marc Vanel
Hi I'm not sure if if having a named graph with its name being a relative URI is compliant with the W3C recommendations, But what is sure is that it does not work in TDB. The outcome of this code is that the named graph's content is not retrieved. The use case behind is that I'm developing a simp

Re: Named graph with a relative URI

2015-07-28 Thread Rob Vesse
Using relative URIs is almost always ill-advised since URI resolution will be system and environment dependent In this case the problem is that the URI gets resolved differently in different parts of the system Try listing the graphs to see the actual graph names that end up in the store: SELECT

Re: Named graph with a relative URI

2015-07-28 Thread Jean-Marc Vanel
Rob, I agree that it's not safe to use relative URI's, and I'll probably prefix my URI's with ldp: . I had already tested your query, and it returns the original (relative) graph name . 2015-07-28 13:10 GMT+02:00 Rob Vesse : > Using relative URIs is almost always ill-advised since URI resolu

Federated query result format

2015-07-28 Thread Roshan Bharath Das
Hello, How can I decide to get the query result format for a sparqlService in JSON for example?. Below is my code: Query query = QueryFactory.create(queryString); QueryExecution qe = QueryExecutionFactory.sparqlService(linkedmdb,query); ResultSet result = qe.execSelect(); The result is in XML fo

Re: Federated query result format

2015-07-28 Thread Martynas Jusevičius
Roshan, try ResultSetFormatter.outputAsJSON() https://jena.apache.org/documentation/javadoc/arq/com/hp/hpl/jena/query/ResultSetFormatter.html#outputAsJSON(com.hp.hpl.jena.query.ResultSet) On Tue, Jul 28, 2015 at 9:18 PM, Roshan Bharath Das wrote: > Hello, > > How can I decide to get the query re

Re: Federated query result format

2015-07-28 Thread Roshan Bharath Das
Thanks. But I would like to know if there is an option to encode in the URL so that I don't have to convert after receiving the data. Because fuseki server can give the output data in xml, text, json, csv form. Best Regards, Roshan On Jul 28, 2015 10:03 PM, "Martynas Jusevičius" wrote: > Roshan