|
11 | 11 | sh:result
|
12 | 12 | [
|
13 | 13 | a sh:ValidationResult ;
|
14 |
| - sh:focusNode <http://example.org/kb/list-1> ; |
15 |
| - sh:resultMessage "The subject of a triple with rdf:first as predicate must be a blank node." ; |
| 14 | + sh:detail [ |
| 15 | + a sh:ValidationResult ; |
| 16 | + sh:focusNode <http://example.org/kb/list-1> ; |
| 17 | + sh:resultMessage 'Node kb:list-1 does not conform to exactly one shape in [ rdf:type sh:NodeShape ; sh:hasValue rdf:nil ] , [ rdf:type sh:NodeShape ; sh:nodeKind sh:BlankNode ; sh:property [ rdf:type sh:PropertyShape ; sh:path [ sh:oneOrMorePath rdf:rest ] ; sh:xone ( [ rdf:type sh:NodeShape ; sh:hasValue rdf:nil ] [ rdf:type sh:NodeShape ; sh:nodeKind sh:BlankNode ; sh:property [ rdf:type sh:PropertyShape ; sh:maxCount Literal("1", datatype=xsd:integer) ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:path rdf:first ] ] ) ] ]' ; |
| 18 | + sh:resultSeverity sh:Violation ; |
| 19 | + sh:sourceConstraintComponent sh:XoneConstraintComponent ; |
| 20 | + sh:sourceShape uco-owl:Sequence-shape ; |
| 21 | + sh:value <http://example.org/kb/list-1> ; |
| 22 | + ] ; |
| 23 | + sh:focusNode [ |
| 24 | + a owl:AllDifferent ; |
| 25 | + owl:distinctMembers <http://example.org/kb/list-1> ; |
| 26 | + ] ; |
| 27 | + sh:resultMessage "Value does not conform to Shape uco-owl:Sequence-shape. See details for more information." ; |
| 28 | + sh:resultPath owl:distinctMembers ; |
16 | 29 | sh:resultSeverity sh:Violation ;
|
17 |
| - sh:sourceConstraint [ |
18 |
| - a sh:SPARQLConstraint ; |
19 |
| - rdfs:comment "This requirement is determined from review of the canonical parsing process in Section 3 of the OWL 2 mapping to RDF. Table 5 removes any triple matching the pattern 'x a rdf:List`. All other references throughout Section 3 to rdf:first are identified as blank nodes. Therefore, any non-blank node that is an rdf:List will not be mapped and consumed by the mapping process, making the graph non-conformant with OWL 2 DL."@en ; |
20 |
| - rdfs:seeAlso <https://www.w3.org/TR/2012/REC-owl2-mapping-to-rdf-20121211/#Mapping_from_RDF_Graphs_to_the_Structural_Specification> ; |
21 |
| - sh:message "The subject of a triple with rdf:first as predicate must be a blank node."@en ; |
22 |
| - sh:select """ |
23 |
| - SELECT $this |
24 |
| - WHERE { |
25 |
| - FILTER isIRI($this) |
26 |
| - } |
27 |
| - """ ; |
28 |
| - ] ; |
29 |
| - sh:sourceConstraintComponent sh:SPARQLConstraintComponent ; |
30 |
| - sh:sourceShape uco-owl:List-shape ; |
| 30 | + sh:sourceConstraintComponent sh:NodeConstraintComponent ; |
| 31 | + sh:sourceShape [ |
| 32 | + a sh:PropertyShape ; |
| 33 | + sh:node uco-owl:Sequence-shape ; |
| 34 | + sh:path owl:distinctMembers ; |
| 35 | + ] ; |
31 | 36 | sh:value <http://example.org/kb/list-1> ;
|
32 | 37 | ] ,
|
33 | 38 | [
|
34 | 39 | a sh:ValidationResult ;
|
35 |
| - sh:focusNode <http://example.org/kb/list-2> ; |
36 |
| - sh:resultMessage "The subject of a triple with rdf:first as predicate must be a blank node." ; |
| 40 | + sh:detail [ |
| 41 | + a sh:ValidationResult ; |
| 42 | + sh:focusNode <http://example.org/ontology/someDatatypeProperty> ; |
| 43 | + sh:resultMessage 'Node ex:someDatatypeProperty does not conform to exactly one shape in [ rdf:type sh:NodeShape ; sh:hasValue rdf:nil ] , [ rdf:type sh:NodeShape ; sh:nodeKind sh:BlankNode ; sh:property [ rdf:type sh:PropertyShape ; sh:path [ sh:oneOrMorePath rdf:rest ] ; sh:xone ( [ rdf:type sh:NodeShape ; sh:hasValue rdf:nil ] [ rdf:type sh:NodeShape ; sh:nodeKind sh:BlankNode ; sh:property [ rdf:type sh:PropertyShape ; sh:maxCount Literal("1", datatype=xsd:integer) ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:path rdf:first ] ] ) ] ]' ; |
| 44 | + sh:resultSeverity sh:Violation ; |
| 45 | + sh:sourceConstraintComponent sh:XoneConstraintComponent ; |
| 46 | + sh:sourceShape uco-owl:Sequence-shape ; |
| 47 | + sh:value <http://example.org/ontology/someDatatypeProperty> ; |
| 48 | + ] ; |
| 49 | + sh:focusNode <http://example.org/ontology/IncorrectlyKeyedThing> ; |
| 50 | + sh:resultMessage "Value does not conform to Shape uco-owl:Sequence-shape. See details for more information." ; |
| 51 | + sh:resultPath owl:hasKey ; |
| 52 | + sh:resultSeverity sh:Violation ; |
| 53 | + sh:sourceConstraintComponent sh:NodeConstraintComponent ; |
| 54 | + sh:sourceShape [ |
| 55 | + a sh:PropertyShape ; |
| 56 | + sh:node uco-owl:Sequence-shape ; |
| 57 | + sh:path owl:hasKey ; |
| 58 | + ] ; |
| 59 | + sh:value <http://example.org/ontology/someDatatypeProperty> ; |
| 60 | + ] , |
| 61 | + [ |
| 62 | + a sh:ValidationResult ; |
| 63 | + sh:detail [ |
| 64 | + a sh:ValidationResult ; |
| 65 | + sh:focusNode ( |
| 66 | + <http://example.org/kb/concept-7> |
| 67 | + <http://example.org/kb/concept-8> |
| 68 | + ) ; |
| 69 | + sh:resultMessage 'Node ( kb:concept-7 kb:concept-8 ) does not conform to exactly one shape in [ rdf:type sh:NodeShape ; sh:hasValue rdf:nil ] , [ rdf:type sh:NodeShape ; sh:nodeKind sh:BlankNode ; sh:property [ rdf:type sh:PropertyShape ; sh:path [ sh:oneOrMorePath rdf:rest ] ; sh:xone ( [ rdf:type sh:NodeShape ; sh:hasValue rdf:nil ] [ rdf:type sh:NodeShape ; sh:nodeKind sh:BlankNode ; sh:property [ rdf:type sh:PropertyShape ; sh:maxCount Literal("1", datatype=xsd:integer) ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:path rdf:first ] ] ) ] ]' ; |
| 70 | + sh:resultSeverity sh:Violation ; |
| 71 | + sh:sourceConstraintComponent sh:XoneConstraintComponent ; |
| 72 | + sh:sourceShape uco-owl:Sequence-shape ; |
| 73 | + sh:value ( |
| 74 | + <http://example.org/kb/concept-7> |
| 75 | + <http://example.org/kb/concept-8> |
| 76 | + ) ; |
| 77 | + ] ; |
| 78 | + sh:focusNode [ |
| 79 | + a owl:AllDifferent ; |
| 80 | + owl:distinctMembers ( |
| 81 | + <http://example.org/kb/concept-7> |
| 82 | + <http://example.org/kb/concept-8> |
| 83 | + ) ; |
| 84 | + ] ; |
| 85 | + sh:resultMessage "Value does not conform to Shape uco-owl:Sequence-shape. See details for more information." ; |
| 86 | + sh:resultPath owl:distinctMembers ; |
37 | 87 | sh:resultSeverity sh:Violation ;
|
38 |
| - sh:sourceConstraint [ |
39 |
| - a sh:SPARQLConstraint ; |
40 |
| - rdfs:comment "This requirement is determined from review of the canonical parsing process in Section 3 of the OWL 2 mapping to RDF. Table 5 removes any triple matching the pattern 'x a rdf:List`. All other references throughout Section 3 to rdf:first are identified as blank nodes. Therefore, any non-blank node that is an rdf:List will not be mapped and consumed by the mapping process, making the graph non-conformant with OWL 2 DL."@en ; |
41 |
| - rdfs:seeAlso <https://www.w3.org/TR/2012/REC-owl2-mapping-to-rdf-20121211/#Mapping_from_RDF_Graphs_to_the_Structural_Specification> ; |
42 |
| - sh:message "The subject of a triple with rdf:first as predicate must be a blank node."@en ; |
43 |
| - sh:select """ |
44 |
| - SELECT $this |
45 |
| - WHERE { |
46 |
| - FILTER isIRI($this) |
47 |
| - } |
48 |
| - """ ; |
49 |
| - ] ; |
50 |
| - sh:sourceConstraintComponent sh:SPARQLConstraintComponent ; |
51 |
| - sh:sourceShape uco-owl:List-shape ; |
52 |
| - sh:value <http://example.org/kb/list-2> ; |
| 88 | + sh:sourceConstraintComponent sh:NodeConstraintComponent ; |
| 89 | + sh:sourceShape [ |
| 90 | + a sh:PropertyShape ; |
| 91 | + sh:node uco-owl:Sequence-shape ; |
| 92 | + sh:path owl:distinctMembers ; |
| 93 | + ] ; |
| 94 | + sh:value ( |
| 95 | + <http://example.org/kb/concept-7> |
| 96 | + <http://example.org/kb/concept-8> |
| 97 | + ) ; |
53 | 98 | ]
|
54 | 99 | ;
|
55 | 100 | .
|
|
0 commit comments