Comments (5)
I don't believe there is need for separate 'relaxed' mode for this change. Changing sh:pattern
to work on IRIs as well as strings does not cause any of tests in the SHACL test suite to fail.
from pyshacl.
FWIW it looks like the TQ SHACL implementation is here: https://github.com/TopQuadrant/shacl
from pyshacl.
The spec is IMHO clear that IRIs can be checked too.
from pyshacl.
@HolgerKnublauch
Yes you're right. Re-reading the relevant sections I see it is pretty obvious. I think it was this part which threw me off:
The values of sh:pattern in a shape are literals with datatype xsd:string
I originally read that as "the focusnodes of sh:pattern constraint are literals with datatype xsd:string" so thought it excluded IRIs.
However, just looking at implementing this feature in pySHACL I see it is already implemented. All string-based constraint operations already work on IRIs, and not by accident, there is even a method in there for all string-based constraints to turn an IRI to a string before evaluating. So the spec must've been clear to me back when I wrote that code too.
So can close this as not a bug.
from pyshacl.
@HolgerKnublauch It is explicit on sh:minLength
and sh:maxLength
with the phrase "This can be applied to any literals and IRIs, but not to blank nodes.". Not explicit on sh:pattern
(this briefly threw us off the trail), but not excluded either.
from pyshacl.
Related Issues (20)
- [Discussion] Unexpected behaviour of OWL-RL reasoner HOT 2
- SPARQL constraints depend on variable names HOT 2
- Release for RDFLib 7.0 HOT 2
- assert(): cli-friendly validation + entailment api for data pipelines HOT 2
- Message template substitutions for parameters of SPARQL-based Constraint Components fail when the value is not a Literal
- CI fails on pyduktape HOT 5
- [Discussion] Pinned vs loose requirements, application vs library use cases HOT 5
- SPARQL ASK rule incorrectly passing HOT 7
- Can the prettytable dependency be upgraded to major version 3? HOT 1
- Generating SHACL-SPARQL shapes in RDFLib HOT 2
- Shacl does not seem to work on rdflib.Dataset() HOT 1
- Unable to see the validation result in pyshacl HOT 2
- How to ensure subject is not a sh:BlankNode when validating a owl:Class in an ontology? HOT 4
- owl:imports for data graph is hardcoded to false HOT 2
- pySHACL uses deprecated API `pkg_resources` HOT 4
- Trouble with qualified value shape HOT 6
- Failed to catch violations with properties that are not defined HOT 8
- Is a shape (whether node or property) restricted to one instance of sh:not? HOT 5
- Multiple sh:nots causing strange validation results HOT 2
- Multiple sh:xones on one sh:NodeShape grouping member shapes causing unexpected validation results
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyshacl.