Last active
April 20, 2020 17:10
-
-
Save James-Hudson3010/c3fd7efabe16d301d3496b77e43a40d8 to your computer and use it in GitHub Desktop.
related to SO answer https://stackoverflow.com/questions/61323857/what-is-the-difference-between-these-shape-graphs-which-use-shor/61327578#61327578
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix hr: <http://learningsparql.com/ns/humanResources#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix sch: <http://schema.org/> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
hr:Another a rdfs:Class . | |
hr:Employee a rdfs:Class ; | |
rdfs:label "model" ; | |
rdfs:comment "a good employee" . | |
hr:Longer a hr:Employee ; | |
rdfs:label "model" ; | |
rdfs:comment "a good employee" . | |
hr:freestanding a rdf:Property ; | |
sch:rangeIncludes sch:Text . | |
hr:missing rdfs:comment "some comment about missing" . | |
hr:name a rdf:Property ; | |
sch:domainIncludes hr:Employee . | |
hr:nosuper a rdf:Property ; | |
sch:domainIncludes hr:Uncreated ; | |
sch:rangeIncludes sch:Text . | |
hr:randomtype a hr:invalidtype ; | |
rdfs:label "some label about randomtype" ; | |
rdfs:comment "some comment about randomtype" . | |
hr:typo a rdfs:Classs ; | |
rdfs:label "some label about typo" ; | |
rdfs:comment "some comment about typo" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix sch: <http://schema.org/> . | |
@prefix sh: <http://www.w3.org/ns/shacl#> . | |
@prefix ex: <http://carbyne64.org/> . | |
ex:ClassOrProperty | |
a sh:NodeShape ; | |
sh:target [ | |
a sh:SPARQLTarget ; | |
sh:select """ | |
SELECT ?this | |
WHERE { | |
?this ?p ?o . | |
} | |
""" ; | |
] ; | |
sh:property [ | |
sh:path [sh:zeroOrMorePath rdf:type] ; | |
sh:in ( rdfs:Class rdf:Property ) ; | |
]; | |
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validation Report | |
Conforms: False | |
Results (12): | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:Another | |
Value Node: hr:Another | |
Result Path: [ sh:zeroOrMorePath rdf:type ] | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:Longer | |
Value Node: hr:Longer | |
Result Path: [ sh:zeroOrMorePath rdf:type ] | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:Longer | |
Value Node: hr:Employee | |
Result Path: [ sh:zeroOrMorePath rdf:type ] | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:name | |
Value Node: hr:name | |
Result Path: [ sh:zeroOrMorePath rdf:type ] | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:typo | |
Value Node: hr:typo | |
Result Path: [ sh:zeroOrMorePath rdf:type ] | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:typo | |
Value Node: rdfs:Classs | |
Result Path: [ sh:zeroOrMorePath rdf:type ] | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:nosuper | |
Value Node: hr:nosuper | |
Result Path: [ sh:zeroOrMorePath rdf:type ] | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:Employee | |
Value Node: hr:Employee | |
Result Path: [ sh:zeroOrMorePath rdf:type ] | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:missing | |
Value Node: hr:missing | |
Result Path: [ sh:zeroOrMorePath rdf:type ] | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:randomtype | |
Value Node: hr:randomtype | |
Result Path: [ sh:zeroOrMorePath rdf:type ] | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:randomtype | |
Value Node: hr:invalidtype | |
Result Path: [ sh:zeroOrMorePath rdf:type ] | |
Constraint Violation in InConstraintComponent (http://www.w3.org/ns/shacl#InConstraintComponent): | |
Severity: sh:Violation | |
Source Shape: [ sh:in ( rdfs:Class rdf:Property ) ; sh:path [ sh:zeroOrMorePath rdf:type ] ] | |
Focus Node: hr:freestanding | |
Value Node: hr:freestanding | |
Result Path: [ sh:zeroOrMorePath rdf:type ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment