Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save James-Hudson3010/e67e3766ccb828d51fa9a11849db7d2a to your computer and use it in GitHub Desktop.
Save James-Hudson3010/e67e3766ccb828d51fa9a11849db7d2a to your computer and use it in GitHub Desktop.
Validation errors
@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 schema: <http://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] a sh:ValidationReport ;
sh:conforms false ;
sh:result [ a sh:ValidationResult ;
sh:focusNode rdfs:Class ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode sh:property ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode hr:Dangling ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode sh:path ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode """
SELECT ?this
WHERE {
?this ?p ?o .
}
""" ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode [ a rdfs:Resource ;
sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode hr:AnotherName ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode sh:hasValue ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode hr:BadThree ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode rdfs:comment ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode rdf:type ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode sh:IRI ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode sh:prefixes ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode sh:select ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode rdfs:subPropertyOf ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode hr:BadOne ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode hr:YetAnotherName ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode rdf:Property ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode hr:BadTwo ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode [ a rdfs:Resource,
sh:SPARQLTarget ;
sh:prefixes hr: ;
sh:select """
SELECT ?this
WHERE {
?this ?p ?o .
}
""" ] ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode hr:YetAnother ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode sh:target ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode hr:name ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode sh:nodeKind ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode sh:NodeShape ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode hr:Another ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode schema:SchemaShape ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode rdfs:subClassOf ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode "some comment about missing" ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode sh:SPARQLTarget ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ],
[ a sh:ValidationResult ;
sh:focusNode hr: ;
sh:resultPath rdf:type ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape [ sh:hasValue rdfs:Class ;
sh:nodeKind sh:IRI ;
sh:path rdf:type ] ] .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment