Re: TDB + NQuads

2014-01-22 Thread Rob Vesse
Your query only queries the default graph, given what you said in your previous emails your data is quads and all in named graphs so your query should not return any results Try the following instead: SELECT ?s WHERE { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } } This selects all data in

Re: TDB + NQuads

2014-01-22 Thread Adeeb Noor
thanks Andy and Rob. I was able to store the NQuads file inside the TDB. below is my code: String directory = "/Users/adeebnoor/Downloads/new"; Dataset dataset = TDBFactory.createDataset(directory); String source = "/Users/adeebnoor/Downloads/relationships.nq"; RDFDataMgr.read(dataset, source

Re: Jena support for JSON-LD?

2014-01-22 Thread Andy Seaborne
On 22/01/14 20:52, Phillip Rhodes wrote: I know it's been discussed before, since I think I was the last one (or one of the last) to bring it up. :-) To search the archives, try using Gmane.org. http://dir.gmane.org/search.php?match=jena But the short version, as I understand it, is that Jena J

Re: Jena support for JSON-LD?

2014-01-22 Thread Phillip Rhodes
I know it's been discussed before, since I think I was the last one (or one of the last) to bring it up. :-) To search the archives, try using Gmane.org. http://dir.gmane.org/search.php?match=jena But the short version, as I understand it, is that Jena JSONLD support is here: https://github.com/

Jena support for JSON-LD?

2014-01-22 Thread Samuel Padgett
JSON-LD is now a W3C Recommendation [1]. Has JSON-LD been considered for Jena? I was curious if it was in the roadmap or if there are no plans for support. It would be nice if JSON-LD were supported natively. I searched the JIRA issues for Jena and didn't find anything. (Apologies if this has be

Re: Default graph issue (tdb-backed Fuseki)

2014-01-22 Thread Andy Seaborne
On 22/01/14 11:34, Rohana Rajapakse wrote: Dear Andy, you are absolutely correct. There is "tdb:unionDefaultGraph true ." in the config file for a different (read only) endpoint. It seems to affect the entire datastore (not endpoint specific!) It shouldn't - could you post the whole config fil

Re: Default graph issue (tdb-backed Fuseki)

2014-01-22 Thread Rohana Rajapakse
yes only s1 is set. On 22 January 2014 11:41, Andy Seaborne wrote: > On 22/01/14 11:18, Rohana Rajapakse wrote: > >> Yes it works! >> > > I take you mean ?s1 is set and ?s is not? > > If ?s is set, then check the query you were using to access the data. > > > Can you please tell me what you me

Re: Default graph issue (tdb-backed Fuseki)

2014-01-22 Thread Andy Seaborne
On 22/01/14 11:18, Rohana Rajapakse wrote: Yes it works! I take you mean ?s1 is set and ?s is not? If ?s is set, then check the query you were using to access the data. Can you please tell me what you mean by "running with default union graph on". I thought we always have a default graph, an

Re: Default graph issue (tdb-backed Fuseki)

2014-01-22 Thread Rohana Rajapakse
Dear Andy, you are absolutely correct. There is "tdb:unionDefaultGraph true ." in the config file for a different (read only) endpoint. It seems to affect the entire datastore (not endpoint specific!) thanks Rohana On 22 January 2014 11:18, Rohana Rajapakse < rohana.rajapa...@gossinteractive.c

RE: Default graph issue (tdb-backed Fuseki)

2014-01-22 Thread Rohana Rajapakse
Yes it works! Can you please tell me what you mean by "running with default union graph on". I thought we always have a default graph, and if no named-graph is specified in sparql (update or select) queries, the operations are performed against the default graph, i.e. triples being inserted goe

Re: error in Jena Spatial Documentation

2014-01-22 Thread Andy Seaborne
On 21/01/14 22:38, Tim Harsch wrote: Hi all, Just a quick note to point out an error I found in the documentation at http://jena.apache.org/documentation/query/spatial-query.html Under the section "Property Function Library" for spatial:withinCircle it states. The distance*units* can be: "kil

Re: Default graph issue (tdb-backed Fuseki)

2014-01-22 Thread Andy Seaborne
On 22/01/14 09:29, Rohana Rajapakse wrote: Hi, Hi there, I have a tdb-backed Fuseki installation. I am inserting data using INSERT DATA sparql query (also tried reading triple data from a file) without giving a named-graph uri (with GRAPH keyword), Did you just use the UI or load the da

RE: Error in Sparql using an URI with '+' symbol

2014-01-22 Thread Iturraspe Barturen, Urtza
Thanks!! Error was solved , the problem was not in Sparql ;-) I have noticed that in http request symbol like + is escaped and We have to use an encodeURIComponent in javascript for not to quit plus symbol. Sorry for that!! Best regards, -Mensaje original- De: Chris Dollin [mailto:chri

Re: Escaping SPARQL regex

2014-01-22 Thread Martynas Jusevičius
Thanks Andy. REUtil.quoteMeta() seems to do the trick. On Tue, Jan 21, 2014 at 6:22 PM, Andy Seaborne wrote: > On 21/01/14 16:58, Martynas Jusevičius wrote: >> >> Andy, >> >> what if I'm sending the query to a remote endpoint that does not >> support Java style regex syntax? Do I need to use FmtU

Re: Error in Sparql using an URI with '+' symbol

2014-01-22 Thread Chris Dollin
On Wednesday, January 22, 2014 09:47:21 AM Iturraspe Barturen, Urtza wrote: > Good morning to everyone, > > I have a very simple SPARQL like this: > > PREFIX otn: > PREFIX rdfs: > PREFIX protege:

Error in Sparql using an URI with '+' symbol

2014-01-22 Thread Iturraspe Barturen, Urtza
Good morning to everyone, I have a very simple SPARQL like this: PREFIX otn: PREFIX rdfs: PREFIX protege: PREFIX p1:

Default graph issue (tdb-backed Fuseki)

2014-01-22 Thread Rohana Rajapakse
Hi, I have a tdb-backed Fuseki installation. I am inserting data using INSERT DATA sparql query (also tried reading triple data from a file) without giving a named-graph uri (with GRAPH keyword), the query is executed without errors and in the query forms of the Fuseki web console I see the mes