-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shaclc->shacl outputs ;
instead of .
#91
Comments
Hi Valdimir, I am very glad to see some interest in SHACLC. I needed some down-time this weekend and didn't yet have a chance to get to your questions, but will try to reach them in the next few days. Apologies for the delay. |
The prefixes are empty because your code just uses new PrefixMapStd() which is empty I guess. You are right about the ; which was a left-over from previous versions of the spec. I have changed it to '.' hopefully resolving this ticket. Note that the SHACLC writer is really just a toy and will not work for many if not most real SHACL files. I regard the Compact Syntax as a decent way of getting definitions INTO a system, but not as an output format. |
Compact is 3x briefer than Normal and much nicer to work with, not least because the ANTL grammar gives useful error messages, which can be used to highlight errors eg in Emacs flycheck. So if I get a bunch of Normal files and need to edit them, I'd first convert to Compact. I think this inverse conversion is also useful. |
Yes, the Antlr argument is valid during editing, and that's perfectly fine. Quickly drafting shape trees is good with the compact syntax. I meant the case where you have no SHACLC to begin with and need to edit that. Once you convert them to SHACLC you'll possibly loose triples because SHACL is much richer than that. |
;
instead of .
;
instead of .
closing this, making a new one for the leftover issues |
Hi @HolgerKnublauch !
I have this test file:
property-2-values-and.shacl
:Then I convert it to SHACL using code by @yasengmarinov (we plan to release it shortly):
The result is
property-2-values-and.shaclc
:And has two problems:
;
but should be.
PREFIX
-es are missingTrying to parse this as SHACLC returns these errors:
The text was updated successfully, but these errors were encountered: