w3c / shacl

SHACL Community Group (Post-REC activitities)
32 stars 5 forks source link

Select SHACL Compact Syntax editors #37

Open HolgerKnublauch opened 9 months ago

HolgerKnublauch commented 9 months ago

Moving towards a potential 1.2 release, the SHACL Compact Syntax needs new editors.

jeswr commented 9 months ago

I would be open to taking on an editing role for this spec.

Note that my current academic affiliation is not currently a paying W3C member - so I suspect I would only be able to do so as an invited expert (https://www.w3.org/invited-experts/).

VladimirAlexiev commented 8 months ago

I'd be happy to help @jeswr since I think that SHACLC is a crucial feature to compete with SHEX's dedicated syntax. Some examples (with shots) in https://github.com/VladimirAlexiev/shaclc-mode.

VladimirAlexiev commented 8 months ago

@jeswr , I dug out "shaclc" issues in the TopQuadrant repo:

Implementations:

Related issues here:

VladimirAlexiev commented 8 months ago
jeswr commented 8 months ago

Do you want to start a "scope" document with the info from the previous comment?

Is this something that should be Respec'd (in which case I'm guess it should be on this repo and I would need to be given the permissions to do that); or something that is sufficient to be thrown together in a HackMD/google doc/etc. for now?

VladimirAlexiev commented 8 months ago

I think it should be on github: for now as a markdown doc.

HolgerKnublauch commented 8 months ago

Please open a PR when ready. Once the process has started we can set up write permissions for the editors. (We do have two volunteers for the role of co-chairs, hopefully more on that this week).

mielvds commented 8 months ago

I'm interested in participating, but not sure in what way. I love the idea of SHACLC and it should be part of the spec (like @VladimirAlexiev points out: inherit the advantages of shex). I always wanted to use it, but I currently don't because of the unclear status and the minimal spec (e.g., it's unclear whether you can add comments, but you probably can?).

I was not involved in the development of SHACL whatsoever, so I'm in the dark wrt this WG/CG, but I can review, give input, provide use cases, or be editor, whatever makes the most sense and leads to a reaslistic workload.

tw-osthus commented 8 months ago

I really liked SHACLC and would have preferred using it to write shapes. So I made some advertising within the Allotrope Foundation to adopt it for the data models 5 years ago. Mainly this was the reason, I wrote the SHACLC editor at that time, but because it was "unofficial" it was not accepted by the community, which I can understand as a decision in a standardization body.

SHACL in turtle is not too bad, and I have got used to it, so I have dropped my work on SHACLC.

VladimirAlexiev commented 8 months ago

@tw-osthus Never give up! :-)

In any case, I'm sure we can ask you questions about your xtext grammar? I'm not familiar with xtext, is there a tool to convert it to EBNF?

afs commented 8 months ago

JavaCC: https://github.com/apache/jena/blob/main/jena-shacl/shaclc/shaclc.jj (there are a few extensions and they are marked e.g. in propertyParam). The grammar is LL(1), that is, quite simple parser technology.

There is elsewhere some scripts to translate the SPARQL javacc-checked grammar to EBNF and HTML and should be adaptable.

There is comprehensive tooling that Gregg Kellogg provides for W3C-favour BNF, including producing ReSpec-friendly HTML.

VladimirAlexiev commented 8 months ago

OK, so we got some grammar resources to reconcile:

As for grammar visualization, I really like http://bottlecaps.de/rr/ui. I've applied it to SPARQL, SPARQL-Star, XSPARQL (you can't use it without such diagrams!) and Holger's SHACLC: https://github.com/VladimirAlexiev/grammar-diagrams#shaclc image

jeswr commented 8 months ago

Jison: https://github.com/jeswr/shaclcjs/blob/main/lib/shaclc.jison by @jeswr (is this the closest you have to a grammar?)

Yes it is

As for grammar visualization, I really like http://bottlecaps.de/rr/ui.

That link is broken for me

VladimirAlexiev commented 8 months ago

Thanks for notifying me!

@HolgerKnublauch should shaclc have its own repo, or should I make a folder in here?

HolgerKnublauch commented 8 months ago

A folder here should be fine but isn't the shacl-compact-syntax folder already a suitable place? It does contain a .g4 file.

VladimirAlexiev commented 8 months ago

@HolgerKnublauch thanks for the quick reply! See https://github.com/w3c/shacl/pull/49 (also @jeswr: maybe you can let Jesse merge PRs to reduce your load?)

HolgerKnublauch commented 8 months ago

Yeah, I cannot look after the Compact Syntax anymore and would prefer if someone else can own this.

jeswr commented 8 months ago

Happy to take care of reviewing / approving PRs for SHACLC of given permission to do so.

@VladimirAlexiev did you mean to ping me instead of the user JesseW in your latest PR?

VladimirAlexiev commented 8 months ago

Yep: sorry: fixed.

Posted https://github.com/w3c/shacl/issues/50