Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-320

Unexpected result from SPARQL Tutorial - Filters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • ARQ 2.9.3, TDB 0.9.3, Jena 2.7.3
    • Jena 2.7.4
    • TDB, Web site
    • None

    Description

      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

      =================================

      ---------------------------------

      Attachments

        Activity

          People

            andy Andy Seaborne
            donpellegrino Donald Pellegrino
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: