Skip to content

Node expression library #367

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

Open
afs opened this issue Apr 21, 2025 · 4 comments
Open

Node expression library #367

afs opened this issue Apr 21, 2025 · 4 comments
Assignees
Labels
Node Expressions For SHACL 1.2 Node Expressions

Comments

@afs
Copy link
Contributor

afs commented Apr 21, 2025

What are the node expression functions to be defined by shacl12-node-expr?

@afs afs added the Node Expressions For SHACL 1.2 Node Expressions label Apr 21, 2025
@afs
Copy link
Contributor Author

afs commented Apr 21, 2025

There will be a SPARQL namespace document with all SPARQL-defined functions and most operators.

Working draft: https://github.com/w3c/sparql-query/blob/main/sparql-ns.ttl

PREFIX sparql:  <http://www.w3.org/ns/sparql#>

NB Some things do not make sense as functions; e.g. bound(?x); e.g. || due to left-right partial evaluation.

@nicholascar
Copy link
Contributor

Just added the proposed Node Expression editors as assignees

@tpluscode
Copy link
Contributor

What are the node expression functions to be defined by shacl12-node-expr?

Possibly most from https://datashapes.org/sparql and https://w3c.github.io/shacl/shacl-af/#node-expressions

@afs
Copy link
Contributor Author

afs commented Apr 22, 2025

Possibly most from https://datashapes.org/sparql

sparql-ns.ttl covers that?

The difference being https://datashapes.org/sparql uses named parameters fixed as "arg1", "arg2". Be better to map between the arg1/arg2 style, if retained, and NE listExpression function calls.

See #322.

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

No branches or pull requests

6 participants