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

Add sh:SPARQLFunction #314

Open
HolgerKnublauch opened this issue Mar 8, 2025 · 1 comment
Open

Add sh:SPARQLFunction #314

HolgerKnublauch opened this issue Mar 8, 2025 · 1 comment
Assignees
Labels
SPARQL For SHACL 1.2 SPARQL extensions spec

Comments

@HolgerKnublauch
Copy link
Contributor

SHACL-AF include vocabulary to declare new (SPARQL) functions: https://w3c.github.io/shacl/shacl-af/#functions

The SHACL-SPARQL 1.2 spec should include this feature. In TopBraid we have supported this for many years and it has proven to be very useful for encapsulating reusable query snippets.

@HolgerKnublauch HolgerKnublauch added the SPARQL For SHACL 1.2 SPARQL extensions spec label Mar 8, 2025
@HolgerKnublauch HolgerKnublauch self-assigned this Mar 8, 2025
@tpluscode
Copy link

I have been thinking about function expressions and their relation to SPARQL.

SHACL-AF also has the Function Expression and https://datashapes.org/sparql# exists which defines many sh:Function (not sh:SPARQLFunction, despite its name)

IMO, we should have a more generalised set of function expressions (as in the dash-sparql namespace) which can be implemented and executed both with and without SPARQL.

The role of SHACL-SPARQL would then be to defined how each such function is implemented with SPARQL (if supported)

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

No branches or pull requests

2 participants