You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Stian Soiland-Reyes (JIRA)" <ji...@apache.org> on 2015/01/27 13:18:34 UTC

[jira] [Created] (JENA-865) Fuseki 2: Example query does not declare owl/rdfs PREFIXes

Stian Soiland-Reyes created JENA-865:
----------------------------------------

             Summary: Fuseki 2: Example query does not declare owl/rdfs PREFIXes
                 Key: JENA-865
                 URL: https://issues.apache.org/jira/browse/JENA-865
             Project: Apache Jena
          Issue Type: Bug
          Components: Fuseki
    Affects Versions: Fuseki 2.0.0
         Environment: https://registry.hub.docker.com/u/stain/jena-fuseki/
            Reporter: Stian Soiland-Reyes
            Priority: Trivial
             Fix For: Fuseki 2.0.0


If I create a new dataset through the web interface, have not uploaded any data yet, and under Dataset/Query click the Example Query "
Selection of Classes" I get the error:

{code}
Error 400: Parse error: 


SELECT distinct ?class ?label ?description
where {
  ?class a owl:Class.
  OPTIONAL { ?class rdfs:label ?label}
  OPTIONAL { ?class rdfs:comment ?description}
}
LIMIT 25

Line 5, column 12: Unresolved prefixed name: owl:Class


Fuseki - version 2.0.0-SNAPSHOT (Build date: 2015-01-25T09:54:26+0000)

{code}
 
The fix is to either add to the example query:

{code}
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
{code}

or - much better (or in addition) - always interpret prefixes for

owl, rdfs, rdf, xsd

(any others?)


Ideally 'distinct' and 'where' should also be upper-case in the example query :)



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