Skip to content
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

Support of SHACL as an additional language for code blocks #73

Open
arne-bdt opened this issue Dec 22, 2023 · 2 comments
Open

Support of SHACL as an additional language for code blocks #73

arne-bdt opened this issue Dec 22, 2023 · 2 comments

Comments

@arne-bdt
Copy link

I propose to add support for SHACL validation:

  • In addition to SPARQL, SHACL could be added as a second language in the code blocks
  • SHACL should use the text/turtle syntax.
  • The result should be text/turtle.

Like this:
image

I created a "works for me" - fork:
main...arne-bdt:vscode-sparql-notebook:main

Unfortunately I have no experience with developing vs-code extensions.
Also, my web development skills are a bit rusty. I haven't done anything with Typescript and the whole ecosystem around npm, webpack etc. for a few years.
For example, I find it difficult to find an approach in the project to add the necessary tests.

If your requirements do not exceed my skills, I am willing to make a proper pull request.

@BenjaminHofstetter
Copy link
Collaborator

BenjaminHofstetter commented Jan 23, 2024

Why would you like to have this in SPARQL Notebook ?
Do you want to develop SHACL Shapes ? Or do you want to validate a Graph?

I can imagine to develop a SHACL notebook for development of shapes.

# [datagraph=./foo.ttl]

my:Shapa a sh:NodeShape .

and running the cell validates datagraph with the current cell.

@arne-bdt
Copy link
Author

@BenjaminHofstetter
I am currently focusing on developing and documenting SHACL Shapes. In my experience, maintaining a separate notebook exclusively for SHACL doesn't seem optimal, particularly since I started using a mixed notebook approach (using my branch of sparql-notebook).

SPARQL and SHACL are complementary standards, and their integration is not just beneficial but sometimes essential. Being able to query and view the data that needs validation within the same environment is incredibly useful. This is particularly true for SHACL Shapes that incorporate SPARQL Constraints. The combined use of SPARQL and SHACL within a single notebook enhances the development process, allowing for a more dynamic and cohesive workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants