rorlic opened a new issue, #3147: URL: https://github.com/apache/jena/issues/3147
### Version 5.3.0 ### Question I have a small shapes file where I define a base class and a derived class. The base class allows for a predicate which is optional at the base class level and required for the derived class. To validate this I created a node shape which targets all instances of the derived class by using a SPARQL query, passing in the necessary prefixes. The node shape has a property shape that verifies that the predicate appears exactly once. When running the jena 5.3.0 `shacl` cmdline tool passing the shapes and data files (all test files attached), I expect that the report is non-conforming with a violation at focus nodes `ex:InvalidDerivedInstance2` and `ex:InvalidDerivedInstance3`. Hoewever, I get no violations and because I also pass the debug flag I can see that no focus nodes have been found: ```turtle NodeShape[http://example.org/DerivedShape] N: FocusNodes(0): [] PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX sh: <http://www.w3.org/ns/shacl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> [ rdf:type sh:ValidationReport; sh:conforms true ] . ``` Running the same test at the [ITB SHACL Validator](https://www.itb.ec.europa.eu/shacl/any/upload) indeed returns a report with 2 violations, which shows that the shape and data files are OK. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
