Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some changes for one of the tasks in #44 - exposing shex schemas used for validation in ShExJ format.
Shapes are taken from shex.js internal representation in ShExJ, ids are extracted and shown in the list, as well as shape content when one of the shapes is selected. Here is the overview of how it would look:
It will be a little harder to display SHACL shapes, as to reconstruct them we need to parse the triples graph or rely on file serialization and format to fetch shapes and corresponding names, which would be unreliable. Alternatively, we can fetch used shapes from the server, for that we can put existing shapes to the DB instead of storing them in the filesystem. This will also allow exposing ShEx shapes in ShExC, which would be more readable.
Please let me know which option sounds better.