Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

exporting ttl from TopbraidEdg for use in the external TopBraid SHACL API

24 views
Skip to first unread message

Hamid Abdirad

unread,
Aug 26, 2024, 10:25:44 PM8/26/24
to TopBraid Suite Users
Hello, 
I am experimenting with the TopBraid SHACL API: https://github.com/TopQuadrant/shacl
and wondering what the least manual way is to export layered ontologies and taxonomies (and any post-processing) to feed ttl file to this API. My understanding is that the API only supports ttl files (no use for trig).

Here are a couple of ideas I have come up with: 
  • Export each and every collection as a nt file (to avoid differences between graph bases) and merge them. 
  • Run a sparql query on the topmost graph to get all triples (with includes), but exclude internal EDG collections (how to exclude EDG stuff?) 
I appreciate any ideas you can share.

Thank you,
Hamid
 

Hamid Abdirad

unread,
Aug 26, 2024, 10:31:18 PM8/26/24
to TopBraid Suite Users
Here is an example of the layered collections. 
  • Graph1:
    • Ontology1:
      • Taxonomy1:
        • Taxonomy A
        • Taxonomy B
      • Taxonomy2:
        • Taxonomy C
      • Ontology 2
      • Ontology 3

Holger Knublauch

unread,
Aug 27, 2024, 2:44:07 AM8/27/24
to 'Luis Enrique Ramos García' via TopBraid Suite Users
Yes, the idea of using NT should work fine, and the resulting concatenated file should be easy to merge into a single TTL file.
If you are limiting yourself to using the command line tools of the API then this should be ok.

On how to exclude certain subgraphs, if you have them downloaded as individual files you can identify them already?

Holger


--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/1f24d3e3-deba-43d2-9ba1-14ee596cb900n%40googlegroups.com.

Hamid Abdirad

unread,
Oct 19, 2024, 11:02:05 PM10/19/24
to TopBraid Suite Users
Hi Holger, 
I have another question about TopBraid SHACL API.
Does TopBraid SHACL API support spif functions? 

I have sparql constraints that use the spif:split function. Although these constraints can generate violations in my graphs on topbraidEDG, I do not receive any violations from TopBraid SHACL API on the same collections. 

Attached a test case here. 

Thank you,
Hamid
ontology_testcase.ttl
graph_testcase.ttl

Hamid Abdirad

unread,
Oct 20, 2024, 12:12:59 AM10/20/24
to topbrai...@googlegroups.com
fixed a typo in the ttl files

You received this message because you are subscribed to a topic in the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/topbraid-users/QKd6Vlda6Es/unsubscribe.
To unsubscribe from this group and all its topics, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/9d02e445-78e2-4321-baca-12411b08f95cn%40googlegroups.com.
ontology_testcase.ttl
graph_testcase.ttl

Holger Knublauch

unread,
Oct 20, 2024, 4:36:28 AM10/20/24
to 'Luis Enrique Ramos García' via TopBraid Suite Users
Hi Hamid,

no, the spif functions are not in the open source version.

Holger


To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/9d02e445-78e2-4321-baca-12411b08f95cn%40googlegroups.com.
<ontology_testcase.ttl><graph_testcase.ttl>

Richard Cyganiak

unread,
Oct 20, 2024, 6:38:37 AM10/20/24
to topbrai...@googlegroups.com

Hamid Abdirad

unread,
Oct 20, 2024, 12:31:07 PM10/20/24
to topbrai...@googlegroups.com
Thank you for the info, Holger. And thank you, Richard, for your help, this is a great alternative. 

You received this message because you are subscribed to a topic in the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/topbraid-users/QKd6Vlda6Es/unsubscribe.
To unsubscribe from this group and all its topics, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/F2CEBCC0-1B2F-41EE-98D7-289F75BC9554%40topquadrant.com.
favicon.ico
Reply all
Reply to author
Forward
0 new messages