-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
-
Upload to https://shacl-play.sparna.fr/play/doc and generate doc => Error java.lang.NullPointerException : Cannot invoke "org.apache.jena.rdf.model.Resource.isURIResource()" because the return value of "fr.sparna.rdf.shacl.doc.PropertyShape.getShPath()" is null
-
Jena shacl validation
# download shacl
curl -O https://raw.githubusercontent.com/SEMICeu/DCAT-AP/refs/heads/master/releases/3.0.1/shacl/dcat-ap-SHACL.ttl
# download random catalog file
curl -O https://raw.githubusercontent.com/sparna-git/SHACL-Catalog/refs/heads/master/rules-catalog.ttl
# validate with jena
/opt/apache-jena-5.1.0/bin/shacl validate --shapes dcat-ap-SHACL.ttl --data rules-catalog.ttl
org.apache.jena.shacl.parser.ShaclParseException: Missing property shape: node=<https://semiceu.github.io/DCAT-AP/releases/3.0.1#dcat:DataServiceShape> sh:property <https://semiceu.github.io/DCAT-AP/releases/3.0.1#dcat:DataServiceShape/eb3ac4e4fdde2e2588a9502c5956060a18c5c99f>
at org.apache.jena.shacl.parser.ShapesParser.findPropertyShapes(ShapesParser.java:408)
at org.apache.jena.shacl.parser.ShapesParser.parseShape$(ShapesParser.java:334)
at org.apache.jena.shacl.parser.ShapesParser.parseShapeStep(ShapesParser.java:312)
at org.apache.jena.shacl.parser.ShapesParser.parseShape(ShapesParser.java:243)
at org.apache.jena.shacl.parser.ShapesParser.parseShapeAcc(ShapesParser.java:228)
at org.apache.jena.shacl.parser.ShapesParser.parseShapes(ShapesParser.java:170)
at org.apache.jena.shacl.parser.ShapesParser.parseProcess(ShapesParser.java:99)
at org.apache.jena.shacl.Shapes.parseProcess(Shapes.java:115)
at org.apache.jena.shacl.Shapes.parseAll(Shapes.java:110)
at org.apache.jena.shacl.Shapes.parse(Shapes.java:87)
at org.apache.jena.shacl.validation.ShaclPlainValidator.parse(ShaclPlainValidator.java:38)
at org.apache.jena.shacl.validation.ShaclPlainValidator.validate(ShaclPlainValidator.java:90)
at shacl.shacl_validate.exec(shacl_validate.java:127)
at org.apache.jena.cmd.CmdMain.mainMethod(CmdMain.java:87)
at org.apache.jena.cmd.CmdMain.mainRun(CmdMain.java:56)
at org.apache.jena.cmd.CmdMain.mainRun(CmdMain.java:43)
at shacl.shacl_validate.main(shacl_validate.java:61)
at shacl.shacl.main(shacl.java:75)