[SHACL API] apply SHACL shapes on jena model with triples

92 views
Skip to first unread message

Nicky van Oorschot

unread,
Oct 27, 2016, 6:32:03 AM10/27/16
to TopBraid Suite Users
Hi,

Yesterday I entered the mystical world of data shapes and SHACL. After some searching I found the "TopBraid SHACL API".
Now I want to use this API to apply my data shapes on a Jena model with triples, but I do not succeed.

I`ve a Jena model with 1 data shape and some triples I want to apply this data shape on, but I only get a set of prefixes (I guess the API verfies my data shape and finds no violations).
So I am a bit confused whether it is possible to apply my datashape on my triples with this API, and if it is possible how?
The result I expect is that the triples/resources are shown that comply with the constraints in my Data shape.

Could somebody direct me in the right direction?

For now I mainly used the github example: https://github.com/TopQuadrant/shacl/blob/master/src/test/java/org/topbraid/shacl/ValidationExample.java

Holger Knublauch

unread,
Oct 28, 2016, 3:56:40 AM10/28/16
to topbrai...@googlegroups.com
Hi Nicky,

yes the SHACL API should certainly help. It sounds like it doesn't find violations in your case. But I need more details to give you more advice. Can you share the SHACL file that you plan to validate? Have you tried validating it with TopBraid Composer (Free Edition works too)? Also what is the Java code that you have tried?

Regards,
Holger
--
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 topbrai...@googlegroups.com
---
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 topbraid-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nicky van Oorschot

unread,
Oct 28, 2016, 4:34:45 AM10/28/16
to TopBraid Suite Users
Hi Holger,

Thanks for your response. I havent used TopBraid so far, I will take a look at it. I went back to the basics and found a wrapper at Github: https://github.com/labra/shaclRunner  which looks like the implementation I created myself. I used the example files part of this github project (https://github.com/labra/shaclRunner/tree/master/examples). However this wrapper doenst give any violation as well.

So I start thinking the api only can validate the shape model instead of applying it to data.


Op vrijdag 28 oktober 2016 09:56:40 UTC+2 schreef Holger Knublauch:
Reply all
Reply to author
Forward
0 new messages