sszuev commented on issue #1264:
URL: https://github.com/apache/jena/issues/1264#issuecomment-1104797169
> That's a somewhat large example.
>
> What part of SPARQ target is different between Apache Jena and Topquadrant
SHACL?
Hi,
The shacl-rules-graph and the data-graph are identical for both approaches,
the difference only in behavior.
Here it is:
```java
private static Model runJenaShaclRules(Model dataModel, Model rules) {
ValidationReport res =
ShaclValidator.get().validate(rules.getGraph(), dataModel.getGraph());
return res.getModel();
}
private static Model runTopbraidShaclRules(Model dataModel, Model
shapesModel) {
Resource report =
org.topbraid.shacl.validation.ValidationUtil.validateModel(dataModel,
shapesModel, false);
return report.getModel();
}
```
Another way to reproduce - download and run `simple-shack-for-test.ttl`. It
contains all rules and data. For using Topquadrant SHACL, Topbraid Composer can
be used.
__________
It seems Jena fails to handle property predicate `$custom`, which is pointed
as `sh:NodeShape ex:custom rdfs:subClasOf`.
Everything works fine If we replace it with `sh:NodeShape sh:select [ a
sh:SPARQLConstraint ... ]` where there is no parameter in sparql-body.
--
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]