jena-dev mailing list archives

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

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

Andy Seaborne commented on JENA-1600:
-------------------------------------

Works for me with Jena development.  Fixed by JENA-1574 which is to do with relative URLs
on the command line with {{--namedGraph}}.

To test: run the query "'SELECT (str(?g) AS ?gs)  { GRAPH ?g {} }'" and look at the graph
names without text table formatting.

> 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, Jena 3.3.0
>            Reporter: Richard Walker
>            Priority: Major
>
> 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