Re: GeoSpatial properties and relationships

2013-10-31 Thread Olivier Rossel
interesting indeed. what are the hopes to have access to features such as point inside polygon, polygon inside polygon, polygon intersects polygon? On Thu, Oct 31, 2013 at 3:01 AM, Ralph Perniciaro < ralph.pernici...@eagles.usm.edu> wrote: > Thanks! Right under my nose. :) > > > On Wed, Oct

rdfg:subGraphOf reasoning in Jena TDB

2013-10-31 Thread Alison Callahan
Dear all, I am trying to use Jena TDB (version 0.10.0) and ARQ (version 2.10.1) to execute SPARQL queries over named graphs and their subgraphs, specifically such that a SPARQL query to a specific graph will return all triples in both the named graph and in subgraphs of the named graph that match

How to write queries using named graphs?

2013-10-31 Thread Maria Jackson
I think jena employs named graphs as a way to achieve reification. As named graphs can achieve reification by attaching only one statement with named graphs. Is it possible to express information of the following form using named graphs, if yes then can someone please help me write this information

Re: How to write queries using named graphs?

2013-10-31 Thread Maria Jackson
I can write a SPARQL query for the above graph as: select ?a?b?c?d?e where{ ?r rdf:subject . ?r rdf:predicate . ?r rdf:object . ?r saidBy ?a. ?r saidOn ?b. ?r saidAt ?c. ?r confidence ?d. ?r comment ?e } Can someone please help me write

Re: How to write queries using named graphs?

2013-10-31 Thread Joshua TAYLOR
On Thu, Oct 31, 2013 at 9:47 AM, Maria Jackson wrote: > I think jena employs named graphs as a way to achieve reification. As named > graphs can achieve reification by attaching only one statement with named > graphs. Jena uses named graphs to provide names for RDF graphs as specified in the SPAR

Re: How to write queries using named graphs?

2013-10-31 Thread Maria Jackson
Yes I am talking about the same. Is it possible to query over Jena such that there is a join between two named graphs. I know I can write using reification in SPARQL using: select ?a?b?c?d?e where{ ?r rdf:subject . ?r rdf:predicate . ?r rdf:object . ?r saidBy ?a.

Re: How to write queries using named graphs?

2013-10-31 Thread Joshua TAYLOR
On Thu, Oct 31, 2013 at 10:26 AM, Maria Jackson wrote: > Yes I am talking about the same. Is it possible to query over Jena such that > there is a join between two named graphs. I know I can write using > reification in SPARQL using: > > select ?a?b?c?d?e > where{ >?r rdf:subject . >

Re: How to write queries using named graphs?

2013-10-31 Thread Eric Scott
You could try something like this: select ?a?b?c?d?e where { ?g a :MyKindaGraph. graph ?g { ?r rdf:subject . ?r rdf:predicate . ?r rdf:object . ?r saidBy ?a. ?r saidOn ?b. ?r saidAt ?c. ?r confidence ?d.

Re: How to write queries using named graphs?

2013-10-31 Thread Joshua TAYLOR
On Thu, Oct 31, 2013 at 10:47 AM, Eric Scott wrote: > You could try something like this: > > select ?a?b?c?d?e > where > { >?g a :MyKindaGraph. >graph ?g > >{ > ?r rdf:subject . > ?r rdf:predicate . > ?r rdf:object . > ?r saidBy ?a. >

Re: rdfg:subGraphOf reasoning in Jena TDB

2013-10-31 Thread Andy Seaborne
On 31/10/13 13:01, Alison Callahan wrote: Dear all, I am trying to use Jena TDB (version 0.10.0) and ARQ (version 2.10.1) to execute SPARQL queries over named graphs and their subgraphs, specifically such that a SPARQL query to a specific graph will return all triples in both the named graph and

Re: How to write queries using named graphs?

2013-10-31 Thread Joshua TAYLOR
On Thu, Oct 31, 2013 at 11:08 AM, Maria Jackson wrote: > select ?x ?a ?b ?c ?d ?e ?f where { > graph ?r { > ?x ?y > } > graph ?r1{ > ?x ?y > } > ?r Tia ; > > ?b ; > ?c ; > ?d ; > ?e . > ?r1 Astrid. > } > Is the above query to retrieve a person who is link

Re: How to write queries using named graphs?

2013-10-31 Thread Maria Jackson
select ?x ?a ?b ?c ?d ?e ?f where { graph ?r { ?x ?y } graph ?r1{ ?x ?y } ?r Tia ; ?b ; ?c ; ?d ; ?e . ?r1 Astrid. } Is the above query to retrieve a person who is linked to two different countries correct? I am just curious as to whether it is syntactic

Re: How to write queries using named graphs?

2013-10-31 Thread Joshua TAYLOR
On Thu, Oct 31, 2013 at 11:17 AM, Maria Jackson wrote: > select ?x ?a ?b ?c ?d ?e ?f where { > graph ?r { > ?x ?y > } > graph ?r1{ > ?x ?y > } > ?r Tia ; > > ?b ; > ?c ; > ?d ; > ?e . > ?r1 Astrid. > } > Is the above query to retrieve a person who is link

Re: How to write queries using named graphs?

2013-10-31 Thread Andy Seaborne
Try the online query validator: http://www.sparql.org/query-validator.html Andy On 31/10/13 15:17, Maria Jackson wrote: select ?x ?a ?b ?c ?d ?e ?f where { graph ?r { ?x ?y } graph ?r1{ ?x ?y } ?r Tia ; ?b ; ?c ; ?d ; ?e . ?r1 Astri

Re: Should model.read emit addedStatements ?

2013-10-31 Thread Andy Seaborne
On 30/10/13 16:21, Altmann, Michael wrote: I am trying to upgrade our application from Jen 2.7.3 to 2.11.0 It appears that in Jena 2.7.3 model.read(stream, null, "RDF/XML") fired a single ModelChangedListener.addedStatements IIRC not necessarily a single call - won't it be once per 1000 statem

Re: Constructing a GraphStoreNull using DatasetNullAssembler

2013-10-31 Thread Stephen Allen
You may want to use the transactional version for testing, it will allow streaming for updates through Fuseki (I'm assuming that is what you are testing). I my assembler file looks like: @prefix rdf: . @prefix rdfs:

Re: Constructing a GraphStoreNull using DatasetNullAssembler

2013-10-31 Thread Stephen Allen
Oops, that's not the entire assembler file. Forgot the Fuseki stuff: @prefix :<#> . @prefix fuseki: . @prefix rdf: . @prefix rdfs: . @prefix tdb:

Is it possible to import a Skos XL file into a TDB repository through tdbloader?

2013-10-31 Thread Albert Turri
We currently import a set of .rdf's into a TDB repository by means of the tdbloader command. So far so good. In the future, we will instead have input files in the Skos XL format. Will we be able to still use tdbloader for this purpose or does it only accept .rdf's as input? If the latter is true,

Re: Is it possible to import a Skos XL file into a TDB repository through tdbloader?

2013-10-31 Thread Dave Reynolds
On 31/10/13 16:25, Albert Turri wrote: We currently import a set of .rdf's into a TDB repository by means of the tdbloader command. So far so good. In the future, we will instead have input files in the Skos XL format. Will we be able to still use tdbloader for this purpose or does it only accep

Re: Is it possible to import a Skos XL file into a TDB repository through tdbloader?

2013-10-31 Thread Joshua TAYLOR
On Thu, Oct 31, 2013 at 1:00 PM, Dave Reynolds wrote: > If by Skos XL you mean [1] then that is just an RDF vocabulary not a file > format. You could have SKOS XL data in RDF/XML format (conventionally .rdf) > or Turtle format (conventionally .ttl). No conversion needed. I think the question has

Re: Is it possible to import a Skos XL file into a TDB repository through tdbloader?

2013-10-31 Thread Joshua TAYLOR
On Thu, Oct 31, 2013 at 5:11 PM, Joshua TAYLOR wrote: > On Thu, Oct 31, 2013 at 1:00 PM, Dave Reynolds > wrote: >> If by Skos XL you mean [1] then that is just an RDF vocabulary not a file >> format. You could have SKOS XL data in RDF/XML format (conventionally .rdf) >> or Turtle format (conventi

UNSAID keyword

2013-10-31 Thread Tim Harsch
Hello, The docs at http://jena.apache.org/documentation/query/negation.html Say that "UNSAIDis an alias for NOT EXISTS" I wasn't familiar with that keyword so gave it a try at sparql.org and got: Error 400: Parse error: # Names of people who have not stated that they know anyone PREFIX foaf:

Re: UNSAID keyword

2013-10-31 Thread Andy Seaborne
On 31/10/13 21:35, Tim Harsch wrote: Hello, The docs at http://jena.apache.org/documentation/query/negation.html Say that "UNSAIDis an alias for NOT EXISTS" I wasn't familiar with that keyword so gave it a try at sparql.org and got: Error 400: Parse error: # Names of people who have not stat

Re: UNSAID keyword

2013-10-31 Thread Tim Harsch
My thoughts as well, and also "NOT IN"? > On Thursday, October 31, 2013 2:54 PM, Andy Seaborne wrote: > > On 31/10/13 21:35, Tim Harsch wrote: >> Hello, >> >> The docs at http://jena.apache.org/documentation/query/negation.html >> >> Say that "UNSAIDis an alias for NOT EXISTS" >> >> >>