jena-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Walker (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JENA-1600) arq not finding content included with namedGraph
Date Fri, 07 Sep 2018 02:41:00 GMT
Richard Walker created JENA-1600:
------------------------------------

             Summary: arq not finding content included with namedGraph
                 Key: JENA-1600
                 URL: https://issues.apache.org/jira/browse/JENA-1600
             Project: Apache Jena
          Issue Type: Bug
    Affects Versions: Jena 3.1.1
            Reporter: Richard Walker


I think this is similar to JENA-1261 and JENA-1419. I am using 3.8.0, but it seems this issue
arose in 3.1.1, was fixed in 3.2.0, and then arose again in 3.3.0 and continues with subsequent
releases.

Consider an empty file {{empty.ttl}}, and a file {{control.ttl}} with these contents:

{code}
@prefix void: <http://rdfs.org/ns/void#> .
@prefix ov:   <http://open.vocab.org/terms/> .
<https://gcmdservices.gsfc.nasa.gov/platforms-dataset> a void:Dataset .
<https://gcmdservices.gsfc.nasa.gov/platforms-dataset> void:uriSpace <https://gcmdservices.gsfc.nasa.gov/>
.
{code}

and this trivial query {{summary-test-select.arq}}:

{code}
SELECT ?s ?p ?o
FROM NAMED <control.ttl>
WHERE {
  GRAPH <control.ttl> {
    ?s ?p ?o
  }
}
{code}

Now compare the output of some releases from 3.1.0 onwards. First, 3.1.0:

{code}
~/Software/apache-jena-other-releases/apache-jena-3.1.0/bin/arq --data=empty.ttl --query=summary-test-select.arq
 --namedGraph=control.ttl --base .
------------------------------------------------------------------------------------------------------------------------------------------------------
| s                                                      | p                             
                   | o                                     |
======================================================================================================================================================
| <https://gcmdservices.gsfc.nasa.gov/platforms-dataset> | <http://rdfs.org/ns/void#uriSpace>
               | <https://gcmdservices.gsfc.nasa.gov/> |
| <https://gcmdservices.gsfc.nasa.gov/platforms-dataset> | <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
| <http://rdfs.org/ns/void#Dataset>     |
------------------------------------------------------------------------------------------------------------------------------------------------------
{code}

Now 3.1.1:
{code}
 ~/Software/apache-jena-other-releases/apache-jena-3.1.1/bin/arq --data=empty.ttl --query=summary-test-select.arq
 --namedGraph=control.ttl --base .
-------------
| s | p | o |
=============
-------------
{code}

Now 3.2.0:

{code}
~/Software/apache-jena-other-releases/apache-jena-3.2.0/bin/arq --data=empty.ttl --query=summary-test-select.arq
 --namedGraph=control.ttl --base .
------------------------------------------------------------------------------------------------------------------------------------------------------
| s                                                      | p                             
                   | o                                     |
======================================================================================================================================================
| <https://gcmdservices.gsfc.nasa.gov/platforms-dataset> | <http://rdfs.org/ns/void#uriSpace>
               | <https://gcmdservices.gsfc.nasa.gov/> |
| <https://gcmdservices.gsfc.nasa.gov/platforms-dataset> | <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
| <http://rdfs.org/ns/void#Dataset>     |
------------------------------------------------------------------------------------------------------------------------------------------------------
{code}

And 3.3.0:
{code}
~/Software/apache-jena-3.3.0/bin/arq --data=empty.ttl --query=summary-test-select.arq  --namedGraph=control.ttl
--base .
-------------
| s | p | o |
=============
-------------
{code}

Same empty result with 3.4.0 and 3.8.0.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message