[
https://issues.apache.org/jira/browse/JENA-865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Seaborne closed JENA-865.
------------------------------
Resolution: Fixed
Assignee: Andy Seaborne
> 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
> Reporter: Stian Soiland-Reyes
> Assignee: Andy Seaborne
> 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)