[
https://issues.apache.org/jira/browse/JENA-865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14336713#comment-14336713
]
ASF GitHub Bot commented on JENA-865:
-------------------------------------
GitHub user stain opened a pull request:
https://github.com/apache/jena/pull/34
JENA-865: Include prefixes in example query
Fixes JENA-865 by explicitly requiring `owl` and `rdfs` prefixes.
Also SPARQL keywords now in consistent CAPS style.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/stain/jena JENA-865-example-query-prefixes
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/34.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #34
----
commit b4e303ab286ffde9dbee65e9c9a504b5852c0776
Author: Stian Soiland-Reyes <[email protected]>
Date: 2015-02-25T16:18:01Z
JENA-865: Include prefixes in example query
----
> 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)