Comments (2)
thanks for the reposrt, can you post an example input of a shapes/data graph that showcases the problem?
from rdfunit.
data.ttl:
@prefix : <http://stream-ontology.com/matvoc-core/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix emmo: <http://stream-ontology.com/matvoc-emmo> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix bibo: <http://purl.org/ontology/bibo/> .
@prefix schema: <http://schema.org/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
<http://stream-ontology.com/matvoc-core/> rdf:type owl:Ontology ;
dc:title "Materials Vocabulary: MatVoc-Core"@en;
dc:description "The Materials RDF vocabulary, described using W3C RDF Schema and the Web Ontology Language to satisfy the requirements of the STREAM project."@en ;
vann:preferredNamespaceUri "http://stream-ontology.com/" ;
vann:preferredNamespacePrefix "mvc"@en ;
bibo:status "Draft"@en ;
schema:schemaVersion "1.0.0" ;
dc:creator "Javad Chamanara", "Tatyana Sheveleva" ;
dcterms:contributor <https://aksw.org/KurtJunghanns> ;
dcterms:license "MIT License"@en ;
rdfs:seeAlso <https://stream-projekt.net> .
shape.ttl:
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rlog: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/rlog#> .
@prefix rutg: <http://rdfunit.aksw.org/data/generators#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rut: <http://rdfunit.aksw.org/ns/core#> .
@prefix rutp: <http://rdfunit.aksw.org/data/patterns#> .
@prefix rutt: <http://rdfunit.aksw.org/data/tests#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix rutt: <https://github.com/AKSW/rdf-maturitylevel-pipeline/Metadata/> .
@prefix : <https://github.com/AKSW/rdf-maturitylevel-pipeline/maturitymodel/> .
rutt:OntologyShape a sh:NodeShape ;
sh:targetClass owl:Ontology ;
rdfs:comment "A NodeShape for minimal content we expect to describe an Ontology." ;
sh:property [
sh:path rdfs:label ;
sh:minCount 1 ;
] ;
rdfs:seeAlso :M4 .
Result:
@prefix schema: <http://schema.org/> .
@prefix dsp: <http://dublincore.org/dc-dsp#> .
@prefix rutg: <http://rdfunit.aksw.org/data/generators#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rlog: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/rlog#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rutp: <http://rdfunit.aksw.org/data/patterns#> .
@prefix oslc: <http://open-services.net/ns/core#> .
@prefix rut: <http://rdfunit.aksw.org/ns/core#> .
@prefix rutr: <http://rdfunit.aksw.org/data/results#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix rutt: <http://rdfunit.aksw.org/data/tests#> .
@prefix ruts: <http://rdfunit.aksw.org/data/testsuite#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
<urn:uuid:72395bc5-5b86-44af-aa94-00b42e909958>
a sh:ValidationReport , prov:Activity , rut:TestExecution ;
rut:executionType "shaclTestCaseResult" ;
rut:source <./data.ttl> ;
rut:testsError "0"^^xsd:nonNegativeInteger ;
rut:testsFailed "1"^^xsd:nonNegativeInteger ;
rut:testsRun "1"^^xsd:nonNegativeInteger ;
rut:testsSuceedded "0"^^xsd:nonNegativeInteger ;
rut:testsTimeout "0"^^xsd:nonNegativeInteger ;
rut:totalIndividualErrors "1"^^xsd:nonNegativeInteger ;
prov:endedAtTime "2022-07-19T13:13:32.707Z"^^xsd:dateTime ;
prov:startedAtTime "2022-07-19T13:13:32.658Z"^^xsd:dateTime ;
prov:wasAssociatedWith <./shacl.ttl> ;
prov:wasStartedBy <http://localhost/> ;
sh:conforms false ;
sh:result <urn:uuid:72395bc5-5b86-44af-aa94-00b42e909958/14f77792-a6f0-47ff-a1da-dbbd83bae81c> .
<urn:uuid:72395bc5-5b86-44af-aa94-00b42e909958/14f77792-a6f0-47ff-a1da-dbbd83bae81c>
a rut:TestCaseResult , sh:ValidationResult ;
dcterms:date "2022-07-19T13:13:32.702Z"^^xsd:dateTime ;
rut:testCase [ a <urn:uuid:97438244-4950-43f4-bcd3-66d1683c4f90> ] ;
prov:wasGeneratedBy <urn:uuid:72395bc5-5b86-44af-aa94-00b42e909958> ;
sh:focusNode <http://stream-ontology.com/matvoc-core/> ;
sh:message "Minimum cardinality for <http://www.w3.org/2000/01/rdf-schema#label> is \"1\"^^<http://www.w3.org/2001/XMLSchema#integer>" ;
sh:resultMessage "Minimum cardinality for {$PATH} is {$minCount}" ;
sh:resultPath rdfs:label ;
sh:resultSeverity sh:Violation ;
sh:severity rlog:ERROR ;
sh:sourceConstraintComponent sh:MinCountConstraintComponent ;
sh:sourceShape [] .
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
- There is a problem with maxCount ? HOT 4
- replacing values from SPARQL based constraints in the sh:message HOT 1
- Default cache ignores `-T 0` setting HOT 1
- 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.