Details
-
Question
-
Status: Closed
-
Major
-
Resolution: Information Provided
-
Jena 3.13.1
-
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.