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

Fuseki 2: Example query does not declare owl/rdfs PREFIXes

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • Fuseki 2.0.0
    • Fuseki 2.0.0
    • Fuseki
    • None

    Description

      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:

      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)
      
      

      The fix is to either add to the example query:

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

      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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            andy Andy Seaborne
            soilandreyes Stian Soiland-Reyes (old) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment