From f7556ee3797abd31d22b84a2c872edfd517ea9b4 Mon Sep 17 00:00:00 2001 From: Martin Maillard Date: Tue, 14 Apr 2020 17:56:44 +0200 Subject: [PATCH] Remove redundant integration tests They are replaced by the official SHACL test suite --- test/configuration_tests.js | 2 +- test/data/core/complex/personexample.test.ttl | 99 ----- test/data/core/misc/deactivated-001.test.ttl | 40 -- test/data/core/misc/deactivated-002.test.ttl | 39 -- test/data/core/misc/severity-001.test.ttl | 38 -- test/data/core/misc/severity-002.test.ttl | 55 --- test/data/core/node/and-001.test.ttl | 72 ---- test/data/core/node/and-002.test.ttl | 70 ---- test/data/core/node/class-001.test.ttl | 65 ---- test/data/core/node/class-002.test.ttl | 57 --- test/data/core/node/closed-001.test.ttl | 60 --- test/data/core/node/closed-002.test.ttl | 54 --- test/data/core/node/closed-false.test.ttl | 28 -- test/data/core/node/datatype-001.test.ttl | 59 --- test/data/core/node/datatype-002.test.ttl | 48 --- test/data/core/node/disjoint-001.test.ttl | 47 --- test/data/core/node/equals-001.test.ttl | 55 --- test/data/core/node/hasValue-001.test.ttl | 40 -- test/data/core/node/in-001.test.ttl | 59 --- test/data/core/node/languageIn-001.test.ttl | 61 --- test/data/core/node/maxExclusive-001.test.ttl | 86 ---- test/data/core/node/maxInclusive-001.test.ttl | 70 ---- test/data/core/node/maxLength-001.test.ttl | 82 ---- test/data/core/node/minExclusive-001.test.ttl | 86 ---- test/data/core/node/minInclusive-001.test.ttl | 40 -- test/data/core/node/minLength-001.test.ttl | 74 ---- test/data/core/node/node-001.test.ttl | 50 --- test/data/core/node/nodeKind-001.test.ttl | 39 -- test/data/core/node/not-001.test.ttl | 54 --- test/data/core/node/not-002.test.ttl | 48 --- test/data/core/node/or-001.test.ttl | 87 ----- test/data/core/node/pattern-001.test.ttl | 71 ---- test/data/core/node/pattern-002.test.ttl | 41 -- test/data/core/node/xone-001.test.ttl | 69 ---- .../core/path/path-alternative-001.test.ttl | 81 ---- test/data/core/path/path-complex-001.test.ttl | 86 ---- test/data/core/path/path-inverse-001.test.ttl | 85 ---- .../core/path/path-oneOrMore-001.test.ttl | 66 ---- .../data/core/path/path-sequence-001.test.ttl | 75 ---- .../data/core/path/path-sequence-002.test.ttl | 78 ---- .../path/path-sequence-duplicate-001.test.ttl | 58 --- .../core/path/path-zeroOrMore-001.test.ttl | 56 --- .../core/path/path-zeroOrOne-001.test.ttl | 56 --- test/data/core/property/and-001.test.ttl | 102 ----- test/data/core/property/class-001.test.ttl | 86 ---- test/data/core/property/datatype-001.test.ttl | 72 ---- test/data/core/property/datatype-002.test.ttl | 67 ---- test/data/core/property/datatype-003.test.ttl | 65 ---- test/data/core/property/disjoint-001.test.ttl | 80 ---- test/data/core/property/equals-001.test.ttl | 114 ------ test/data/core/property/hasValue-001.test.ttl | 63 --- test/data/core/property/in-001.test.ttl | 64 --- .../core/property/languageIn-001.test.ttl | 74 ---- test/data/core/property/lessThan-001.test.ttl | 91 ----- test/data/core/property/lessThan-002.test.ttl | 77 ---- .../property/lessThanOrEquals-001.test.ttl | 82 ---- test/data/core/property/maxCount-001.test.ttl | 59 --- test/data/core/property/maxCount-002.test.ttl | 52 --- .../core/property/maxExclusive-001.test.ttl | 79 ---- .../core/property/maxInclusive-001.test.ttl | 66 ---- .../data/core/property/maxLength-001.test.ttl | 57 --- test/data/core/property/minCount-001.test.ttl | 57 --- test/data/core/property/minCount-002.test.ttl | 36 -- .../core/property/minExclusive-001.test.ttl | 64 --- .../core/property/minExclusive-002.test.ttl | 60 --- .../data/core/property/minLength-001.test.ttl | 56 --- test/data/core/property/node-001.test.ttl | 108 ------ test/data/core/property/node-002.test.ttl | 70 ---- test/data/core/property/nodeKind-001.test.ttl | 366 ------------------ test/data/core/property/not-001.test.ttl | 64 --- test/data/core/property/or-001.test.ttl | 71 ---- .../core/property/or-datatypes-001.test.ttl | 90 ----- test/data/core/property/pattern-001.test.ttl | 69 ---- test/data/core/property/pattern-002.test.ttl | 61 --- test/data/core/property/property-001.test.ttl | 95 ----- .../qualifiedMinCountDisjoint-001.test.ttl | 111 ------ .../property/qualifiedValueShape-001.test.ttl | 75 ---- .../qualifiedValueShapesDisjoint-001.test.ttl | 123 ------ .../core/property/uniqueLang-001.test.ttl | 81 ---- .../core/property/uniqueLang-false.test.ttl | 37 -- .../core/targets/multipleTargets-001.test.ttl | 52 --- .../core/targets/targetClass-001.test.ttl | 57 --- .../targets/targetClassImplicit-001.test.ttl | 54 --- .../data/core/targets/targetNode-001.test.ttl | 52 --- .../core/targets/targetObjectsOf-001.test.ttl | 60 --- .../targets/targetSubjectsOf-001.test.ttl | 52 --- .../targets/targetSubjectsOf-002.test.ttl | 69 ---- test/integration_tests.js | 79 ---- 88 files changed, 1 insertion(+), 6104 deletions(-) delete mode 100644 test/data/core/complex/personexample.test.ttl delete mode 100644 test/data/core/misc/deactivated-001.test.ttl delete mode 100644 test/data/core/misc/deactivated-002.test.ttl delete mode 100644 test/data/core/misc/severity-001.test.ttl delete mode 100644 test/data/core/misc/severity-002.test.ttl delete mode 100644 test/data/core/node/and-001.test.ttl delete mode 100644 test/data/core/node/and-002.test.ttl delete mode 100644 test/data/core/node/class-001.test.ttl delete mode 100644 test/data/core/node/class-002.test.ttl delete mode 100644 test/data/core/node/closed-001.test.ttl delete mode 100644 test/data/core/node/closed-002.test.ttl delete mode 100644 test/data/core/node/closed-false.test.ttl delete mode 100644 test/data/core/node/datatype-001.test.ttl delete mode 100644 test/data/core/node/datatype-002.test.ttl delete mode 100644 test/data/core/node/disjoint-001.test.ttl delete mode 100644 test/data/core/node/equals-001.test.ttl delete mode 100644 test/data/core/node/hasValue-001.test.ttl delete mode 100644 test/data/core/node/in-001.test.ttl delete mode 100644 test/data/core/node/languageIn-001.test.ttl delete mode 100644 test/data/core/node/maxExclusive-001.test.ttl delete mode 100644 test/data/core/node/maxInclusive-001.test.ttl delete mode 100644 test/data/core/node/maxLength-001.test.ttl delete mode 100644 test/data/core/node/minExclusive-001.test.ttl delete mode 100644 test/data/core/node/minInclusive-001.test.ttl delete mode 100644 test/data/core/node/minLength-001.test.ttl delete mode 100644 test/data/core/node/node-001.test.ttl delete mode 100644 test/data/core/node/nodeKind-001.test.ttl delete mode 100644 test/data/core/node/not-001.test.ttl delete mode 100644 test/data/core/node/not-002.test.ttl delete mode 100644 test/data/core/node/or-001.test.ttl delete mode 100644 test/data/core/node/pattern-001.test.ttl delete mode 100644 test/data/core/node/pattern-002.test.ttl delete mode 100644 test/data/core/node/xone-001.test.ttl delete mode 100644 test/data/core/path/path-alternative-001.test.ttl delete mode 100644 test/data/core/path/path-complex-001.test.ttl delete mode 100644 test/data/core/path/path-inverse-001.test.ttl delete mode 100644 test/data/core/path/path-oneOrMore-001.test.ttl delete mode 100644 test/data/core/path/path-sequence-001.test.ttl delete mode 100644 test/data/core/path/path-sequence-002.test.ttl delete mode 100644 test/data/core/path/path-sequence-duplicate-001.test.ttl delete mode 100644 test/data/core/path/path-zeroOrMore-001.test.ttl delete mode 100644 test/data/core/path/path-zeroOrOne-001.test.ttl delete mode 100644 test/data/core/property/and-001.test.ttl delete mode 100644 test/data/core/property/class-001.test.ttl delete mode 100644 test/data/core/property/datatype-001.test.ttl delete mode 100644 test/data/core/property/datatype-002.test.ttl delete mode 100644 test/data/core/property/datatype-003.test.ttl delete mode 100644 test/data/core/property/disjoint-001.test.ttl delete mode 100644 test/data/core/property/equals-001.test.ttl delete mode 100644 test/data/core/property/hasValue-001.test.ttl delete mode 100644 test/data/core/property/in-001.test.ttl delete mode 100644 test/data/core/property/languageIn-001.test.ttl delete mode 100644 test/data/core/property/lessThan-001.test.ttl delete mode 100644 test/data/core/property/lessThan-002.test.ttl delete mode 100644 test/data/core/property/lessThanOrEquals-001.test.ttl delete mode 100644 test/data/core/property/maxCount-001.test.ttl delete mode 100644 test/data/core/property/maxCount-002.test.ttl delete mode 100644 test/data/core/property/maxExclusive-001.test.ttl delete mode 100644 test/data/core/property/maxInclusive-001.test.ttl delete mode 100644 test/data/core/property/maxLength-001.test.ttl delete mode 100644 test/data/core/property/minCount-001.test.ttl delete mode 100644 test/data/core/property/minCount-002.test.ttl delete mode 100644 test/data/core/property/minExclusive-001.test.ttl delete mode 100644 test/data/core/property/minExclusive-002.test.ttl delete mode 100644 test/data/core/property/minLength-001.test.ttl delete mode 100644 test/data/core/property/node-001.test.ttl delete mode 100644 test/data/core/property/node-002.test.ttl delete mode 100644 test/data/core/property/nodeKind-001.test.ttl delete mode 100644 test/data/core/property/not-001.test.ttl delete mode 100644 test/data/core/property/or-001.test.ttl delete mode 100644 test/data/core/property/or-datatypes-001.test.ttl delete mode 100644 test/data/core/property/pattern-001.test.ttl delete mode 100644 test/data/core/property/pattern-002.test.ttl delete mode 100644 test/data/core/property/property-001.test.ttl delete mode 100644 test/data/core/property/qualifiedMinCountDisjoint-001.test.ttl delete mode 100644 test/data/core/property/qualifiedValueShape-001.test.ttl delete mode 100644 test/data/core/property/qualifiedValueShapesDisjoint-001.test.ttl delete mode 100644 test/data/core/property/uniqueLang-001.test.ttl delete mode 100644 test/data/core/property/uniqueLang-false.test.ttl delete mode 100644 test/data/core/targets/multipleTargets-001.test.ttl delete mode 100644 test/data/core/targets/targetClass-001.test.ttl delete mode 100644 test/data/core/targets/targetClassImplicit-001.test.ttl delete mode 100644 test/data/core/targets/targetNode-001.test.ttl delete mode 100644 test/data/core/targets/targetObjectsOf-001.test.ttl delete mode 100644 test/data/core/targets/targetSubjectsOf-001.test.ttl delete mode 100644 test/data/core/targets/targetSubjectsOf-002.test.ttl delete mode 100644 test/integration_tests.js diff --git a/test/configuration_tests.js b/test/configuration_tests.js index 94e7ece..21b775f 100644 --- a/test/configuration_tests.js +++ b/test/configuration_tests.js @@ -6,7 +6,7 @@ const { loadDataset } = require('./utils') describe('configuration', () => { it('stops after `maxErrors` is reached', async () => { - const dataFile = path.join(__dirname, '/data/core/property/class-001.test.ttl') + const dataFile = path.join(__dirname, '/data/data-shapes/core/property/class-001.ttl') const data = await loadDataset(dataFile) const shapes = data diff --git a/test/data/core/complex/personexample.test.ttl b/test/data/core/complex/personexample.test.ttl deleted file mode 100644 index 807f79e..0000000 --- a/test/data/core/complex/personexample.test.ttl +++ /dev/null @@ -1,99 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/complex/personexample.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of personexample" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:Alice - rdf:type ex:Person ; - ex:ssn "987-65-432A" ; -. -ex:Bob - rdf:type ex:Person ; - ex:ssn "123-45-6789" ; - ex:ssn "124-35-6789" ; -. -ex:Calvin - rdf:type ex:Person ; - ex:birthDate "1999-09-09"^^xsd:date ; - ex:worksFor ex:UntypedCompany ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Alice ; - sh:resultPath ex:ssn ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:PatternConstraintComponent ; - sh:sourceShape _:b1 ; - sh:value "987-65-432A" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Bob ; - sh:resultPath ex:ssn ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxCountConstraintComponent ; - sh:sourceShape _:b1 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Calvin ; - sh:resultPath ex:birthDate ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClosedConstraintComponent ; - sh:value "1999-09-09"^^xsd:date ; - sh:sourceShape ex:PersonShape ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Calvin ; - sh:resultPath ex:worksFor ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClassConstraintComponent ; - sh:sourceShape [] ; - sh:value ex:UntypedCompany ; - ] ; - ] ; -. -ex:PersonShape - rdf:type sh:NodeShape ; - sh:closed "true"^^xsd:boolean ; - sh:ignoredProperties ( - rdf:type - ) ; - sh:property [ - sh:path ex:ssn ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:pattern "^\\d{3}-\\d{2}-\\d{4}$" ; - ] ; - sh:property [ - sh:path ex:worksFor ; - sh:class ex:Company ; - sh:nodeKind sh:IRI ; - ] ; - sh:property [ - sh:path [ - sh:inversePath ex:worksFor ; - ] ; - sh:name "employee" ; - ] ; - sh:targetClass ex:Person ; -. diff --git a/test/data/core/misc/deactivated-001.test.ttl b/test/data/core/misc/deactivated-001.test.ttl deleted file mode 100644 index 3e0666d..0000000 --- a/test/data/core/misc/deactivated-001.test.ttl +++ /dev/null @@ -1,40 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/misc/deactivated-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of deactivated-001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; - ] ; -. -ex:InvalidResource - rdf:type rdfs:Resource ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:datatype xsd:boolean ; - sh:deactivated "true"^^xsd:boolean ; - sh:property ex:TestShape2 ; - sh:targetNode ex:InvalidResource ; -. -ex:TestShape2 - rdf:type sh:PropertyShape ; - sh:path ex:property ; - sh:minCount 1 ; -. diff --git a/test/data/core/misc/deactivated-002.test.ttl b/test/data/core/misc/deactivated-002.test.ttl deleted file mode 100644 index 27243d2..0000000 --- a/test/data/core/misc/deactivated-002.test.ttl +++ /dev/null @@ -1,39 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/misc/deactivated-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of deactivated-002" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 32 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 32 ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:datatype xsd:boolean ; - sh:deactivated "false"^^xsd:boolean ; - sh:targetNode 32 ; -. diff --git a/test/data/core/misc/severity-001.test.ttl b/test/data/core/misc/severity-001.test.ttl deleted file mode 100644 index 12c4104..0000000 --- a/test/data/core/misc/severity-001.test.ttl +++ /dev/null @@ -1,38 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/misc/severity-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:severity 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Hello" ; - sh:resultSeverity sh:Warning ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Hello" ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:datatype xsd:integer ; - sh:severity sh:Warning ; - sh:targetNode "Hello" ; -. diff --git a/test/data/core/misc/severity-002.test.ttl b/test/data/core/misc/severity-002.test.ttl deleted file mode 100644 index 69cad23..0000000 --- a/test/data/core/misc/severity-002.test.ttl +++ /dev/null @@ -1,55 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/misc/severity-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:severity 002" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:property ; - sh:resultSeverity sh:Info ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape2 ; - sh:value "true"^^xsd:boolean ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultSeverity ex:MySeverity ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape ex:TestShape1 ; - sh:value ex:InvalidResource1 ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property "true"^^xsd:boolean ; -. -ex:TestShape1 - sh:nodeKind sh:BlankNode ; - sh:property ex:TestShape2 ; - sh:severity ex:MySeverity ; - sh:targetNode ex:InvalidResource1 ; -. -ex:TestShape2 - sh:path ex:property ; - sh:datatype xsd:integer ; - sh:severity sh:Info ; -. diff --git a/test/data/core/node/and-001.test.ttl b/test/data/core/node/and-001.test.ttl deleted file mode 100644 index 069ad95..0000000 --- a/test/data/core/node/and-001.test.ttl +++ /dev/null @@ -1,72 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/and-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:and at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidRectangle1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:AndConstraintComponent ; - sh:sourceShape ex:Rectangle ; - sh:value ex:InvalidRectangle1 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidRectangle2 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:AndConstraintComponent ; - sh:sourceShape ex:Rectangle ; - sh:value ex:InvalidRectangle2 ; - ] ; - ] ; -. -ex:InvalidRectangle1 - rdf:type ex:Rectangle ; - ex:height 3 ; -. -ex:InvalidRectangle2 - rdf:type ex:Rectangle ; - ex:width 2 ; -. -ex:Rectangle - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:subClassOf rdfs:Resource ; - sh:and ( - [ - sh:property [ - sh:path ex:width ; - sh:minCount 1 ; - ] ; - ] - [ - sh:property [ - sh:path ex:height ; - sh:minCount 1 ; - ] ; - ] - ) ; -. -ex:ValidRectangle1 - rdf:type ex:Rectangle ; - ex:height 3 ; - ex:width 2 ; -. diff --git a/test/data/core/node/and-002.test.ttl b/test/data/core/node/and-002.test.ttl deleted file mode 100644 index 2c9dfa8..0000000 --- a/test/data/core/node/and-002.test.ttl +++ /dev/null @@ -1,70 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/and-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:and at node shape 002" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:AndShape - rdf:type sh:NodeShape ; - sh:and ( - ex:SuperShape - [ - sh:property [ - sh:path ex:property ; - sh:maxCount 1 ; - ] ; - ] - ) ; - sh:targetNode ex:InvalidInstance1 ; - sh:targetNode ex:InvalidInstance2 ; - sh:targetNode ex:ValidInstance1 ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:AndConstraintComponent ; - sh:sourceShape ex:AndShape ; - sh:value ex:InvalidInstance1 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance2 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:AndConstraintComponent ; - sh:sourceShape ex:AndShape ; - sh:value ex:InvalidInstance2 ; - ] ; - ] ; -. -ex:InvalidInstance2 - ex:property "One" ; - ex:property "Two" ; -. -ex:SuperShape - rdf:type sh:NodeShape ; - sh:property [ - sh:path ex:property ; - sh:minCount 1 ; - ] ; -. -ex:ValidInstance1 - ex:property "One" ; -. diff --git a/test/data/core/node/class-001.test.ttl b/test/data/core/node/class-001.test.ttl deleted file mode 100644 index fbc85f9..0000000 --- a/test/data/core/node/class-001.test.ttl +++ /dev/null @@ -1,65 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/class-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:class at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Quokki ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClassConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:Quokki ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Typeless ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClassConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:Typeless ; - ] ; - ] ; -. -ex:John - rdf:type ex:MalePerson ; -. -ex:MalePerson - rdf:type rdfs:Class ; - rdfs:subClassOf ex:Person ; -. -ex:Person - rdf:type rdfs:Class ; - rdfs:subClassOf rdfs:Resource ; -. -ex:Quokki - rdf:type ex:Animal ; -. -ex:Someone - rdf:type ex:Person ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:class ex:Person ; - sh:targetNode ex:John ; - sh:targetNode ex:Quokki ; - sh:targetNode ex:Someone ; - sh:targetNode ex:Typeless ; -. diff --git a/test/data/core/node/class-002.test.ttl b/test/data/core/node/class-002.test.ttl deleted file mode 100644 index d9fc3b0..0000000 --- a/test/data/core/node/class-002.test.ttl +++ /dev/null @@ -1,57 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/class-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:class at node shape 002" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "String" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClassConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "String" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode _:b9751 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClassConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value _:b9751 ; - ] ; - ] ; -. -ex:NamedInstance - rdf:type ex:TestClass ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:class ex:TestClass ; - sh:targetClass ex:BNodeClass ; - sh:targetNode ex:NamedInstance ; - sh:targetNode "String" ; -. -_:b9751 - rdf:type ex:BNodeClass ; -. -[ - rdf:type ex:BNodeClass ; - rdf:type ex:TestClass ; -]. diff --git a/test/data/core/node/closed-001.test.ttl b/test/data/core/node/closed-001.test.ttl deleted file mode 100644 index c83a4e5..0000000 --- a/test/data/core/node/closed-001.test.ttl +++ /dev/null @@ -1,60 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/closed-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:closed at node shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath rdf:type ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClosedConstraintComponent ; - sh:sourceShape ex:MyShape ; - sh:value ex:SomeClass ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:otherProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClosedConstraintComponent ; - sh:sourceShape ex:MyShape ; - sh:value 4 ; - ] ; - ] ; -. -ex:InvalidInstance1 - rdf:type ex:SomeClass ; - ex:otherProperty 4 ; - ex:someProperty 3 ; -. -ex:MyShape - rdf:type sh:NodeShape ; - sh:closed "true"^^xsd:boolean ; - sh:property [ - sh:path ex:someProperty ; - ] ; - sh:targetNode ex:InvalidInstance1 ; - sh:targetNode ex:ValidInstance1 ; -. -ex:ValidInstance1 - ex:someProperty 3 ; -. diff --git a/test/data/core/node/closed-002.test.ttl b/test/data/core/node/closed-002.test.ttl deleted file mode 100644 index 10f6439..0000000 --- a/test/data/core/node/closed-002.test.ttl +++ /dev/null @@ -1,54 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/closed-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:closed at node shape 002" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:otherProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClosedConstraintComponent ; - sh:sourceShape ex:MyShape ; - sh:value 4 ; - ] ; - ] ; -. -ex:InvalidInstance1 - ex:otherProperty 4 ; - ex:someProperty 3 ; -. -ex:MyShape - rdf:type sh:NodeShape ; - sh:closed "true"^^xsd:boolean ; - sh:ignoredProperties ( - rdf:type - ) ; - sh:property [ - sh:path ex:someProperty ; - ] ; - sh:targetNode ex:InvalidInstance1 ; - sh:targetNode ex:ValidInstance1 ; -. -ex:ValidInstance1 - rdf:type ex:SomeClass ; - ex:someProperty 3 ; -. diff --git a/test/data/core/node/closed-false.test.ttl b/test/data/core/node/closed-false.test.ttl deleted file mode 100644 index c9eb25e..0000000 --- a/test/data/core/node/closed-false.test.ttl +++ /dev/null @@ -1,28 +0,0 @@ -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:closed set to false" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; - ] ; -. -ex:ValidInstance1 - ex:otherProperty 4 ; - ex:someProperty 3 ; -. -ex:MyShape - rdf:type sh:NodeShape ; - sh:closed "false"^^xsd:boolean ; - sh:targetNode ex:ValidInstance1 ; -. diff --git a/test/data/core/node/datatype-001.test.ttl b/test/data/core/node/datatype-001.test.ttl deleted file mode 100644 index 67d751b..0000000 --- a/test/data/core/node/datatype-001.test.ttl +++ /dev/null @@ -1,59 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/datatype-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:datatype at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode xsd:integer ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value xsd:integer ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "aldi"^^xsd:integer ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "aldi"^^xsd:integer ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode _:b9649 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value _:b9649 ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:datatype xsd:integer ; - sh:targetNode xsd:integer ; - sh:targetNode 42 ; - sh:targetNode "aldi"^^xsd:integer ; - sh:targetClass ex:TestClass ; -. -_:b9649 - rdf:type ex:TestClass ; -. diff --git a/test/data/core/node/datatype-002.test.ttl b/test/data/core/node/datatype-002.test.ttl deleted file mode 100644 index dd5fb3b..0000000 --- a/test/data/core/node/datatype-002.test.ttl +++ /dev/null @@ -1,48 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/datatype-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:datatype at node shape 002" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Hello"^^rdf:HTML ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Hello"^^rdf:HTML ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Hello" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Hello" ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:datatype rdf:langString ; - sh:targetNode "Hello"^^rdf:HTML ; - sh:targetNode "G'day"@en-AU ; - sh:targetNode "Hallo"@de ; - sh:targetNode "Hello" ; -. diff --git a/test/data/core/node/disjoint-001.test.ttl b/test/data/core/node/disjoint-001.test.ttl deleted file mode 100644 index 36d181e..0000000 --- a/test/data/core/node/disjoint-001.test.ttl +++ /dev/null @@ -1,47 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/disjoint-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:disjoint at node shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DisjointConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:InvalidResource1 ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property ex:InvalidResource1 ; - ex:property ex:ValidResource1 ; -. -ex:TestShape - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:disjoint ex:property ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:ValidResource1 ; -. -ex:ValidResource1 - ex:property ex:InvalidResource1 ; -. diff --git a/test/data/core/node/equals-001.test.ttl b/test/data/core/node/equals-001.test.ttl deleted file mode 100644 index 9c05912..0000000 --- a/test/data/core/node/equals-001.test.ttl +++ /dev/null @@ -1,55 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/equals-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:equals at node shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:EqualsConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:SomeValue ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:EqualsConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:InvalidResource2 ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property ex:InvalidResource1 ; - ex:property ex:SomeValue ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:equals ex:property ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:ValidResource1 ; -. -ex:ValidResource1 - ex:property ex:ValidResource1 ; -. diff --git a/test/data/core/node/hasValue-001.test.ttl b/test/data/core/node/hasValue-001.test.ttl deleted file mode 100644 index 8ec51e6..0000000 --- a/test/data/core/node/hasValue-001.test.ttl +++ /dev/null @@ -1,40 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/hasValue-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:hasValue at node shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Invalid String" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:HasValueConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Invalid String" ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:hasValue "Test" ; - sh:targetNode "Invalid String" ; - sh:targetNode "Test" ; -. diff --git a/test/data/core/node/in-001.test.ttl b/test/data/core/node/in-001.test.ttl deleted file mode 100644 index 8e24716..0000000 --- a/test/data/core/node/in-001.test.ttl +++ /dev/null @@ -1,59 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/in-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:in at node shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:InConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:InvalidInstance ; - ] ; - ] ; -. -ex:Green - rdf:type ex:TestShape ; - rdfs:label "Green" ; -. -ex:InvalidInstance - rdf:type ex:TestShape ; - rdfs:label "Invalid instance" ; -. -ex:Red - rdf:type ex:TestShape ; - rdfs:label "Red" ; -. -ex:TestShape - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:in ( - ex:Green - ex:Red - ex:Yellow - ) ; -. -ex:Yellow - rdf:type ex:TestShape ; - rdfs:label "Yellow" ; -. diff --git a/test/data/core/node/languageIn-001.test.ttl b/test/data/core/node/languageIn-001.test.ttl deleted file mode 100644 index d081751..0000000 --- a/test/data/core/node/languageIn-001.test.ttl +++ /dev/null @@ -1,61 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/languageIn-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:languageIn at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode rdfs:Resource ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LanguageInConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value rdfs:Resource ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Deutsch"@de ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LanguageInConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Deutsch"@de ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Plain String" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LanguageInConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Plain String" ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:languageIn ( - "en" - "fr" - ) ; - sh:targetNode rdfs:Resource ; - sh:targetNode "Deutsch"@de ; - sh:targetNode "English"@en ; - sh:targetNode "Francais"@fr ; - sh:targetNode "Plain String" ; -. diff --git a/test/data/core/node/maxExclusive-001.test.ttl b/test/data/core/node/maxExclusive-001.test.ttl deleted file mode 100644 index e6dd143..0000000 --- a/test/data/core/node/maxExclusive-001.test.ttl +++ /dev/null @@ -1,86 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/maxExclusive-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:maxExclusive at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:John ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:John ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 4 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 4 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 4.0 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 4.0 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 4.1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 4.1 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Hello" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Hello" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode _:b9649 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value _:b9649 ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:maxExclusive 4 ; - sh:targetNode ex:John ; - sh:targetNode 3.9 ; - sh:targetNode 4 ; - sh:targetNode 4.0 ; - sh:targetNode 4.1 ; - sh:targetNode "Hello" ; - sh:targetClass ex:TestClass ; -. -_:b9649 - rdf:type ex:TestClass ; -. diff --git a/test/data/core/node/maxInclusive-001.test.ttl b/test/data/core/node/maxInclusive-001.test.ttl deleted file mode 100644 index bd9c8c0..0000000 --- a/test/data/core/node/maxInclusive-001.test.ttl +++ /dev/null @@ -1,70 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/maxInclusive-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:maxInclusive at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:John ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxInclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:John ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 4.1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxInclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 4.1 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Hello" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxInclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Hello" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode _:b9649 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxInclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value _:b9649 ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:maxInclusive 4 ; - sh:targetNode ex:John ; - sh:targetNode 3.9 ; - sh:targetNode 4 ; - sh:targetNode 4.0 ; - sh:targetNode 4.1 ; - sh:targetNode "Hello" ; - sh:targetClass ex:TestClass ; -. -_:b9649 - rdf:type ex:TestClass ; -. diff --git a/test/data/core/node/maxLength-001.test.ttl b/test/data/core/node/maxLength-001.test.ttl deleted file mode 100644 index 4d81698..0000000 --- a/test/data/core/node/maxLength-001.test.ttl +++ /dev/null @@ -1,82 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/maxLength-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:maxLength at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:John ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxLengthConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:John ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 12345 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxLengthConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 12345 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "2017-03-29"^^xsd:date ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxLengthConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "2017-03-29"^^xsd:date ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Hello" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxLengthConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Hello" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode _:b9649 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxLengthConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value _:b9649 ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:maxLength 4 ; - sh:targetNode ; - sh:targetNode ex:John ; - sh:targetNode 123 ; - sh:targetNode 1234 ; - sh:targetNode 12345 ; - sh:targetNode "2017-03-29"^^xsd:date ; - sh:targetNode "Hel" ; - sh:targetNode "Hell" ; - sh:targetNode "Hell"@en ; - sh:targetNode "Hello" ; - sh:targetClass ex:TestClass ; -. -_:b9649 - rdf:type ex:TestClass ; -. diff --git a/test/data/core/node/minExclusive-001.test.ttl b/test/data/core/node/minExclusive-001.test.ttl deleted file mode 100644 index 5dcb537..0000000 --- a/test/data/core/node/minExclusive-001.test.ttl +++ /dev/null @@ -1,86 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/minExclusive-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:minExclusive at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:John ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:John ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 3.9 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 3.9 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 4 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 4 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 4.0 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 4.0 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Hello" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Hello" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode _:b9649 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value _:b9649 ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:minExclusive 4 ; - sh:targetNode ex:John ; - sh:targetNode 3.9 ; - sh:targetNode 4 ; - sh:targetNode 4.0 ; - sh:targetNode 4.1 ; - sh:targetNode "Hello" ; - sh:targetClass ex:TestClass ; -. -_:b9649 - rdf:type ex:TestClass ; -. diff --git a/test/data/core/node/minInclusive-001.test.ttl b/test/data/core/node/minInclusive-001.test.ttl deleted file mode 100644 index 560dbc9..0000000 --- a/test/data/core/node/minInclusive-001.test.ttl +++ /dev/null @@ -1,40 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/minInclusive-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:minInclusive at node shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 7 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinInclusiveConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 7 ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:minInclusive 8 ; - sh:targetNode 7 ; - sh:targetNode 8 ; - sh:targetNode 9 ; -. diff --git a/test/data/core/node/minLength-001.test.ttl b/test/data/core/node/minLength-001.test.ttl deleted file mode 100644 index c908aa8..0000000 --- a/test/data/core/node/minLength-001.test.ttl +++ /dev/null @@ -1,74 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/minLength-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:minLength at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinLengthConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 123 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinLengthConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 123 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Hel" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinLengthConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Hel" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode _:b9649 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinLengthConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value _:b9649 ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:minLength 4 ; - sh:targetNode ; - sh:targetNode ex:John ; - sh:targetNode 123 ; - sh:targetNode 1234 ; - sh:targetNode 12345 ; - sh:targetNode "2017-03-29"^^xsd:date ; - sh:targetNode "Hel" ; - sh:targetNode "Hell" ; - sh:targetNode "Hell"@en ; - sh:targetNode "Hello" ; - sh:targetClass ex:TestClass ; -. -_:b9649 - rdf:type ex:TestClass ; -. diff --git a/test/data/core/node/node-001.test.ttl b/test/data/core/node/node-001.test.ttl deleted file mode 100644 index 05580e8..0000000 --- a/test/data/core/node/node-001.test.ttl +++ /dev/null @@ -1,50 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/node-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:node at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeConstraintComponent ; - sh:sourceShape ex:TestClass ; - sh:value ex:InvalidInstance ; - ] ; - ] ; -. -ex:InvalidInstance - rdf:type ex:TestClass ; - rdfs:label "Invalid instance" ; -. -ex:TestClass - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test class" ; - rdfs:subClassOf rdfs:Resource ; - sh:node [ - sh:class ex:OtherClass ; - ] ; -. -ex:ValidInstance - rdf:type ex:OtherClass ; - rdf:type ex:TestClass ; - rdfs:label "Valid instance" ; -. diff --git a/test/data/core/node/nodeKind-001.test.ttl b/test/data/core/node/nodeKind-001.test.ttl deleted file mode 100644 index 031d134..0000000 --- a/test/data/core/node/nodeKind-001.test.ttl +++ /dev/null @@ -1,39 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/nodeKind-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:nodeKind at node shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "true"^^xsd:boolean ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape ex:IRITestShape ; - sh:value "true"^^xsd:boolean ; - ] ; - ] ; -. -ex:IRITestShape - rdf:type sh:NodeShape ; - sh:nodeKind sh:IRI ; - sh:targetNode ex:John ; - sh:targetNode "true"^^xsd:boolean ; -. diff --git a/test/data/core/node/not-001.test.ttl b/test/data/core/node/not-001.test.ttl deleted file mode 100644 index 7086a8e..0000000 --- a/test/data/core/node/not-001.test.ttl +++ /dev/null @@ -1,54 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/not-001 -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:not at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NotConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:InvalidResource1 ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type rdfs:Resource ; - ex:property "some value" ; -. -ex:TestShape - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - rdfs:subClassOf rdfs:Resource ; - sh:not [ - rdf:type sh:NodeShape ; - sh:property [ - sh:path ex:property ; - sh:minCount 1 ; - ] ; - ] ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:ValidResource1 ; -. -ex:ValidResource1 - rdf:type rdfs:Resource ; -. diff --git a/test/data/core/node/not-002.test.ttl b/test/data/core/node/not-002.test.ttl deleted file mode 100644 index 7dc7f53..0000000 --- a/test/data/core/node/not-002.test.ttl +++ /dev/null @@ -1,48 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/not-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:not at node shape 002" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NotConstraintComponent ; - sh:sourceShape ex:NotExampleShape ; - sh:value ex:InvalidInstance1 ; - ] ; - ] ; -. -ex:InvalidInstance1 - ex:property "Some value" ; -. -ex:NotExampleShape - rdf:type sh:NodeShape ; - sh:not [ - rdf:type sh:NodeShape ; - sh:property [ - sh:path ex:property ; - sh:minCount 1 ; - ] ; - ] ; - sh:targetNode ex:InvalidInstance1 ; - sh:targetNode ex:ValidInstance1 ; -. diff --git a/test/data/core/node/or-001.test.ttl b/test/data/core/node/or-001.test.ttl deleted file mode 100644 index 82b6f57..0000000 --- a/test/data/core/node/or-001.test.ttl +++ /dev/null @@ -1,87 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/or-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:or at node shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidRectangle1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:OrConstraintComponent ; - sh:sourceShape ex:RectangleWithArea ; - sh:value ex:InvalidRectangle1 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidRectangle2 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:OrConstraintComponent ; - sh:sourceShape ex:RectangleWithArea ; - sh:value ex:InvalidRectangle2 ; - ] ; - ] ; -. -ex:InvalidRectangle1 - rdf:type ex:RectangleWithArea ; - ex:height 3 ; -. -ex:InvalidRectangle2 - rdf:type ex:RectangleWithArea ; -. -ex:RectangleWithArea - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:subClassOf rdfs:Resource ; - sh:or ( - [ - sh:property [ - sh:path ex:height ; - sh:minCount 1 ; - ] ; - sh:property [ - sh:path ex:width ; - sh:minCount 1 ; - ] ; - ] - [ - sh:property [ - sh:path ex:area ; - sh:minCount 1 ; - ] ; - ] - ) ; -. -ex:ValidRectangle1 - rdf:type ex:RectangleWithArea ; - ex:height 3 ; - ex:width 2 ; -. -ex:ValidRectangle2 - rdf:type ex:RectangleWithArea ; - ex:area 6 ; - ex:height 3 ; - ex:width 2 ; -. -ex:ValidRectangle3 - rdf:type ex:RectangleWithArea ; - ex:area 6 ; - ex:height 3 ; -. diff --git a/test/data/core/node/pattern-001.test.ttl b/test/data/core/node/pattern-001.test.ttl deleted file mode 100644 index 3461ce5..0000000 --- a/test/data/core/node/pattern-001.test.ttl +++ /dev/null @@ -1,71 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/pattern-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:pattern at node shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Test ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:PatternConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:Test ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode 9 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:PatternConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value 9 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "John" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:PatternConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "John" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode _:b9649 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:PatternConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value _:b9649 ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:pattern "^[2-8][0-9]*$" ; - sh:targetNode ex:Test ; - sh:targetNode 20000123 ; - sh:targetNode "3456" ; - sh:targetNode 39 ; - sh:targetNode "777777"@mi ; - sh:targetNode 9 ; - sh:targetNode "John" ; - sh:targetClass ex:TestClass ; -. -_:b9649 - rdf:type ex:TestClass ; -. diff --git a/test/data/core/node/pattern-002.test.ttl b/test/data/core/node/pattern-002.test.ttl deleted file mode 100644 index 5512ce5..0000000 --- a/test/data/core/node/pattern-002.test.ttl +++ /dev/null @@ -1,41 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/pattern-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:pattern at node shape 002" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "Alti" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:PatternConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "Alti" ; - ] ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:flags "i" ; - sh:pattern "Aldi" ; - sh:targetNode "Aldi" ; - sh:targetNode "Alti" ; - sh:targetNode "aLdI" ; -. diff --git a/test/data/core/node/xone-001.test.ttl b/test/data/core/node/xone-001.test.ttl deleted file mode 100644 index 547b22d..0000000 --- a/test/data/core/node/xone-001.test.ttl +++ /dev/null @@ -1,69 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/node/xone-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:xone at node shape 001" ; - owl:imports ; -. -ex:Bob - rdf:type ex:Person ; - ex:firstName "Robert" ; - ex:lastName "Coin" ; -. -ex:Carla - rdf:type ex:Person ; - ex:fullName "Carla Miller" ; -. -ex:Dory - rdf:type ex:Person ; - ex:firstName "Dory" ; - ex:fullName "Dory Dunce" ; - ex:lastName "Dunce" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Dory ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:XoneConstraintComponent ; - sh:sourceShape ex:XoneConstraintExampleShape ; - sh:value ex:Dory ; - ] ; - ] ; -. -ex:XoneConstraintExampleShape - rdf:type sh:NodeShape ; - sh:targetClass ex:Person ; - sh:xone ( - [ - sh:property [ - sh:path ex:fullName ; - sh:minCount 1 ; - ] ; - ] - [ - sh:property [ - sh:path ex:firstName ; - sh:minCount 1 ; - ] ; - sh:property [ - sh:path ex:lastName ; - sh:minCount 1 ; - ] ; - ] - ) ; -. diff --git a/test/data/core/path/path-alternative-001.test.ttl b/test/data/core/path/path-alternative-001.test.ttl deleted file mode 100644 index d985a07..0000000 --- a/test/data/core/path/path-alternative-001.test.ttl +++ /dev/null @@ -1,81 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/path/path-alternative-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of path sh:alternativePath 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath [ - sh:alternativePath ( - ex:property1 - ex:property2 - ) ; - ] ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath [ - sh:alternativePath ( - ex:property1 - ex:property2 - ) ; - ] ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property1 "One" ; - ex:property3 "Three" ; -. -ex:TestShape - rdf:type sh:PropertyShape ; - sh:path [ - sh:alternativePath ( - ex:property1 - ex:property2 - ) ; - ] ; - sh:minCount 2 ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; - sh:targetNode ex:ValidResource3 ; -. -ex:ValidResource1 - ex:property1 "One" ; - ex:property1 "Two" ; -. -ex:ValidResource2 - ex:property1 "One" ; - ex:property2 "Two" ; -. -ex:ValidResource3 - ex:property2 "One" ; - ex:property2 "Two" ; -. diff --git a/test/data/core/path/path-complex-001.test.ttl b/test/data/core/path/path-complex-001.test.ttl deleted file mode 100644 index 569f31f..0000000 --- a/test/data/core/path/path-complex-001.test.ttl +++ /dev/null @@ -1,86 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/path/path-complex-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of path complex (rdf:type/rdfs:subClassOf*) 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ( - rdf:type - [ - sh:zeroOrMorePath rdfs:subClassOf ; - ] - ) ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:HasValueConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath ( - rdf:type - [ - sh:zeroOrMorePath rdfs:subClassOf ; - ] - ) ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:HasValueConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - ] ; -. -ex:InvalidResource - rdf:type ex:Animal ; - rdfs:label "Invalid" ; -. -ex:MalePerson - rdf:type rdfs:Class ; - rdfs:subClassOf ex:Person ; -. -ex:Person - rdf:type rdfs:Class ; -. -ex:TestShape - rdf:type sh:PropertyShape ; - sh:path ( - rdf:type - [ - sh:zeroOrMorePath rdfs:subClassOf ; - ] - ) ; - sh:hasValue ex:Person ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; - sh:targetNode ex:ValidResource3 ; -. -ex:ValidResource1 - rdf:type ex:Person ; -. -ex:ValidResource2 - rdf:type ex:MalePerson ; -. -ex:ValidResource3 - rdf:type ex:Animal ; - rdf:type ex:MalePerson ; -. diff --git a/test/data/core/path/path-inverse-001.test.ttl b/test/data/core/path/path-inverse-001.test.ttl deleted file mode 100644 index d728a2c..0000000 --- a/test/data/core/path/path-inverse-001.test.ttl +++ /dev/null @@ -1,85 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/path/path-inverse-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of path sh:inversePath 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath [ - sh:inversePath ex:child ; - ] ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:TestShape-P ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath [ - sh:inversePath ex:child ; - ] ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxCountConstraintComponent ; - sh:sourceShape ex:TestShape-P ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type ex:Person ; -. -ex:InvalidResource2 - rdf:type ex:Person ; -. -ex:Parent1 - ex:child ex:InvalidResource1 ; - ex:child ex:InvalidResource2 ; - ex:child ex:ValidResource1 ; -. -ex:Parent2 - ex:child ex:InvalidResource2 ; - ex:child ex:ValidResource1 ; -. -ex:Parent3 - ex:child ex:InvalidResource2 ; -. -ex:Person - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Person" ; - rdfs:subClassOf rdfs:Resource ; -. -ex:TestShape - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-P ; - sh:targetClass ex:Person ; -. -ex:TestShape-P - a sh:PropertyShape ; - sh:maxCount 2 ; - sh:minCount 2 ; - sh:path [ - sh:inversePath ex:child ; - ] ; -. -ex:ValidResource1 - rdf:type ex:Person ; -. diff --git a/test/data/core/path/path-oneOrMore-001.test.ttl b/test/data/core/path/path-oneOrMore-001.test.ttl deleted file mode 100644 index 9eb84a4..0000000 --- a/test/data/core/path/path-oneOrMore-001.test.ttl +++ /dev/null @@ -1,66 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/path/path-oneOrMore-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of path sh:oneOrMorePath 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath [ - sh:oneOrMorePath ex:child ; - ] ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath [ - sh:oneOrMorePath ex:child ; - ] ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type rdfs:Resource ; -. -ex:InvalidResource2 - ex:child ex:Person2 ; -. -ex:Person1 - ex:child ex:Person2 ; -. -ex:TestShape - rdf:type sh:PropertyShape ; - sh:path [ - sh:oneOrMorePath ex:child ; - ] ; - sh:minCount 2 ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:ValidResource1 ; -. -ex:ValidResource1 - ex:child ex:Person1 ; -. diff --git a/test/data/core/path/path-sequence-001.test.ttl b/test/data/core/path/path-sequence-001.test.ttl deleted file mode 100644 index efa3f0b..0000000 --- a/test/data/core/path/path-sequence-001.test.ttl +++ /dev/null @@ -1,75 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/path/path-sequence-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of path sequence 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ( - ex:property1 - ex:property2 - ) ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath ( - ex:property1 - ex:property2 - ) ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property1 ex:Node3 ; - ex:property2 ex:Node4 ; -. -ex:Node1 - ex:property2 "One" ; -. -ex:Node2 - ex:property2 "Two" ; -. -ex:TestShape - rdf:type sh:PropertyShape ; - sh:path ( - ex:property1 - ex:property2 - ) ; - sh:minCount 1 ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:ValidResource1 - ex:property1 ex:Node1 ; -. -ex:ValidResource2 - ex:property1 ex:Node1 ; - ex:property1 ex:Node2 ; -. diff --git a/test/data/core/path/path-sequence-002.test.ttl b/test/data/core/path/path-sequence-002.test.ttl deleted file mode 100644 index 3091140..0000000 --- a/test/data/core/path/path-sequence-002.test.ttl +++ /dev/null @@ -1,78 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/path/path-sequence-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of path sequence 002" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ( - ex:property1 - ex:property2 - ex:property3 - ) ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath ( - ex:property1 - ex:property2 - ex:property3 - ) ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property1 ex:Node3 ; - ex:property2 ex:Node4 ; -. -ex:Node1 - ex:property2 ex:Node2 ; -. -ex:Node2 - ex:property3 "Value" ; -. -ex:TestShape - rdf:type sh:PropertyShape ; - sh:path ( - ex:property1 - ex:property2 - ex:property3 - ) ; - sh:minCount 1 ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:ValidResource1 - ex:property1 ex:Node1 ; -. -ex:ValidResource2 - ex:property1 ex:Node1 ; - ex:property1 ex:Node2 ; -. diff --git a/test/data/core/path/path-sequence-duplicate-001.test.ttl b/test/data/core/path/path-sequence-duplicate-001.test.ttl deleted file mode 100644 index b9ce96a..0000000 --- a/test/data/core/path/path-sequence-duplicate-001.test.ttl +++ /dev/null @@ -1,58 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/path/path-sequence-duplicate-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of path sequence with duplicate 001" ; - owl:imports ; -. -ex:A - ex:p1 [ - ex:p2 "value" ; - ] ; - ex:p1 [ - ex:p2 "value" ; - ] ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:A ; - sh:resultPath ( - ex:p1 - ex:p2 - ) ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape ex:SP ; - sh:value "value" ; - ] ; - ] ; -. -ex:S - rdf:type sh:NodeShape ; - sh:property ex:SP ; - sh:targetNode ex:A ; -. -ex:SP - a sh:PropertyShape ; - sh:maxCount 1 ; - sh:nodeKind sh:IRI ; - sh:path ( - ex:p1 - ex:p2 - ) ; -. diff --git a/test/data/core/path/path-zeroOrMore-001.test.ttl b/test/data/core/path/path-zeroOrMore-001.test.ttl deleted file mode 100644 index de6bb1d..0000000 --- a/test/data/core/path/path-zeroOrMore-001.test.ttl +++ /dev/null @@ -1,56 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/path/path-zeroOrMore-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of path sh:zeroOrMorePath 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath [ - sh:zeroOrMorePath ex:child ; - ] ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type rdfs:Resource ; -. -ex:Person2 - ex:child ex:Person3 ; -. -ex:TestShape - rdf:type sh:PropertyShape ; - sh:path [ - sh:zeroOrMorePath ex:child ; - ] ; - sh:minCount 2 ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:ValidResource1 - ex:child ex:Person1 ; -. -ex:ValidResource2 - ex:child ex:Person2 ; -. diff --git a/test/data/core/path/path-zeroOrOne-001.test.ttl b/test/data/core/path/path-zeroOrOne-001.test.ttl deleted file mode 100644 index 421f34b..0000000 --- a/test/data/core/path/path-zeroOrOne-001.test.ttl +++ /dev/null @@ -1,56 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/path/path-zeroOrOne-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of path sh:zeroOrOnePath 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath [ - sh:zeroOrOnePath ex:child ; - ] ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:TestShape ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type rdfs:Resource ; -. -ex:Person2 - ex:child ex:Person3 ; -. -ex:TestShape - rdf:type sh:PropertyShape ; - sh:path [ - sh:zeroOrOnePath ex:child ; - ] ; - sh:minCount 2 ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:ValidResource1 - ex:child ex:Person1 ; -. -ex:ValidResource2 - ex:child ex:Person2 ; -. diff --git a/test/data/core/property/and-001.test.ttl b/test/data/core/property/and-001.test.ttl deleted file mode 100644 index 41d4087..0000000 --- a/test/data/core/property/and-001.test.ttl +++ /dev/null @@ -1,102 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/and-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:and at property shape 001" ; - owl:imports ; -. -ex:AddressShape - rdf:type sh:NodeShape ; - rdfs:label "Address shape" ; - sh:property ex:AddressShape-address ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:InvalidResource3 ; - sh:targetNode ex:ValidResource1 ; -. -ex:AddressShape-address - sh:path ex:address ; - sh:and ( - [ - sh:property [ - sh:path ex:suburb ; - sh:minCount 1 ; - ] ; - ] - [ - sh:property [ - sh:path ex:postalCode ; - sh:minCount 1 ; - ] ; - ] - ) ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:address ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:AndConstraintComponent ; - sh:sourceShape ex:AddressShape-address ; - sh:value _:b61065 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath ex:address ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:AndConstraintComponent ; - sh:sourceShape ex:AddressShape-address ; - sh:value _:b31477 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource3 ; - sh:resultPath ex:address ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:AndConstraintComponent ; - sh:sourceShape ex:AddressShape-address ; - sh:value _:b94057 ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type rdfs:Resource ; - ex:address _:b61065 ; -. -ex:InvalidResource2 - rdf:type rdfs:Resource ; - ex:address _:b31477 ; -. -ex:InvalidResource3 - rdf:type rdfs:Resource ; - ex:address _:b94057 ; -. -ex:ValidResource1 - rdf:type rdfs:Resource ; - ex:address [ - ex:postalCode 4879 ; - ex:suburb ex:KewarraBeach ; - ] ; -. -_:b31477 - ex:suburb ex:KewarraBeach ; -. -_:b61065 - ex:postalCode 4879 ; -. diff --git a/test/data/core/property/class-001.test.ttl b/test/data/core/property/class-001.test.ttl deleted file mode 100644 index c516da5..0000000 --- a/test/data/core/property/class-001.test.ttl +++ /dev/null @@ -1,86 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/class-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:class at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:testProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClassConstraintComponent ; - sh:sourceShape ex:TestShape-testProperty ; - sh:value ex:InvalidResource1 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:testProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClassConstraintComponent ; - sh:sourceShape ex:TestShape-testProperty ; - sh:value "A string" ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type rdfs:Resource ; - ex:testProperty ex:InvalidResource1 ; - ex:testProperty "A string" ; -. -ex:SubClass - rdf:type rdfs:Class ; - rdfs:subClassOf ex:SuperClass ; -. -ex:SubClassInstance - rdf:type ex:SubClass ; -. -ex:SuperClass - rdf:type rdfs:Class ; -. -ex:SuperClassInstance - rdf:type ex:SuperClass ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property ex:TestShape-testProperty ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:TestShape-testProperty - sh:path ex:testProperty ; - rdfs:label "test property" ; - sh:class ex:SuperClass ; -. -ex:ValidResource1 - rdf:type rdfs:Resource ; - ex:testProperty ex:SubClassInstance ; - ex:testProperty ex:SuperClassInstance ; -. -ex:ValidResource2 - rdf:type rdfs:Resource ; - ex:testProperty [ - rdf:type ex:SubClass ; - ] ; - ex:testProperty [ - rdf:type ex:SuperClass ; - ] ; -. diff --git a/test/data/core/property/datatype-001.test.ttl b/test/data/core/property/datatype-001.test.ttl deleted file mode 100644 index 9c68ce3..0000000 --- a/test/data/core/property/datatype-001.test.ttl +++ /dev/null @@ -1,72 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/datatype-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:datatype at property shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:dateProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape-dateProperty ; - sh:value "2011-01-01"^^xsd:dateTime ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:integerProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape-integerProperty ; - sh:value 11.1 ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type ex:TestShape ; - ex:dateProperty "2011-01-01"^^xsd:dateTime ; - ex:integerProperty 11.1 ; -. -ex:TestShape - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-dateProperty ; - sh:property ex:TestShape-integerProperty ; -. -ex:TestShape-dateProperty - sh:path ex:dateProperty ; - rdfs:label "date property" ; - sh:datatype xsd:date ; -. -ex:TestShape-integerProperty - sh:path ex:integerProperty ; - rdfs:label "integer property" ; - sh:datatype xsd:integer ; -. -ex:ValidResource - rdf:type ex:TestShape ; - ex:dateProperty "2014-09-01"^^xsd:date ; - ex:integerProperty 0 ; - ex:integerProperty 1234 ; - rdfs:label "Valid resource" ; -. diff --git a/test/data/core/property/datatype-002.test.ttl b/test/data/core/property/datatype-002.test.ttl deleted file mode 100644 index d7b709d..0000000 --- a/test/data/core/property/datatype-002.test.ttl +++ /dev/null @@ -1,67 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/datatype-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:datatype at property shape 002" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:value ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape-value ; - sh:value "A"@en ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance2 ; - sh:resultPath ex:value ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape-value ; - sh:value 42 ; - ] ; - ] ; -. -ex:InvalidInstance1 - ex:value "A"@en ; -. -ex:InvalidInstance2 - ex:value 42 ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property ex:TestShape-value ; - sh:targetNode ex:InvalidInstance1 ; - sh:targetNode ex:InvalidInstance2 ; - sh:targetNode ex:ValidInstance1 ; - sh:targetNode ex:ValidInstance2 ; -. -ex:TestShape-value - sh:path ex:value ; - sh:datatype xsd:string ; -. -ex:ValidInstance1 - ex:value "A" ; -. -ex:ValidInstance2 - ex:value "A" ; -. diff --git a/test/data/core/property/datatype-003.test.ttl b/test/data/core/property/datatype-003.test.ttl deleted file mode 100644 index e23dbb5..0000000 --- a/test/data/core/property/datatype-003.test.ttl +++ /dev/null @@ -1,65 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/datatype-003.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:datatype at property shape 003" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:value ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:OrConstraintComponent ; - sh:sourceShape ex:TestShape-value ; - sh:value 42 ; - ] ; - ] ; -. -ex:InvalidInstance1 - ex:value 42 ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property ex:TestShape-value ; - sh:targetNode ex:InvalidInstance1 ; - sh:targetNode ex:ValidInstance1 ; - sh:targetNode ex:ValidInstance2 ; - sh:targetNode ex:ValidInstance3 ; -. -ex:TestShape-value - sh:path ex:value ; - sh:or ( - [ - sh:datatype xsd:string ; - ] - [ - sh:datatype rdf:langString ; - ] - ) ; -. -ex:ValidInstance1 - ex:value "A" ; -. -ex:ValidInstance2 - ex:value "A" ; -. -ex:ValidInstance3 - ex:value "A"@en ; -. diff --git a/test/data/core/property/disjoint-001.test.ttl b/test/data/core/property/disjoint-001.test.ttl deleted file mode 100644 index 6c2fc1a..0000000 --- a/test/data/core/property/disjoint-001.test.ttl +++ /dev/null @@ -1,80 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/disjoint-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:disjoint at property shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DisjointConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value "A" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DisjointConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value "A" ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property1 "A" ; - ex:property2 "A" ; -. -ex:InvalidResource2 - ex:property1 "A" ; - ex:property1 "B" ; - ex:property2 "A" ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property ex:TestShape-property1 ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:TestShape-property1 - sh:path ex:property1 ; - sh:disjoint ex:property2 ; -. -ex:ValidResource1 - ex:property1 "A" ; - ex:property2 "B" ; -. -ex:ValidResource2 - ex:property1 "A" ; - ex:property1 "B" ; - ex:property2 "C" ; - ex:property2 "D" ; -. -ex:property1 - rdf:type rdf:Property ; -. -ex:property2 - rdf:type rdf:Property ; -. diff --git a/test/data/core/property/equals-001.test.ttl b/test/data/core/property/equals-001.test.ttl deleted file mode 100644 index 299d25a..0000000 --- a/test/data/core/property/equals-001.test.ttl +++ /dev/null @@ -1,114 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/equals-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:equals at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:EqualsConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value "A" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:EqualsConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value "B" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:EqualsConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value "A" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource3 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:EqualsConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value "A" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource4 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:EqualsConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value "B" ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property1 "A" ; - ex:property2 "B" ; -. -ex:InvalidResource2 - ex:property1 "A" ; -. -ex:InvalidResource3 - ex:property2 "A" ; -. -ex:InvalidResource4 - ex:property1 "A" ; - ex:property1 "B" ; - ex:property2 "A" ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property ex:TestShape-property1 ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:InvalidResource3 ; - sh:targetNode ex:InvalidResource4 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:TestShape-property1 - sh:path ex:property1 ; - sh:equals ex:property2 ; -. -ex:ValidResource1 - ex:property1 "A" ; - ex:property2 "A" ; -. -ex:ValidResource2 - ex:property1 "A" ; - ex:property1 "B" ; - ex:property2 "A" ; - ex:property2 "B" ; -. -ex:property1 - rdf:type rdf:Property ; -. -ex:property2 - rdf:type rdf:Property ; -. diff --git a/test/data/core/property/hasValue-001.test.ttl b/test/data/core/property/hasValue-001.test.ttl deleted file mode 100644 index 410233f..0000000 --- a/test/data/core/property/hasValue-001.test.ttl +++ /dev/null @@ -1,63 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/hasValue-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:hasValue at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidMalePerson ; - sh:resultPath ex:gender ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:HasValueConstraintComponent ; - sh:sourceShape ex:PersonShape-gender ; - ] ; - ] ; -. -ex:InvalidMalePerson - rdf:type ex:MalePerson ; - ex:gender "female" ; - rdfs:label "Invalid male person" ; -. -ex:MalePerson - rdf:type rdfs:Class ; - rdfs:label "Male person" ; - rdfs:subClassOf rdfs:Resource ; -. -ex:PersonShape - rdf:type sh:NodeShape ; - rdfs:label "Person shape" ; - sh:property ex:PersonShape-gender ; - sh:targetClass ex:MalePerson ; -. -ex:PersonShape-gender - sh:path ex:gender ; - rdfs:label "gender" ; - sh:datatype xsd:string ; - sh:hasValue "male" ; -. -ex:ValidMalePerson1 - rdf:type ex:MalePerson ; - ex:gender "male" ; -. -ex:ValidMalePerson2 - rdf:type ex:MalePerson ; - ex:gender "female" ; - ex:gender "male" ; -. diff --git a/test/data/core/property/in-001.test.ttl b/test/data/core/property/in-001.test.ttl deleted file mode 100644 index 62f4767..0000000 --- a/test/data/core/property/in-001.test.ttl +++ /dev/null @@ -1,64 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/in-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:in at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:property ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:InConstraintComponent ; - sh:sourceShape ex:ShapeClass-property ; - sh:value "D" ; - ] ; - ] ; -. -ex:InvalidInstance1 - rdf:type ex:ShapeClass ; - ex:property "D" ; - rdfs:label "Invalid instance1" ; -. -ex:ShapeClass - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - sh:property ex:ShapeClass-property ; -. -ex:ShapeClass-property - sh:path ex:property ; - sh:datatype xsd:string ; - sh:in ( - "A" - "B" - "C" - ) ; -. -ex:ValidInstance1 - rdf:type ex:ShapeClass ; - ex:property "A" ; - rdfs:label "Valid instance1" ; -. -ex:ValidInstance2 - rdf:type ex:ShapeClass ; - ex:property "A" ; - ex:property "B" ; - ex:property "C" ; - rdfs:label "Valid instance2" ; -. diff --git a/test/data/core/property/languageIn-001.test.ttl b/test/data/core/property/languageIn-001.test.ttl deleted file mode 100644 index 4f58ca9..0000000 --- a/test/data/core/property/languageIn-001.test.ttl +++ /dev/null @@ -1,74 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/languageIn-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:languageIn at property shape 001" ; - owl:imports ; -. -ex:Berg - ex:prefLabel ex:BergLabel ; - ex:prefLabel "Berg" ; - ex:prefLabel "Berg"@de ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Berg ; - sh:resultPath ex:prefLabel ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LanguageInConstraintComponent ; - sh:sourceShape ex:NewZealandLanguagesShape-prefLabel ; - sh:value ex:BergLabel ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Berg ; - sh:resultPath ex:prefLabel ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LanguageInConstraintComponent ; - sh:sourceShape ex:NewZealandLanguagesShape-prefLabel ; - sh:value "Berg" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Berg ; - sh:resultPath ex:prefLabel ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LanguageInConstraintComponent ; - sh:sourceShape ex:NewZealandLanguagesShape-prefLabel ; - sh:value "Berg"@de ; - ] ; - ] ; -. -ex:Mountain - ex:prefLabel "Hill"@en-NZ ; - ex:prefLabel "Maunga"@mi ; - ex:prefLabel "Mountain"@en ; -. -ex:NewZealandLanguagesShape - rdf:type sh:NodeShape ; - sh:property ex:NewZealandLanguagesShape-prefLabel ; - sh:targetNode ex:Berg ; - sh:targetNode ex:Mountain ; -. -ex:NewZealandLanguagesShape-prefLabel - sh:path ex:prefLabel ; - sh:languageIn ( - "en" - "mi" - ) ; -. diff --git a/test/data/core/property/lessThan-001.test.ttl b/test/data/core/property/lessThan-001.test.ttl deleted file mode 100644 index c251522..0000000 --- a/test/data/core/property/lessThan-001.test.ttl +++ /dev/null @@ -1,91 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/lessThan-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:lessThan at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LessThanConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value 4 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LessThanConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value 6 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource3 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LessThanConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value 5 ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property1 4 ; - ex:property2 4 ; -. -ex:InvalidResource2 - ex:property1 4 ; - ex:property1 6 ; - ex:property2 5 ; -. -ex:InvalidResource3 - ex:property1 5 ; - ex:property2 4 ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property ex:TestShape-property1 ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:InvalidResource3 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:TestShape-property1 - sh:path ex:property1 ; - sh:lessThan ex:property2 ; -. -ex:ValidResource1 - ex:property1 4 ; - ex:property2 6 ; -. -ex:ValidResource2 - ex:property1 3.1 ; - ex:property1 3.2 ; -. -ex:property1 - rdf:type rdf:Property ; -. -ex:property2 - rdf:type rdf:Property ; -. diff --git a/test/data/core/property/lessThan-002.test.ttl b/test/data/core/property/lessThan-002.test.ttl deleted file mode 100644 index 061a559..0000000 --- a/test/data/core/property/lessThan-002.test.ttl +++ /dev/null @@ -1,77 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/lessThan-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:lessThan at property shape 002" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:first ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LessThanConstraintComponent ; - sh:sourceShape ex:TestShape-first ; - sh:value 1 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:first ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LessThanConstraintComponent ; - sh:sourceShape ex:TestShape-first ; - sh:value 1 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:first ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LessThanConstraintComponent ; - sh:sourceShape ex:TestShape-first ; - sh:value 2 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:first ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LessThanConstraintComponent ; - sh:sourceShape ex:TestShape-first ; - sh:value 2 ; - ] ; - ] ; -. -ex:InvalidInstance1 - ex:first 1 ; - ex:first 2 ; - ex:second "a" ; - ex:second "b" ; -. -ex:TestShape - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-first ; - sh:targetNode ex:InvalidInstance1 ; -. -ex:TestShape-first - sh:path ex:first ; - sh:lessThan ex:second ; -. \ No newline at end of file diff --git a/test/data/core/property/lessThanOrEquals-001.test.ttl b/test/data/core/property/lessThanOrEquals-001.test.ttl deleted file mode 100644 index 30c690e..0000000 --- a/test/data/core/property/lessThanOrEquals-001.test.ttl +++ /dev/null @@ -1,82 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/lessThanOrEquals-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:lessThanOrEquals at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LessThanOrEqualsConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value 5 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath ex:property1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:LessThanOrEqualsConstraintComponent ; - sh:sourceShape ex:TestShape-property1 ; - sh:value 6 ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property1 5 ; - ex:property2 4 ; -. -ex:InvalidResource2 - ex:property1 4 ; - ex:property1 6 ; - ex:property2 5 ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property ex:TestShape-property1 ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; - sh:targetNode ex:ValidResource3 ; -. -ex:TestShape-property1 - sh:path ex:property1 ; - sh:lessThanOrEquals ex:property2 ; -. -ex:ValidResource1 - ex:property1 4 ; - ex:property2 6 ; -. -ex:ValidResource2 - ex:property1 3.1 ; - ex:property1 3.2 ; -. -ex:ValidResource3 - ex:property1 5 ; - ex:property2 5 ; -. -ex:property1 - rdf:type rdf:Property ; -. -ex:property2 - rdf:type rdf:Property ; -. diff --git a/test/data/core/property/maxCount-001.test.ttl b/test/data/core/property/maxCount-001.test.ttl deleted file mode 100644 index 108eeaa..0000000 --- a/test/data/core/property/maxCount-001.test.ttl +++ /dev/null @@ -1,59 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/maxCount-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:maxCount at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidPerson ; - sh:resultPath ex:firstName ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxCountConstraintComponent ; - sh:sourceShape ex:PersonShape-firstName ; - ] ; - ] ; -. -ex:InvalidPerson - rdf:type ex:Person ; - ex:firstName "George" ; - ex:firstName "John" ; - rdfs:label "Invalid person" ; -. -ex:Person - rdf:type rdfs:Class ; - rdfs:label "Person" ; - rdfs:subClassOf rdfs:Resource ; -. -ex:PersonShape - rdf:type sh:NodeShape ; - sh:property ex:PersonShape-firstName ; - sh:targetClass ex:Person ; - sh:targetNode ex:ValidResource ; -. -ex:PersonShape-firstName - sh:path ex:firstName ; - sh:datatype xsd:string ; - sh:maxCount 1 ; -. -ex:ValidResource - rdf:type ex:Person ; - ex:firstName "John" ; - rdfs:label "Valid resource" ; -. diff --git a/test/data/core/property/maxCount-002.test.ttl b/test/data/core/property/maxCount-002.test.ttl deleted file mode 100644 index 7688a23..0000000 --- a/test/data/core/property/maxCount-002.test.ttl +++ /dev/null @@ -1,52 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/maxCount-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:maxCount at property shape 002" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource ; - sh:resultPath owl:versionInfo ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxCountConstraintComponent ; - sh:sourceShape ex:TestShape-versionInfo ; - ] ; - ] ; -. -ex:InvalidResource - rdf:type rdfs:Resource ; - rdfs:label "Invalid resource" ; - owl:versionInfo "1.0" ; -. -ex:TestShape - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-versionInfo ; - sh:targetNode ex:InvalidResource ; - sh:targetNode ex:ValidResource ; -. -ex:TestShape-versionInfo - sh:path owl:versionInfo ; - sh:maxCount 0 ; -. -ex:ValidResource - rdf:type rdfs:Resource ; - rdfs:label "Valid resource" ; -. diff --git a/test/data/core/property/maxExclusive-001.test.ttl b/test/data/core/property/maxExclusive-001.test.ttl deleted file mode 100644 index 6f97e48..0000000 --- a/test/data/core/property/maxExclusive-001.test.ttl +++ /dev/null @@ -1,79 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/maxExclusive-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:maxExclusive at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:property ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape-property ; - sh:value 1 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath ex:property ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape-property ; - sh:value 2 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource3 ; - sh:resultPath ex:property ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape-property ; - sh:value "a" ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property 1 ; -. -ex:InvalidResource2 - ex:property 2 ; -. -ex:InvalidResource3 - ex:property "a" ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property ex:TestShape-property ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:InvalidResource3 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:TestShape-property - sh:path ex:property ; - sh:maxExclusive 1 ; -. -ex:ValidResource1 - ex:property 0 ; -. -ex:ValidResource2 - ex:property -1 ; -. diff --git a/test/data/core/property/maxInclusive-001.test.ttl b/test/data/core/property/maxInclusive-001.test.ttl deleted file mode 100644 index c2f19b9..0000000 --- a/test/data/core/property/maxInclusive-001.test.ttl +++ /dev/null @@ -1,66 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/maxInclusive-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:maxInclusive at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:property ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxInclusiveConstraintComponent ; - sh:sourceShape ex:TestShape-property ; - sh:value 2 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource2 ; - sh:resultPath ex:property ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxInclusiveConstraintComponent ; - sh:sourceShape ex:TestShape-property ; - sh:value "a" ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property 2 ; -. -ex:InvalidResource2 - ex:property "a" ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property ex:TestShape-property ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:InvalidResource2 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:TestShape-property - sh:path ex:property ; - sh:maxInclusive 1 ; -. -ex:ValidResource1 - ex:property 0 ; -. -ex:ValidResource2 - ex:property 1 ; -. diff --git a/test/data/core/property/maxLength-001.test.ttl b/test/data/core/property/maxLength-001.test.ttl deleted file mode 100644 index ed5a33a..0000000 --- a/test/data/core/property/maxLength-001.test.ttl +++ /dev/null @@ -1,57 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/maxLength-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:maxLength at property shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:testProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxLengthConstraintComponent ; - sh:sourceShape ex:TestShape-testProperty ; - sh:value "ABC" ; - ] ; - ] ; -. -ex:InvalidInstance1 - rdf:type ex:TestShape ; - ex:testProperty "ABC" ; -. -ex:TestShape - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-testProperty ; -. -ex:TestShape-testProperty - sh:path ex:testProperty ; - sh:datatype xsd:string ; - sh:maxLength 2 ; -. -ex:ValidInstance1 - rdf:type ex:TestShape ; - ex:testProperty "A" ; - ex:testProperty "AB" ; -. -ex:ValidInstance2 - rdf:type ex:TestShape ; -. diff --git a/test/data/core/property/minCount-001.test.ttl b/test/data/core/property/minCount-001.test.ttl deleted file mode 100644 index f31dc99..0000000 --- a/test/data/core/property/minCount-001.test.ttl +++ /dev/null @@ -1,57 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/minCount-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:minCount at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidPerson ; - sh:resultPath ex:firstName ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinCountConstraintComponent ; - sh:sourceShape ex:PersonShape-firstName ; - ] ; - ] ; -. -ex:InvalidPerson - rdf:type ex:Person ; - rdfs:label "Invalid person" ; -. -ex:Person - rdf:type rdfs:Class ; - rdfs:label "Person" ; - rdfs:subClassOf rdfs:Resource ; -. -ex:PersonShape - rdf:type sh:NodeShape ; - sh:property ex:PersonShape-firstName ; - sh:targetClass ex:Person ; - sh:targetNode ex:ValidResource ; -. -ex:PersonShape-firstName - sh:path ex:firstName ; - sh:datatype xsd:string ; - sh:minCount 1 ; -. -ex:ValidResource - rdf:type ex:Person ; - ex:firstName "John" ; - rdfs:label "Valid resource" ; -. diff --git a/test/data/core/property/minCount-002.test.ttl b/test/data/core/property/minCount-002.test.ttl deleted file mode 100644 index e57e070..0000000 --- a/test/data/core/property/minCount-002.test.ttl +++ /dev/null @@ -1,36 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/minCount-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:minCount at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; - ] ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property [ - sh:path ex:property ; - sh:minCount 0 ; - sh:name "property" ; - ] ; - sh:targetNode ex:ValidResource1 ; -. -ex:ValidResource1 - rdf:type rdfs:Resource ; -. diff --git a/test/data/core/property/minExclusive-001.test.ttl b/test/data/core/property/minExclusive-001.test.ttl deleted file mode 100644 index 8ffe992..0000000 --- a/test/data/core/property/minExclusive-001.test.ttl +++ /dev/null @@ -1,64 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/minExclusive-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:minExclusive at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:testProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape-testProperty ; - sh:value 40 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance2 ; - sh:resultPath ex:testProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape-testProperty ; - sh:value 39 ; - ] ; - ] ; -. -ex:InvalidInstance1 - rdf:type ex:TestShape ; - ex:testProperty 40 ; -. -ex:InvalidInstance2 - rdf:type ex:TestShape ; - ex:testProperty 39 ; -. -ex:TestShape - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-testProperty ; -. -ex:TestShape-testProperty - sh:path ex:testProperty ; - sh:minExclusive 40 ; -. -ex:ValidInstance1 - rdf:type ex:TestShape ; - ex:testProperty 42 ; -. diff --git a/test/data/core/property/minExclusive-002.test.ttl b/test/data/core/property/minExclusive-002.test.ttl deleted file mode 100644 index c2fc611..0000000 --- a/test/data/core/property/minExclusive-002.test.ttl +++ /dev/null @@ -1,60 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/minExclusive-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:minExclusive at property shape 002" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:testProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape-testProperty ; - sh:value "A string" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance2 ; - sh:resultPath ex:testProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinExclusiveConstraintComponent ; - sh:sourceShape ex:TestShape-testProperty ; - sh:value rdfs:Resource ; - ] ; - ] ; -. -ex:InvalidInstance1 - rdf:type ex:TestShape ; - ex:testProperty "A string" ; -. -ex:InvalidInstance2 - rdf:type ex:TestShape ; - ex:testProperty rdfs:Resource ; -. -ex:TestShape - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-testProperty ; -. -ex:TestShape-testProperty - sh:path ex:testProperty ; - sh:minExclusive 40 ; -. \ No newline at end of file diff --git a/test/data/core/property/minLength-001.test.ttl b/test/data/core/property/minLength-001.test.ttl deleted file mode 100644 index f822589..0000000 --- a/test/data/core/property/minLength-001.test.ttl +++ /dev/null @@ -1,56 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/minLength-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:minLength at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:testProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MinLengthConstraintComponent ; - sh:sourceShape ex:TestShape-testProperty ; - sh:value "A" ; - ] ; - ] ; -. -ex:InvalidInstance1 - rdf:type ex:TestShape ; - ex:testProperty "A" ; -. -ex:TestShape - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-testProperty ; -. -ex:TestShape-testProperty - sh:path ex:testProperty ; - sh:datatype xsd:string ; - sh:minLength 2 ; -. -ex:ValidInstance1 - rdf:type ex:TestShape ; - ex:testProperty "AB" ; - ex:testProperty "ABC" ; -. -ex:ValidInstance2 - rdf:type ex:TestShape ; -. diff --git a/test/data/core/property/node-001.test.ttl b/test/data/core/property/node-001.test.ttl deleted file mode 100644 index cf545ef..0000000 --- a/test/data/core/property/node-001.test.ttl +++ /dev/null @@ -1,108 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/node-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:node at property shape 001" ; - owl:imports ; -. -ex:Anon - rdf:type ex:Person ; - ex:firstName "Anon" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Issue_1 ; - sh:resultPath ex:assignedTo ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeConstraintComponent ; - sh:sourceShape ex:Issue-assignedTo ; - sh:value ex:Anon ; - ] ; - ] ; -. -ex:Issue - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Issue" ; - rdfs:subClassOf rdfs:Resource ; - sh:property ex:Issue-assignedTo ; - sh:property ex:Issue-submittedBy ; -. -ex:Issue-assignedTo - sh:path ex:assignedTo ; - sh:node [ - rdfs:comment "All assignees must have an email and a last name." ; - sh:property [ - sh:path ex:email ; - sh:maxCount 1 ; - sh:minCount 1 ; - ] ; - sh:property [ - sh:path ex:lastName ; - sh:maxCount 1 ; - sh:minCount 1 ; - ] ; - ] ; - sh:class ex:Person ; -. -ex:Issue-submittedBy - sh:path ex:submittedBy ; - sh:class ex:Person ; - sh:minCount 1 ; -. -ex:Issue_1 - rdf:type ex:Issue ; - ex:assignedTo ex:Anon ; - ex:submittedBy ex:Anon ; - rdfs:label "Issue 1" ; -. -ex:Issue_2 - rdf:type ex:Issue ; - ex:assignedTo ex:JohnDoeWithEmail ; - ex:submittedBy ex:Anon ; - rdfs:label "Issue 2" ; -. -ex:JohnDoeWithEmail - rdf:type ex:Person ; - ex:email "john@doe.com" ; - ex:firstName "John" ; - ex:lastName "Doe" ; -. -ex:Person - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Person" ; - rdfs:subClassOf rdfs:Resource ; - sh:property [ - sh:path ex:email ; - ex:datatype xsd:string ; - rdfs:label "email" ; - ] ; - sh:property [ - sh:path ex:firstName ; - rdfs:label "first name" ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - ] ; - sh:property [ - sh:path ex:lastName ; - rdfs:label "last name" ; - sh:datatype xsd:string ; - ] ; -. diff --git a/test/data/core/property/node-002.test.ttl b/test/data/core/property/node-002.test.ttl deleted file mode 100644 index 20704fe..0000000 --- a/test/data/core/property/node-002.test.ttl +++ /dev/null @@ -1,70 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/node-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:node at property shape 002" ; - owl:imports ; -. -ex:AddressShape - rdf:type sh:NodeShape ; - sh:property ex:AddressShape-postalCode ; -. -ex:AddressShape-postalCode - sh:path ex:postalCode ; - sh:datatype xsd:string ; - sh:maxCount 1 ; -. -ex:Bob - rdf:type ex:Person ; - ex:address ex:BobsAddress ; -. -ex:BobsAddress - ex:postalCode "1234" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Reto ; - sh:resultPath ex:address ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeConstraintComponent ; - sh:sourceShape ex:PersonShape-address ; - sh:value ex:RetosAddress ; - ] ; - ] ; -. -ex:Person - rdf:type rdfs:Class ; - rdfs:label "Person" ; -. -ex:PersonShape - rdf:type sh:NodeShape ; - sh:property ex:PersonShape-address ; - sh:targetClass ex:Person ; -. -ex:PersonShape-address - sh:path ex:address ; - sh:minCount 1 ; - sh:node ex:AddressShape ; -. -ex:Reto - rdf:type ex:Person ; - ex:address ex:RetosAddress ; -. -ex:RetosAddress - ex:postalCode 5678 ; -. diff --git a/test/data/core/property/nodeKind-001.test.ttl b/test/data/core/property/nodeKind-001.test.ttl deleted file mode 100644 index 3e92aab..0000000 --- a/test/data/core/property/nodeKind-001.test.ttl +++ /dev/null @@ -1,366 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/nodeKind-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:nodeKind at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNode ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b79526 ; - sh:value _:b55454 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNode ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b97614 ; - sh:value _:b55454 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNode ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b97860 ; - sh:value _:b55454 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndIRI ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b14975 ; - sh:value rdfs:Class ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndIRI ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b38619 ; - sh:value rdfs:Class ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndIRI ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b79526 ; - sh:value rdfs:Class ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndIRI ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b79526 ; - sh:value _:b67098 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndIRI ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b97614 ; - sh:value _:b67098 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndIRI ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b97860 ; - sh:value _:b67098 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b3078 ; - sh:value "Literal" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b38619 ; - sh:value "Literal" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b79526 ; - sh:value _:b99026 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b97614 ; - sh:value "Literal" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b97614 ; - sh:value _:b99026 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithBlankNodeAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b97860 ; - sh:value _:b99026 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithIRI ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b14975 ; - sh:value rdfs:Class ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithIRI ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b38619 ; - sh:value rdfs:Class ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithIRI ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b79526 ; - sh:value rdfs:Class ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithIRIAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b3078 ; - sh:value "Literal" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithIRIAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b14975 ; - sh:value rdfs:Class ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithIRIAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b38619 ; - sh:value rdfs:Class ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithIRIAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b38619 ; - sh:value "Literal" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithIRIAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b79526 ; - sh:value rdfs:Class ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithIRIAndLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b97614 ; - sh:value "Literal" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b3078 ; - sh:value "Literal" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b38619 ; - sh:value "Literal" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InstanceWithLiteral ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NodeKindConstraintComponent ; - sh:sourceShape _:b97614 ; - sh:value "Literal" ; - ] ; - ] ; -. -ex:InstanceWithBlankNode - rdf:type ex:MyClass ; - ex:myProperty _:b55454 ; -. -ex:InstanceWithBlankNodeAndIRI - rdf:type ex:MyClass ; - ex:myProperty rdfs:Class ; - ex:myProperty _:b67098 ; -. -ex:InstanceWithBlankNodeAndLiteral - rdf:type ex:MyClass ; - ex:myProperty "Literal" ; - ex:myProperty _:b99026 ; -. -ex:InstanceWithIRI - rdf:type ex:MyClass ; - ex:myProperty rdfs:Class ; -. -ex:InstanceWithIRIAndLiteral - rdf:type ex:MyClass ; - ex:myProperty rdfs:Class ; - ex:myProperty "Literal" ; -. -ex:InstanceWithLiteral - rdf:type ex:MyClass ; - ex:myProperty "Literal" ; -. -ex:MyClass - rdf:type rdfs:Class ; - rdfs:label "My class" ; -. -ex:ShapeWithBlankNode - rdf:type sh:NodeShape ; - sh:property _:b38619 ; - sh:targetClass ex:MyClass ; -. -ex:ShapeWithBlankNodeOrIRI - rdf:type sh:NodeShape ; - sh:property _:b3078 ; - sh:targetClass ex:MyClass ; -. -ex:ShapeWithBlankNodeOrLiteral - rdf:type sh:NodeShape ; - sh:property _:b14975 ; - sh:targetClass ex:MyClass ; -. -ex:ShapeWithIRI - rdf:type sh:NodeShape ; - sh:property _:b97614 ; - sh:targetClass ex:MyClass ; -. -ex:ShapeWithIRIOrLiteral - rdf:type sh:NodeShape ; - sh:property _:b97860 ; - sh:targetClass ex:MyClass ; -. -ex:ShapeWithLiteral - rdf:type sh:NodeShape ; - sh:property _:b79526 ; - sh:targetClass ex:MyClass ; -. -ex:myProperty - rdf:type rdf:Property ; - rdfs:domain ex:MyClass ; - rdfs:label "my property" ; -. -_:b3078 - sh:path ex:myProperty ; - sh:nodeKind sh:BlankNodeOrIRI ; -. -_:b14975 - sh:path ex:myProperty ; - sh:nodeKind sh:BlankNodeOrLiteral ; -. -_:b38619 - sh:path ex:myProperty ; - sh:nodeKind sh:BlankNode ; -. -_:b55454 - rdf:type rdfs:Resource ; -. -_:b67098 - rdf:type rdfs:Resource ; -. -_:b79526 - sh:path ex:myProperty ; - sh:nodeKind sh:Literal ; -. -_:b97614 - sh:path ex:myProperty ; - sh:nodeKind sh:IRI ; -. -_:b97860 - sh:path ex:myProperty ; - sh:nodeKind sh:IRIOrLiteral ; -. -_:b99026 - rdf:type rdfs:Resource ; -. diff --git a/test/data/core/property/not-001.test.ttl b/test/data/core/property/not-001.test.ttl deleted file mode 100644 index a0f7d35..0000000 --- a/test/data/core/property/not-001.test.ttl +++ /dev/null @@ -1,64 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/not-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:not at property shape 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:property ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:NotConstraintComponent ; - sh:sourceShape ex:TestShape-property ; - sh:value 42 ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type rdfs:Resource ; - ex:property 42 ; - ex:property "Test Valid" ; - rdfs:label "Invalid resource1" ; -. -ex:TestShape - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-property ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:TestShape-property - sh:path ex:property ; - sh:not [ - sh:datatype xsd:integer ; - ] ; -. -ex:ValidResource1 - rdf:type rdfs:Resource ; - rdfs:label "Valid resource1" ; -. -ex:ValidResource2 - rdf:type rdfs:Resource ; - ex:property 1.5 ; - ex:property "String" ; - rdfs:label "Valid resource2" ; -. diff --git a/test/data/core/property/or-001.test.ttl b/test/data/core/property/or-001.test.ttl deleted file mode 100644 index 97ae57c..0000000 --- a/test/data/core/property/or-001.test.ttl +++ /dev/null @@ -1,71 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/or-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:or at property shape 001" ; - owl:imports ; -. -ex:Address - rdf:type rdfs:Class ; - rdfs:label "Address" ; - rdfs:subClassOf rdfs:Resource ; -. -ex:AddressShape - rdf:type sh:NodeShape ; - rdfs:label "Address shape" ; - sh:property ex:AddressShape-address ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:ValidResource1 ; - sh:targetNode ex:ValidResource2 ; -. -ex:AddressShape-address - sh:path ex:address ; - sh:or ( - [ - sh:datatype xsd:string ; - ] - [ - sh:class ex:Address ; - ] - ) ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath ex:address ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:OrConstraintComponent ; - sh:sourceShape ex:AddressShape-address ; - sh:value "true"^^xsd:boolean ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type rdfs:Resource ; - ex:address "true"^^xsd:boolean ; -. -ex:ValidResource1 - rdf:type rdfs:Resource ; - ex:address "Home" ; -. -ex:ValidResource2 - rdf:type rdfs:Resource ; - ex:address [ - rdf:type ex:Address ; - ] ; -. diff --git a/test/data/core/property/or-datatypes-001.test.ttl b/test/data/core/property/or-datatypes-001.test.ttl deleted file mode 100644 index 406263f..0000000 --- a/test/data/core/property/or-datatypes-001.test.ttl +++ /dev/null @@ -1,90 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/or-datatypes-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:or of sh:datatypes at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath rdfs:comment ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:OrConstraintComponent ; - sh:sourceShape ex:TestShape-comment ; - sh:value owl:Thing ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath rdfs:comment ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:OrConstraintComponent ; - sh:sourceShape ex:TestShape-comment ; - sh:value 42 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath rdfs:comment ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:OrConstraintComponent ; - sh:sourceShape ex:TestShape-comment ; - sh:value "none"^^xsd:boolean ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type rdfs:Resource ; - rdfs:comment owl:Thing ; - rdfs:comment 42 ; - rdfs:comment "A string" ; - rdfs:comment "none"^^xsd:boolean ; - rdfs:label "Invalid resource1" ; -. -ex:TestShape - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-comment ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:ValidResource1 ; -. -ex:TestShape-comment - sh:path rdfs:comment ; - sh:or ( - [ - sh:datatype xsd:string ; - ] - [ - sh:datatype rdf:HTML ; - ] - [ - sh:datatype rdf:langString ; - ] - [ - sh:datatype xsd:boolean ; - ] - ) ; -. -ex:ValidResource1 - rdf:type rdfs:Resource ; - rdfs:comment "
HTML
"^^rdf:HTML ; - rdfs:comment "A language string"@en ; - rdfs:comment "A string" ; - rdfs:label "Valid resource1" ; -. diff --git a/test/data/core/property/pattern-001.test.ttl b/test/data/core/property/pattern-001.test.ttl deleted file mode 100644 index 603e495..0000000 --- a/test/data/core/property/pattern-001.test.ttl +++ /dev/null @@ -1,69 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/pattern-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:pattern at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:property ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:PatternConstraintComponent ; - sh:sourceShape ex:TestShape-property ; - sh:value "Maria" ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance2 ; - sh:resultPath ex:property ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:PatternConstraintComponent ; - sh:sourceShape ex:TestShape-property ; - sh:value "john" ; - ] ; - ] ; -. -ex:InvalidInstance1 - rdf:type ex:TestShape ; - ex:property "Maria" ; - rdfs:label "Invalid instance1" ; -. -ex:InvalidInstance2 - rdf:type ex:TestShape ; - ex:property "john" ; - rdfs:label "Invalid instance2" ; -. -ex:TestShape - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-property ; -. -ex:TestShape-property - sh:path ex:property ; - sh:datatype xsd:string ; - sh:pattern "Joh" ; -. -ex:ValidInstance1 - rdf:type ex:TestShape ; - ex:property "Hi Joh" ; - ex:property "John" ; - rdfs:label "Valid instance1" ; -. diff --git a/test/data/core/property/pattern-002.test.ttl b/test/data/core/property/pattern-002.test.ttl deleted file mode 100644 index 908c601..0000000 --- a/test/data/core/property/pattern-002.test.ttl +++ /dev/null @@ -1,61 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/pattern-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:pattern at property shape 002" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:property ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:PatternConstraintComponent ; - sh:sourceShape ex:TestShape-property ; - sh:value "Maria" ; - ] ; - ] ; -. -ex:InvalidInstance1 - rdf:type ex:TestShape ; - ex:property "Maria" ; - rdfs:label "Invalid instance1" ; -. -ex:TestShape - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-property ; -. -ex:TestShape-property - sh:path ex:property ; - rdfs:label "property" ; - sh:datatype xsd:string ; - sh:flags "i" ; - sh:pattern "joh" ; -. -ex:ValidInstance1 - rdf:type ex:TestShape ; - ex:property "Hi Joh" ; - ex:property "John" ; - rdfs:label "Valid instance1" ; -. -ex:ValidInstance2 - rdf:type ex:TestShape ; - ex:property "john" ; -. diff --git a/test/data/core/property/property-001.test.ttl b/test/data/core/property/property-001.test.ttl deleted file mode 100644 index 30f73ec..0000000 --- a/test/data/core/property/property-001.test.ttl +++ /dev/null @@ -1,95 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/property-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:property at property shape 001" ; - owl:imports ; -. -ex:Address - rdf:type rdfs:Class ; - rdfs:label "Address" ; - rdfs:subClassOf rdfs:Resource ; -. -ex:City - rdf:type rdfs:Class ; - rdfs:label "City" ; - rdfs:subClassOf rdfs:Resource ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidAddress ; - sh:resultPath ex:city ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClassConstraintComponent ; - sh:sourceShape ex:PersonShape-address-city ; - sh:value ex:InvalidCity ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidAddress ; - sh:resultPath ex:city ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:ClassConstraintComponent ; - sh:sourceShape ex:PersonShape-address-city ; - sh:value ex:InvalidCity ; - ] ; - ] ; -. -ex:InvalidAddress - rdf:type ex:Address ; - ex:city ex:InvalidCity ; -. -ex:InvalidPerson1 - rdf:type ex:Person ; - ex:address ex:InvalidAddress ; -. -ex:InvalidPerson2 - rdf:type ex:Person ; - ex:address ex:InvalidAddress ; - ex:address ex:ValidAddress ; -. -ex:Person - rdf:type rdfs:Class ; - rdfs:label "Person" ; - rdfs:subClassOf rdfs:Resource ; -. -ex:PersonShape - rdf:type sh:NodeShape ; - rdfs:label "Person shape" ; - sh:property [ - sh:path ex:address ; - sh:property ex:PersonShape-address-city ; - ] ; - sh:targetClass ex:Person ; -. -ex:PersonShape-address-city - sh:path ex:city ; - sh:class ex:City ; -. -ex:ProperCity - rdf:type ex:City ; - rdfs:label "Proper city" ; -. -ex:ValidAddress - rdf:type ex:Address ; - ex:city ex:ProperCity ; -. -ex:ValidPerson1 - rdf:type ex:Person ; - ex:address ex:ValidAddress ; -. diff --git a/test/data/core/property/qualifiedMinCountDisjoint-001.test.ttl b/test/data/core/property/qualifiedMinCountDisjoint-001.test.ttl deleted file mode 100644 index 1080e34..0000000 --- a/test/data/core/property/qualifiedMinCountDisjoint-001.test.ttl +++ /dev/null @@ -1,111 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/qualifiedMinCountDisjoint-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:qualifiedMinCount with disjoint shapes at property shape 001" ; - owl:imports ; -. -ex:Digit - rdf:type rdfs:Class ; - rdfs:label "Digit" ; -. -ex:Finger - rdf:type rdfs:Class ; - rdfs:label "Finger" ; - rdfs:subClassOf ex:Digit ; -. -ex:FingerAndThumb - rdf:type ex:Finger ; - rdf:type ex:Thumb ; - rdfs:label "Finger and thumb" ; -. -ex:FingerShape - rdf:type sh:NodeShape ; - rdfs:label "Finger shape" ; - sh:class ex:Finger ; -. -ex:Finger_1 - rdf:type ex:Finger ; - rdfs:label "Finger 1" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidHand1 ; - sh:resultPath ex:digit ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:QualifiedMinCountConstraintComponent ; - sh:sourceShape ex:HandShape-digit-minCount1 ; - ] ; - ] ; -. -ex:Hand - rdf:type rdfs:Class ; - rdfs:label "Hand" ; -. -ex:HandShape - rdf:type sh:NodeShape ; - rdfs:label "Hand shape" ; - sh:property ex:HandShape-digit-maxCount4 ; - sh:property ex:HandShape-digit-minCount1 ; - sh:targetClass ex:Hand ; -. -ex:HandShape-digit-maxCount4 - rdf:type sh:PropertyShape ; - sh:path ex:digit ; - sh:qualifiedMaxCount 4 ; - sh:qualifiedValueShapesDisjoint true ; - sh:qualifiedValueShape ex:FingerShape ; -. -ex:HandShape-digit-minCount1 - rdf:type sh:PropertyShape ; - sh:path ex:digit ; - sh:qualifiedMinCount 1 ; - sh:qualifiedValueShapesDisjoint true ; - sh:qualifiedValueShape ex:ThumbShape ; -. -ex:InvalidHand1 - rdf:type ex:Hand ; - ex:digit ex:FingerAndThumb ; - rdfs:label "Invalid hand1" ; -. -ex:Thumb - rdf:type rdfs:Class ; - rdfs:label "Thumb" ; - rdfs:subClassOf ex:Digit ; -. -ex:ThumbShape - rdf:type sh:NodeShape ; - rdfs:label "Thumb shape" ; - sh:class ex:Thumb ; -. -ex:Thumb_1 - rdf:type ex:Thumb ; - rdfs:label "Thumb 1" ; -. -ex:ValidHand1 - rdf:type ex:Hand ; - ex:digit ex:Finger_1 ; - ex:digit ex:Thumb_1 ; - rdfs:label "Valid hand1" ; -. -ex:digit - rdf:type rdf:Property ; - rdfs:domain ex:Hand ; - rdfs:label "digit" ; - rdfs:range ex:Digit ; -. diff --git a/test/data/core/property/qualifiedValueShape-001.test.ttl b/test/data/core/property/qualifiedValueShape-001.test.ttl deleted file mode 100644 index 6deb334..0000000 --- a/test/data/core/property/qualifiedValueShape-001.test.ttl +++ /dev/null @@ -1,75 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/qualifiedValueShape-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:qualifiedValueShape at property shape 001" ; - owl:imports ; -. -ex:APGARObservationShape - rdf:type sh:NodeShape ; - sh:property ex:APGARObservationShape-related ; - sh:targetNode ex:Observation1 ; -. -ex:APGARObservationShape-related - sh:path ex:related ; - sh:qualifiedMaxCount 3 ; - sh:qualifiedMinCount 3 ; - sh:qualifiedValueShape [ - sh:property [ - sh:path ex:related_target ; - sh:node [ - sh:property [ - sh:path ex:reference ; - sh:hasValue ex:something ; - ] ; - ] ; - ] ; - ] ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:Observation1 ; - sh:resultPath ex:related ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:QualifiedMinCountConstraintComponent ; - sh:sourceShape ex:APGARObservationShape-related ; - ] ; - ] ; -. -ex:Observation1 - rdf:type ex:Observation ; - ex:related [ - ex:related_target [ - ex:reference ex:something ; - ] ; - ex:related_type "has-component"^^ex:code ; - ] ; - ex:related [ - ex:related_target [ - ex:reference ex:something ; - ] ; - ex:related_type "has-component"^^ex:code ; - ] ; - ex:related [ - ex:related_target [ - ex:reference ex:unrelated ; - ] ; - ex:related_type "has-component"^^ex:code ; - ] ; - sh:nodeShape ex:APGARObservationShape ; -. diff --git a/test/data/core/property/qualifiedValueShapesDisjoint-001.test.ttl b/test/data/core/property/qualifiedValueShapesDisjoint-001.test.ttl deleted file mode 100644 index 4f63f0a..0000000 --- a/test/data/core/property/qualifiedValueShapesDisjoint-001.test.ttl +++ /dev/null @@ -1,123 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/qualifiedValueShapesDisjoint-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:qualifiedValueShapesDisjoint at property shape 001" ; - owl:imports ; -. -ex:Finger - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Finger" ; - rdfs:subClassOf rdfs:Resource ; -. -ex:Finger1 - rdf:type ex:Finger ; - rdfs:label "Finger1" ; -. -ex:Finger2 - rdf:type ex:Finger ; - rdfs:label "Finger2" ; -. -ex:Finger3 - rdf:type ex:Finger ; - rdfs:label "Finger3" ; -. -ex:Finger4 - rdf:type ex:Finger ; - rdfs:label "Finger4" ; -. -ex:FingerAndThumb - rdf:type ex:Finger ; - rdf:type ex:Thumb ; - rdfs:label "Finger and thumb" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidHand1 ; - sh:resultPath ex:digit ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:QualifiedMinCountConstraintComponent ; - sh:sourceShape ex:HandShape-digit1 ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidHand1 ; - sh:resultPath ex:digit ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:QualifiedMinCountConstraintComponent ; - sh:sourceShape ex:HandShape-digit4 ; - ] ; - ] ; -. -ex:Hand - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Hand" ; - rdfs:subClassOf rdfs:Resource ; -. -ex:HandShape - rdf:type sh:NodeShape ; - sh:property ex:HandShape-digit1 ; - sh:property ex:HandShape-digit4 ; - sh:targetClass ex:Hand ; -. -ex:HandShape-digit1 - sh:path ex:digit ; - sh:qualifiedMaxCount 1 ; - sh:qualifiedMinCount 1 ; - sh:qualifiedValueShape [ - sh:class ex:Thumb ; - ] ; - sh:qualifiedValueShapesDisjoint true ; -. -ex:HandShape-digit4 - sh:path ex:digit ; - sh:qualifiedMaxCount 4 ; - sh:qualifiedMinCount 4 ; - sh:qualifiedValueShape [ - sh:class ex:Finger ; - ] ; - sh:qualifiedValueShapesDisjoint true ; -. -ex:InvalidHand1 - rdf:type ex:Hand ; - ex:digit ex:Finger1 ; - ex:digit ex:Finger2 ; - ex:digit ex:Finger3 ; - ex:digit ex:FingerAndThumb ; -. -ex:Thumb - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Thumb" ; - rdfs:subClassOf rdfs:Resource ; -. -ex:Thumb1 - rdf:type ex:Thumb ; - rdfs:label "Thumb1" ; -. -ex:ValidHand - rdf:type ex:Hand ; - ex:digit ex:Finger1 ; - ex:digit ex:Finger2 ; - ex:digit ex:Finger3 ; - ex:digit ex:Finger4 ; - ex:digit ex:Thumb1 ; - rdfs:label "Valid hand" ; -. diff --git a/test/data/core/property/uniqueLang-001.test.ttl b/test/data/core/property/uniqueLang-001.test.ttl deleted file mode 100644 index b592814..0000000 --- a/test/data/core/property/uniqueLang-001.test.ttl +++ /dev/null @@ -1,81 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/property/uniqueLang-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:uniqueLang at property shape 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:testProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:UniqueLangConstraintComponent ; - sh:sourceShape ex:TestShape-testProperty ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance2 ; - sh:resultPath ex:testProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:UniqueLangConstraintComponent ; - sh:sourceShape ex:TestShape-testProperty ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance2 ; - sh:resultPath ex:testProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:UniqueLangConstraintComponent ; - sh:sourceShape ex:TestShape-testProperty ; - ] ; - ] ; -. -ex:InvalidInstance1 - rdf:type ex:TestShape ; - ex:testProperty "Me" ; - ex:testProperty "Me"@en ; - ex:testProperty "Moi"@fr ; - ex:testProperty "Myself"@en ; -. -ex:InvalidInstance2 - rdf:type ex:TestShape ; - ex:testProperty "I"@en ; - ex:testProperty "Ich"@de ; - ex:testProperty "Me"@en ; - ex:testProperty "Mich"@de ; - ex:testProperty "Myself"@en ; -. -ex:TestShape - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-testProperty ; -. -ex:TestShape-testProperty - sh:path ex:testProperty ; - rdfs:label "test property" ; - sh:uniqueLang "true"^^xsd:boolean ; -. -ex:ValidInstance1 - rdf:type ex:TestShape ; - ex:testProperty "Me" ; - ex:testProperty "Me"@en ; - ex:testProperty "Moi"@fr ; - ex:testProperty "Myself" ; -. diff --git a/test/data/core/property/uniqueLang-false.test.ttl b/test/data/core/property/uniqueLang-false.test.ttl deleted file mode 100644 index b0da8d9..0000000 --- a/test/data/core/property/uniqueLang-false.test.ttl +++ /dev/null @@ -1,37 +0,0 @@ -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:uniqueLang set to false" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "true"^^xsd:boolean ; - ] -. -ex:ValidInstance1 - rdf:type ex:TestShape ; - ex:testProperty "Me" ; - ex:testProperty "Me"@en ; - ex:testProperty "Moi"@fr ; - ex:testProperty "Myself"@en ; -. -ex:TestShape - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-testProperty ; -. -ex:TestShape-testProperty - sh:path ex:testProperty ; - rdfs:label "test property" ; - sh:uniqueLang "false"^^xsd:boolean ; -. diff --git a/test/data/core/targets/multipleTargets-001.test.ttl b/test/data/core/targets/multipleTargets-001.test.ttl deleted file mode 100644 index 20f80de..0000000 --- a/test/data/core/targets/multipleTargets-001.test.ttl +++ /dev/null @@ -1,52 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/targets/multipleTargets-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of multiple targets 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:InConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value ex:InvalidResource1 ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:property1 "Also a value" ; -. -ex:TestShape - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:in ( - ex:ValidResource1 - ex:ValidResource2 - ) ; - sh:targetSubjectsOf ex:property1 ; - sh:targetSubjectsOf ex:property2 ; -. -ex:ValidResource1 - ex:property1 "Some value" ; -. -ex:ValidResource2 - ex:property2 "Other value" ; -. diff --git a/test/data/core/targets/targetClass-001.test.ttl b/test/data/core/targets/targetClass-001.test.ttl deleted file mode 100644 index 7782706..0000000 --- a/test/data/core/targets/targetClass-001.test.ttl +++ /dev/null @@ -1,57 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/targets/targetClass-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:targetClass 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxCountConstraintComponent ; - sh:sourceShape ex:MyShape-myProperty ; - ] ; - ] ; -. -ex:InvalidInstance1 - rdf:type ex:MyClass ; - ex:myProperty "A" ; - ex:myProperty "B" ; -. -ex:MyClass - rdf:type rdfs:Class ; -. -ex:MyShape - rdf:type sh:NodeShape ; - sh:property ex:MyShape-myProperty ; - sh:targetClass ex:MyClass ; -. -ex:MyShape-myProperty - sh:path ex:myProperty ; - sh:maxCount 1 ; -. -ex:ValidInstance1 - rdf:type ex:MyClass ; - ex:myProperty "A" ; -. -ex:ValidInstance2 - ex:myProperty "A" ; - ex:myProperty "B" ; -. diff --git a/test/data/core/targets/targetClassImplicit-001.test.ttl b/test/data/core/targets/targetClassImplicit-001.test.ttl deleted file mode 100644 index 461e775..0000000 --- a/test/data/core/targets/targetClassImplicit-001.test.ttl +++ /dev/null @@ -1,54 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/targets/targetClassImplicit-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of implicit sh:targetClass 001" ; - owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:InConstraintComponent ; - sh:sourceShape ex:SuperClass ; - sh:value ex:InvalidInstance ; - ] ; - ] ; -. -ex:InvalidInstance - rdf:type ex:SubClass ; - rdfs:label "Invalid instance" ; -. -ex:SubClass - rdf:type rdfs:Class ; - rdfs:label "Sub class" ; - rdfs:subClassOf ex:SuperClass ; -. -ex:SuperClass - rdf:type rdfs:Class ; - rdf:type sh:NodeShape ; - rdfs:label "Super class" ; - sh:in ( - ex:ValidInstance - ) ; -. -ex:ValidInstance - rdf:type ex:SubClass ; - rdfs:label "Valid instance" ; -. diff --git a/test/data/core/targets/targetNode-001.test.ttl b/test/data/core/targets/targetNode-001.test.ttl deleted file mode 100644 index 81dea6d..0000000 --- a/test/data/core/targets/targetNode-001.test.ttl +++ /dev/null @@ -1,52 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/targets/targetNode-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:targetNode 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidResource1 ; - sh:resultPath rdfs:label ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxCountConstraintComponent ; - sh:sourceShape ex:TestShape-label ; - ] ; - ] ; -. -ex:InvalidResource1 - rdf:type rdfs:Resource ; - rdfs:label "Invalid resource 1" ; -. -ex:TestShape - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:property ex:TestShape-label ; - sh:targetNode ex:InvalidResource1 ; - sh:targetNode ex:ValidResource1 ; -. -ex:TestShape-label - sh:path rdfs:label ; - rdfs:label "label" ; - sh:datatype xsd:string ; - sh:maxCount 0 ; -. -ex:ValidResource1 - rdf:type rdfs:Resource ; -. diff --git a/test/data/core/targets/targetObjectsOf-001.test.ttl b/test/data/core/targets/targetObjectsOf-001.test.ttl deleted file mode 100644 index 34e8835..0000000 --- a/test/data/core/targets/targetObjectsOf-001.test.ttl +++ /dev/null @@ -1,60 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/targets/targetObjectsOf-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:targetObjectsOf 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode rdfs:Resource ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value rdfs:Resource ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode "String" ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; - sh:sourceShape ex:TestShape ; - sh:value "String" ; - ] ; - ] ; -. -ex:InvalidResource1 - ex:testProperty "String" ; -. -ex:InvalidResource2 - ex:testProperty rdfs:Resource ; -. -ex:TestShape - rdf:type sh:NodeShape ; - rdfs:label "Test shape" ; - sh:datatype xsd:integer ; - sh:targetObjectsOf ex:testProperty ; -. -ex:ValidResource1 - ex:testProperty 100 ; - ex:testProperty 42 ; -. -ex:testProperty - rdf:type rdf:Property ; - rdfs:label "test property" ; -. diff --git a/test/data/core/targets/targetSubjectsOf-001.test.ttl b/test/data/core/targets/targetSubjectsOf-001.test.ttl deleted file mode 100644 index ac9bc32..0000000 --- a/test/data/core/targets/targetSubjectsOf-001.test.ttl +++ /dev/null @@ -1,52 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/targets/targetSubjectsOf-001.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - -ex:InvalidInstance1 - ex:myProperty "A" ; - ex:myProperty "B" ; -. -ex:ValidInstance1 - ex:myProperty "A" ; -. - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:targetSubjectsOf 001" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxCountConstraintComponent ; - sh:sourceShape ex:TestShape-myProperty ; - ] ; - ] ; -. -ex:MyClass - rdf:type rdfs:Class ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property ex:TestShape-myProperty ; - sh:targetSubjectsOf ex:myProperty ; -. -ex:TestShape-myProperty - a sh:PropertyShape ; - sh:path ex:myProperty ; - sh:maxCount 1 ; -. diff --git a/test/data/core/targets/targetSubjectsOf-002.test.ttl b/test/data/core/targets/targetSubjectsOf-002.test.ttl deleted file mode 100644 index 2bf1649..0000000 --- a/test/data/core/targets/targetSubjectsOf-002.test.ttl +++ /dev/null @@ -1,69 +0,0 @@ -# baseURI: http://datashapes.org/sh/tests/core/targets/targetSubjectsOf-002.test -# imports: http://datashapes.org/dash -# prefix: ex - -@prefix dash: . -@prefix ex: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "Test of sh:targetSubjectsOf 002" ; - owl:imports ; -. -ex:GraphValidationTestCase - rdf:type dash:GraphValidationTestCase ; - dash:expectedResult [ - rdf:type sh:ValidationReport ; - sh:conforms "false"^^xsd:boolean ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance1 ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxCountConstraintComponent ; - sh:sourceShape ex:TestShape-myProperty ; - ] ; - sh:result [ - rdf:type sh:ValidationResult ; - sh:focusNode ex:InvalidInstance2 ; - sh:resultPath ex:myProperty ; - sh:resultSeverity sh:Violation ; - sh:sourceConstraintComponent sh:MaxCountConstraintComponent ; - sh:sourceShape ex:TestShape-myProperty ; - ] ; - ] ; -. -ex:InvalidInstance1 - rdf:type ex:MyClass ; - ex:myProperty "A" ; - ex:myProperty "B" ; -. -ex:InvalidInstance2 - ex:myProperty "A" ; - ex:myProperty "B" ; -. -ex:MyClass - rdf:type rdfs:Class ; -. -ex:TestShape - rdf:type sh:NodeShape ; - sh:property ex:TestShape-myProperty ; - sh:targetClass ex:MyClass ; - sh:targetSubjectsOf ex:myProperty ; -. -ex:TestShape-myProperty - sh:path ex:myProperty ; - sh:maxCount 1 ; -. -ex:ValidInstance1 - rdf:type ex:MyClass ; - ex:myProperty "A" ; -. -ex:ValidInstance2 - ex:myProperty "A" ; -. diff --git a/test/integration_tests.js b/test/integration_tests.js deleted file mode 100644 index 071e8bf..0000000 --- a/test/integration_tests.js +++ /dev/null @@ -1,79 +0,0 @@ -/* eslint-env mocha */ -const assert = require('assert') -const path = require('path') -const SHACLValidator = require('../index') -const fs = require('fs') -const clownface = require('clownface') -const { sh, rdf: rdfNS } = require('../src/namespaces') -const { loadDataset } = require('./utils') - -class ExpectedValidationReport { - constructor (dataset) { - this.cf = clownface({ dataset }) - this.reportNode = this.cf.namedNode(sh.ValidationReport).in(rdfNS.type) - } - - get conforms () { - return this.reportNode.out(sh.conforms).value === 'true' - } - - get results () { - return this.reportNode.out(sh.result).map((node) => new ExpectedValidationResult({ - focusNode: node.out(sh.focusNode).term, - severity: node.out(sh.resultSeverity).term, - constraint: node.out(sh.sourceConstraintComponent).term, - shape: node.out(sh.sourceShape).term - })) - } -} - -class ExpectedValidationResult { - constructor ({ severity, focusNode, constraint, shape }) { - this.focusNode = focusNode.termType === 'BlankNode' ? `_:${focusNode.value}` : focusNode.value - this.severity = severity ? severity.value.split('#')[1] : null - this.sourceConstraintComponent = constraint.value - this.sourceShape = shape.termType === 'BlankNode' ? '_:' + shape.value : shape.value - } -} - -const isBlank = function (s) { - return s != null && (s.indexOf('_:') === 0 || s.indexOf('_g_') > -1) -} - -const validateReports = async function (input) { - const data = await loadDataset(input) - const shapes = data - - const expectedReport = new ExpectedValidationReport(data) - const report = new SHACLValidator(shapes).validate(data) - assert.strictEqual(report.conforms, expectedReport.conforms) - assert.strictEqual(report.results.length, expectedReport.results.length) - - for (const result of report.results) { - let found = false - for (const expectedResult of expectedReport.results) { - if ( - result.focusNode === expectedResult.focusNode && - result.severity === expectedResult.severity && - ( - (isBlank(result.sourceShape) && isBlank(expectedResult.sourceShape)) || - result.sourceShape === expectedResult.sourceShape - ) && - result.sourceConstraintComponent === expectedResult.sourceConstraintComponent - ) { - found = true - } - } - assert.strictEqual(found, true) - } -} - -describe('integration tests', () => { - const rootPath = path.join(__dirname, '/data/core') - fs.readdirSync(rootPath).forEach(function (dir) { - const dirPath = path.join(rootPath, dir) - fs.readdirSync(dirPath).forEach(function (file) { - it(dir + '-test-' + file, async () => validateReports(path.join(dirPath, file))) - }) - }) -})