Don Pellegrino created JENA-320:
-----------------------------------

             Summary: Unexpected result from SPARQL Tutorial - Filters
                 Key: JENA-320
                 URL: https://issues.apache.org/jira/browse/JENA-320
             Project: Apache Jena
          Issue Type: Bug
          Components: TDB, Web site
    Affects Versions: Jena 2.7.3, TDB 0.9.3, ARQ 2.9.3
         Environment: $ java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

$ lsb_release -a
LSB Version:    
:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5.5 (Final)
Release:        5.5
Codename:       Final
            Reporter: Don Pellegrino


The "Testing Values" section of the Apache Jena "SPARQL Tutorial - Filters" 
page(http://jena.apache.org/tutorials/sparql_filters.html) does not produce the 
expected results. I made sure to pull the example files from the site to ensure 
the issue was not due to typos in transcription:

$ wget "http://jena.apache.org/tutorials/sparql_data/vc-db-2.rdf";
--2012-09-04 10:47:20-- http://jena.apache.org/tutorials/sparql_data/vc-db-2.rdf
Resolving jena.apache.org... 140.211.11.131, 
192.87.106.229,2001:610:1:80bc:192:87:106:229
Connecting to jena.apache.org|140.211.11.131|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1149 (1.1K) [application/rdf+xml]
Saving to: `vc-db-2.rdf'
100%[=================================================================>] 
1,149--.-K/s in 0s
2012-09-04 10:47:20 (99.6 MB/s) - `vc-db-2.rdf' saved [1149/1149]

$ wget "http://jena.apache.org/tutorials/sparql_data/q-f2.rq";
--2012-09-04 10:48:03-- http://jena.apache.org/tutorials/sparql_data/q-f2.rq
Resolving jena.apache.org... 140.211.11.131, 
192.87.106.229,2001:610:1:80bc:192:87:106:229
Connecting to jena.apache.org|140.211.11.131|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 148 [application/sparql-query]
Saving to: `q-f2.rq'
100%[=================================================================>] 
148--.-K/s in 0s
2012-09-04 10:48:03 (990 KB/s) - `q-f2.rq' saved [148/148]

I then used the following query command:

$ sparql --data=vc-db-2.rdf --query=q-f2.rq
------------
| resource |
============
------------

The Tutorial page indicates that the result should have been:

---------------------------------
| resource |
=================================
| <http://somewhere/JohnSmith/> |
---------------------------------

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to