Re: Problem with graphs in SPARQL query in

2016-05-31 Thread Mikael Pesonen
Thanks, that works! Still have to learn the order of execution with these queries... Br, Mikael On 30.5.2016 20:49, Andy Seaborne wrote: Mikael, So is the question why GRAPH ?g {} gets all the graphs but GRAPH ?g { OPTIONAL { ?g } } doesn't? GRAPH ?g { PATTERN } is defined as: eval(

Re: Problem with graphs in SPARQL query in

2016-05-30 Thread Andy Seaborne
Mikael, So is the question why GRAPH ?g {} gets all the graphs but GRAPH ?g { OPTIONAL { ?g } } doesn't? GRAPH ?g { PATTERN } is defined as: eval(D(G), Graph(var,PATTERN)) = Let R be the empty multiset foreach IRI i in D R := Union(R, Join( eval(D(D[i]), PATTERN) , Ω(?va

Re: Problem with graphs in SPARQL query in

2016-05-30 Thread Mikael Pesonen
Hi, tested this some more. This PREFIX dcterms: PREFIX dc: SELECT DISTINCT ?graph ?graphTitle1 ?graphTitle2 WHERE { GRAPH ?graph { OPTIONAL { ?graph dcterms:title ?graphTitle1} OPTIONAL { ?graph dc:title ?graphTitle2

Re: Problem with graphs in SPARQL query in

2016-05-29 Thread Andy Seaborne
On 27/05/16 14:23, Mikael Pesonen wrote: Hi, This query does what i want, that is, lists all graphs having the term "digitalisaatio"@fi: PREFIX skos: PREFIX dcterms: PREFIX dc: SELECT ?s ?grap