On 20/12/2024 03:50, Paul Tyson wrote:
On 12/19/24 03:17, Andy Seaborne wrote:
My forays into SHACL have, unfortunately, been occasional, and mostly
limited to core constraints.
* Are there missing SHACL-Core constraints that you would find useful?
Are there constraints that are being done in SPARQL that could be as a
core constraints
Some ideas:
sh:like - SQL LIKE operation. Easier than using sh:pattern + sh:flags.
sh:startsWith, sh:endsWith - tests on strings. Easier to use.
sh:namespace (i.e. test URI is in a namespace / has the namespace prefix)
These are all "one triple" constraints - these naturally can be done in
parallel on a data stream when bulk loading.
If there are done with SPARQL, it makes it harder to know that the
constraint only looks at one triple.
We have a perfectly good rules language in RIF, with abundant support
for datatypes and built-in functions, and XML and RDF syntaxes. That
said, there are some acknowledged gaps between SPARQL and RIF due to the
timing of the working group deliverables. Maybe you could consider how
to extend SHACL rules to use RIF.
Which RIF implementation do you use?
Andy