Support for SHACL Compact-Syntax

21 views
Skip to first unread message

Simon Cox

unread,
Jun 9, 2020, 3:07:58 AM6/9/20
to TopBraid Suite Users
AFAICT SHACL Compact syntax is only supported in read-only mode - in https://www.topquadrant.com/technology/shacl/shacl-compact-syntax-quick-tutorial/ it says "You can use [SHACL-C] files such as the example above in TopBraid Composer: put them into the Workspace as a file ending with .shaclc and then drag that file into the Imports panel of another file. You cannot open these .shaclc files with double-click because they are considered read-only by TopBraid – the whole point of the Compact Syntax is to be attractive to text editors." So, there is clearly a compact parser in TopBraid. But not a _writer_? 

Holger Knublauch

unread,
Jun 9, 2020, 3:13:22 AM6/9/20
to topbrai...@googlegroups.com

Correct, there is a rather buggy and incomplete writer in the open source API yet even that is not exposed through the TopBraid UIs. A SHACLC writer would only ever be able to cover parts of SHACL Core, which is why I didn't think it was that useful to go in that direction. However, you are now the second person in a week to ask about this. What are your plans and why do you want to export to SHACLC?

Cheers,
Holger


On 9/06/2020 17:07, Simon Cox wrote:
AFAICT SHACL Compact syntax is only supported in read-only mode - in https://www.topquadrant.com/technology/shacl/shacl-compact-syntax-quick-tutorial/ it says "You can use [SHACL-C] files such as the example above in TopBraid Composer: put them into the Workspace as a file ending with .shaclc and then drag that file into the Imports panel of another file. You cannot open these .shaclc files with double-click because they are considered read-only by TopBraid – the whole point of the Compact Syntax is to be attractive to text editors." So, there is clearly a compact parser in TopBraid. But not a _writer_? 
--
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/1941be7d-ee84-4aec-a561-d3c922288ef4o%40googlegroups.com.

Simon Cox

unread,
Jun 9, 2020, 9:06:44 AM6/9/20
to TopBraid Suite Users
I'm just having a(nother) start on using SHACL. I find the RDF syntax rather foggy so was trying to look at it in compact form. I opened the 'source-code' tab in TBCME and was disappointed not to find a SHACL-C option, or an option to export SHACL in SHACL-C serialization. That's all. 


On Tuesday, 9 June 2020 17:13:22 UTC+10, Holger Knublauch wrote:

Correct, there is a rather buggy and incomplete writer in the open source API yet even that is not exposed through the TopBraid UIs. A SHACLC writer would only ever be able to cover parts of SHACL Core, which is why I didn't think it was that useful to go in that direction. However, you are now the second person in a week to ask about this. What are your plans and why do you want to export to SHACLC?

Cheers,
Holger


On 9/06/2020 17:07, Simon Cox wrote:
AFAICT SHACL Compact syntax is only supported in read-only mode - in https://www.topquadrant.com/technology/shacl/shacl-compact-syntax-quick-tutorial/ it says "You can use [SHACL-C] files such as the example above in TopBraid Composer: put them into the Workspace as a file ending with .shaclc and then drag that file into the Imports panel of another file. You cannot open these .shaclc files with double-click because they are considered read-only by TopBraid – the whole point of the Compact Syntax is to be attractive to text editors." So, there is clearly a compact parser in TopBraid. But not a _writer_? 
--
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 topbrai...@googlegroups.com.

Holger Knublauch

unread,
Jun 9, 2020, 7:25:07 PM6/9/20
to topbrai...@googlegroups.com

Hi Simon,

have you looked at the TopBraid EDG that comes with TBC-ME? Its Ontology editor (at least the "new" one in 6.3 onwards) has the goal of making SHACL less foggy as it presents class and shape definitions through proper forms etc.

While this is not the same as looking at source code, I hope it summarizes things like property shape definitions at least as well as a compact syntax.

Holger

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/77e0d3f0-a71c-47c8-bc4c-b01944edcd2ao%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages