[ 
https://issues.apache.org/jira/browse/JENA-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14646254#comment-14646254
 ] 

Marvin Frommhold commented on JENA-1001:
----------------------------------------

The install is based on the following brew install:
https://github.com/Homebrew/homebrew/pull/41970

{code}
$ fuseki-server
[2015-07-29 17:10:07] Server     INFO  Fuseki 2.0.0 2015-03-08T09:49:20+0000
[2015-07-29 17:10:07] Config     INFO  
FUSEKI_HOME=/usr/local/Cellar/fuseki/2.0.0/libexec
[2015-07-29 17:10:07] Config     INFO  FUSEKI_BASE=/tmp/fuseki
[2015-07-29 17:10:07] Servlet    INFO  Initializing Shiro environment
[2015-07-29 17:10:07] Config     INFO  Shiro file: file:///tmp/fuseki/shiro.ini
[2015-07-29 17:10:07] Server     INFO  Started 2015/07/29 17:10:07 CEST on port 
3030
{code}

Now I created a new dataset using the Fuseki UI, uploaded an TTL file to 
destination graph with name http://example.org/graph1 and another file to graph 
http://example.org/graph2 (also using the UI) and then used the query editor to 
execute the query.

> named graphs set not empty if no FROM NAMED clause given
> --------------------------------------------------------
>
>                 Key: JENA-1001
>                 URL: https://issues.apache.org/jira/browse/JENA-1001
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Fuseki
>    Affects Versions: Fuseki 2.0.0
>            Reporter: Marvin Frommhold
>
> According to the [SPARQL 1.1 Query Language 
> specification|http://www.w3.org/TR/2013/REC-sparql11-query-20130321/] the set 
> of named graphs must be empty if a query only specifies FROM clauses and no 
> FROM NAMED clauses:
> bq. An RDF Dataset comprises ... zero or more named graphs
> That means, the only way to express zero named graphs is to specify no FROM 
> NAMED clause.
> *But:*
> Having the following data:
> http://example.org/graph1
> {code}
> <urn:subject1> rdfs:label "Subject one" .
> {code}
> http://example.org/graph2
> {code}
> <urn:subject2> rdfs:label "Subject two" .
> {code}
> and executing the query:
> {code}
> SELECT ?g
> FROM <http://example.org/graph1>
> WHERE {
>   GRAPH ?g { ?s ?p ?o . }
> }
> {code}
> will return
> {code}
>  ?g
> ===========
>  ex:graph1
>  ex:graph2
> {code}
> which proves that the set of named graphs is not empty:
> {quote}
> GRAPH can ... use a variable which will range over the IRI of all the named 
> graphs in the query's RDF dataset.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to