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

Incorrect validation returned when using the Fuseki SHACL processor

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • Jena 3.13.1
    • Jena 3.14.0
    • Fuseki, SHACL
    • None
    • macOS Catalina 10.15.2 (19C57)

      openjdk 13.0.1 2019-10-15
      OpenJDK Runtime Environment AdoptOpenJDK (build 13.0.1+9)
      OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13.0.1+9, mixed mode, sharing)

    Description

      I'm new to Jena Fuseki and SHACL, so I thought I would use the example from section 1.4 of the W3C Shapes Constraint Language document to insure I had everything up and running correctly.  Unfortunately, when I upload the example graph and run their example shape graph, Fuseki indicates the data graph is validated:

      $ ./validate-data.sh 
      @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
      @prefix sh: <http://www.w3.org/ns/shacl#> .
      @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
      @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
      
      [ a sh:ValidationReport ;
       sh:conforms true
      ] .
      
      $
      

       

      I expected a validation report similar to that contained in the recommendation indicating violations in the data graph.

      I have attached the configuration file that I use to configure Fuseki for this test, along with the data and shape graph ttl files defining the graphs and the two shell scripts I use to upload and validate the graph.

      The upload and test shell scripts are based on the curl examples from https://jena.apache.org/documentation/shacl/

      When I change the name of the graph, I get a 404, so I expect the code is validating the expected graph.  I can also see the default graph displayed in the Fuseki viewer running locally at http://localhost:8080/dataset.html and the triples appear as indicanted in the attached file.

      Attachments

        1. upload-data.sh
          0.2 kB
          Steve Roggenkamp
        2. validate-data.sh
          0.2 kB
          Steve Roggenkamp
        3. w3-shacl-example01.ttl
          1 kB
          Steve Roggenkamp
        4. w3-shacl-example01-data.ttl
          0.3 kB
          Steve Roggenkamp
        5. w3-shacl-example01-shapes.ttl
          0.6 kB
          Steve Roggenkamp

        Activity

          People

            andy Andy Seaborne
            roggsky Steve Roggenkamp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: