Comments (4)
Thanks for the report, could you please send a sample of instance data that fail with this shape?
Technically, each constraint (e.g. maxCount, datatype) is evaluated independently of other constraints and combinations should not have side effects. I suspect there is some issue with the data that you are trying to validate but need to take a look at some passing/failing nodes
from rdfunit.
You can download these files:
- https://daap.dsi.universite-paris-saclay.fr/w/index.php?title=Data:Organization&action=raw&export=rdf
- https://daap.dsi.universite-paris-saclay.fr/w/index.php?title=Data:Lip(Sys)2&action=raw&export=rdf
- https://daap.dsi.universite-paris-saclay.fr/w/index.php?title=Data:Platform_Metabolism_Metabolom&action=raw&export=rdf
After, you can enable the constraint maxCount in the file "Organization":
sh:property [
rdfs:label "signature"^^xsd:string ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:path <signature> ;
] ;
I hope, you can reproduce this problem.
Thanks.
from rdfunit.
tried the following limited example
schema.ttl
BASE <http://daap.dsi.universite-paris-saclay.fr/wiki/Data:Organization#>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix sh: <http://www.w3.org/ns/shacl#>
prefix vcard: <http://www.w3.org/2006/vcard/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
<Organization>
a owl:Class ;
rdfs:label "Organization"@en ;
rdfs:label "Organisation"@fr ;
rdfs:subClassOf vcard:Organization.
<Organization>
a sh:NodeShape ;
sh:targetClass <Organization> ;
sh:property [
rdfs:label "signature"^^xsd:string ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:path <signature> ;
] .
<signature>
rdf:type rdf:Property ;
rdfs:label "Official signature of this project in the publication"^^xsd:string
.
data.ttl
BASE <http://daap.dsi.universite-paris-saclay.fr/wiki/Lip(Sys)2>
prefix daap: <http://daap.dsi.universite-paris-saclay.fr/wiki/>
prefix daapo: <http://daap.dsi.universite-paris-saclay.fr/wiki/Data:Organization#>
prefix user: <http://daap.dsi.universite-paris-saclay.fr/wiki/User:>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix vcard: <http://www.w3.org/2006/vcard/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix wd: <http://www.wikidata.org/entity/>
<> #fix the problem with parenthesis
rdf:type daapo:Laboratory ;
rdfs:label "Lip(Sys)²" ;
rdfs:label "Lip(Sys)²"@en ;
rdfs:label "Lip(Sys)²"@fr ;
daapo:contact user:Pierre_Chaminade ;
daapo:signature "Lip(Sys)²- Chimie Analytique Pharmaceutique, Univ. Paris-Sud, Université Paris-Saclay, F-92290 Châtenay-Malabry, France" ;
rdfs:seeAlso <http://www.lipsys2.universite-paris-saclay.fr/> ;
daapo:item wd:Q2346 ;
daapo:item wd:Q6556376
.
and running
./bin/rdfunit -d {full-path}/data.ttl -s {full-path}/schema.ttl -r shacl -o turtle
does not return any error. Can you send a similar small example where the constraints fail to try and debug the problem?
from rdfunit.
Good news... Me too.
Yesterday, I fixed one hundred errors. This morning I tested with all rules maxCount and now, the problem has disappeared.
It's probably a side effect when there are a lot errors...
Sorry for the inconvenience.
from rdfunit.
Related Issues (20)
- AggregatedTestExecutor (and other executors) do not properly close QueryExecutionFactory instances HOT 4
- Any plans to publish version 0.8.22 in the maven repo and as Docker image? HOT 1
- Webservice does not build HOT 4
- Docker image for webservice HOT 3
- Show actual latest release on Github homepage HOT 1
- Result levels are different or not all existing comparing to the help text HOT 1
- replacing values from SPARQL based constraints in the sh:message HOT 1
- Default cache ignores `-T 0` setting HOT 1
- Object in blank node of testCase is artificial for SHACL NodeShapes HOT 2
- Feature: Allow for using bearer token with secured SPARQL endpoints HOT 1
- sh:xone constraints not supported HOT 1
- sh:not constraints not supported HOT 1
- sh:qualifiedValueShape constraints not supported
- Allow relative paths in command line configuration when specifying -s
- Automatic Constraint Detection based on RDFS/OWL broken HOT 1
- ShEx support? HOT 3
- Unable to build project using docker. HOT 4
- Question: number of instances for a given class rule HOT 4
- Issue running RDFUnit Docker in a Kubernetes environment HOT 7
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 rdfunit.