Export SHACL validations from Composer

29 views
Skip to first unread message

sjoerd...@gmail.com

unread,
Sep 18, 2020, 8:35:18 AM9/18/20
to TopBraid Suite Users

Hi all,

For a demo I was showing SHACL validation of a small datagraph, for this I used TBC. TBC  returns the violations in a window with 'SHACL validation' results. Is it possible to export these results  to,  for example, a .csv file? See the attached image for the results I would like to just copy-paste.

Regards,
Sjoerd

SHACL validation in TBC.PNG

Holger Knublauch

unread,
Sep 20, 2020, 7:00:55 PM9/20/20
to topbrai...@googlegroups.com

Hi Sjoerd,

good question. I don't think we have such an export feature out of the box, in clickable form.

Geeky options include

- using the public SHACL API - the shaclvalidate command line tool produces output in Turtle
- write an SWP or SPARQLMotion script that calls sml:ValidateGraph, and then for example SPARQL against the validation results to produce the tabular output you need.

Holger

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/22785ea5-ce77-42c3-9dc5-9bab9749d00en%40googlegroups.com.

Irene Polikoff

unread,
Sep 21, 2020, 1:13:47 AM9/21/20
to topbrai...@googlegroups.com
There is an export option in EDG - JSON and TSV

sjoerd...@gmail.com

unread,
Sep 21, 2020, 3:49:04 AM9/21/20
to TopBraid Suite Users

Hi Holger and Irene,

I showed the EDG validation page, from where you can export to .ttl. You could then of course run a sparql query against the output and export the query result to (for example) a .csv. You could even (as Holger mentions) automate this proces using a sparql motion script.
I think that this would be fine for a production situation, but for a quick demo I'll make sure to prepare a script (or at least a query) beforehand.
Thanks!
Op maandag 21 september 2020 om 07:13:47 UTC+2 schreef Irene Polikoff:
Reply all
Reply to author
Forward
0 new messages