Hi Ravi,

yes you are right: if your shapes graph does not contain the SHACL, DASH and TOSH namespace (needed at runtime by this model-driven engine) then the UnionGraph uses the data graph, where it should use the shapes graph. I guess I never ran into that case because we always owl:import these graphs. I have pushed an update with this fix and other recent bug fixes to github.

Please try again. If you are still getting unexpected results, I would need to know what shapes graph you are trying to use.

Thanks,
Holger


On 21/03/2017 2:32, [email protected] wrote:
Hi,
ValidateUtil has the following API. And, when I send the dataModel and shapesModel seperately with validateShapes=true, it always return validation as successful even when the dataModel is invalid per defined shapes in the shapesModel. (I basically split the shacl example file: personshape.test.ttl file into two ttl files one with data and the other with shapes) public static Resource validateModel(Model dataModel, Model shapesModel, boolean validateShapes)

However, if I merge dataModel and shapesModel(example: personshape.test.ttl) and pass them to the above method it works correctly. But it seems redundant to pass the same parameter(dataModel) twice to the method call.

I looked at the implementation of the above method and see that the unionGraph is being built using dataModel. Should this be a shapesModel? If not, can you please provide example for validation with seperate ttl files?

Thanks
Ravi Vangala
--
You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include the TopBraid Suite family of products and its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Group "TopBraid 
Suite Users", the topics of which include the TopBraid Suite family of products and 
its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
--- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to