[topbraid users] SPARQL results export to TTL file not working as expected

21 views
Skip to first unread message

Rashmi Burse

unread,
Apr 29, 2021, 6:49:45 AM4/29/21
to topbrai...@googlegroups.com
Hi,

I want to create a subgraph consisting of only the "Disorder sub-hierarchy" of SNOMED. I am trying to create this subgraph from the complete SNOMED-OWL graph using a SPARQL CONSTRUCT query. I have used the SPARQL query tab provided in the free edition of TopBraid ontology editor Version 6.0.1 (tbcfe-6.0.1). The query displays the correct result in the ontology editor window. However, when I export the results to a TTL file, the properties consisting of owl:equivalentCLass/ owl:intersectionOf / owl:Restriction show an empty [] in the created subgraph. Can someone please help me with this issue? 

PFA attached screenshots.

Best,
Rashmi
stackoverflow-generatedsubgraphfile.png
stackoverflow-topbraidUI.png
Expected vs Current output sample.docx

Irene Polikoff

unread,
Apr 29, 2021, 8:31:50 AM4/29/21
to topbrai...@googlegroups.com
The values bound to ?p are blank nodes which are in turn are subjects of triples that form a complex structure - as you see in your RDF snippet.

Sent from my iPhone

On Apr 29, 2021, at 6:49 AM, Rashmi Burse <rashmi...@ucdconnect.ie> wrote:


--
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/CAGaQz-jQOxfvDtry_ZpYLG5eyorh1xrBfYGFy_7xZhgbR1BKYg%40mail.gmail.com.
<stackoverflow-generatedsubgraphfile.png>
<stackoverflow-topbraidUI.png>
<Expected vs Current output sample.docx>

Holger Knublauch

unread,
Apr 29, 2021, 6:43:41 PM4/29/21
to topbrai...@googlegroups.com

Yes, and the challenge is that to properly extract/copy this part of the ontology, you would need a recursive language that allows you to drill into (nested) nodes and copy their properties, then the properties of those etc. SPARQL alone cannot express recursion, so you'd need some scripting language around it. The non-free TopBraid products have various solutions for that, including SWP and ADS (JavaScript).

Holger

Reply all
Reply to author
Forward
Message has been deleted
0 new messages