I try to validate a record after loading the instance tsv file and work tsv file.
The work validation arised just warning, but these warnings marked the work not conformed to Shape so rules with the work as value node (eg. bf:instanceOf) arised a Violation.
I think this policy is too strict.
The same problem happened with provisionActivity
I did the test with record attached to this issue against Serial_Work_Text.tsv + Serial_Instance_Print.tsv
record_7.zip
Validation report:
Constraint Violation in NodeConstraintComponent (http://www.w3.org/ns/shacl#NodeConstraintComponent): Severity: sh:Violation Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Instance of") ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:node <big:Serial:Work> ; sh:path bf:instanceOf ; sh:severity sh:Violation ] Focus Node: <https://svde.org/instances/13711655843805161> Value Node: <https://svde.org/works/13711655843805187> Result Path: bf:instanceOf Message: Value does not conform to Shape <big:Serial:Work>. See details for more information. Details: Validation Result in MinCountConstraintComponent (http://www.w3.org/ns/shacl#MinCountConstraintComponent): Severity: sh:Warning Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Contribution") ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:node <big:Contribution> ; sh:path bf:contribution ; sh:severity sh:Warning ] Focus Node: <https://svde.org/works/13711655843805187> Result Path: bf:contribution Message: Less than 1 values on <https://svde.org/works/13711655843805187>->bf:contribution Validation Result in MinCountConstraintComponent (http://www.w3.org/ns/shacl#MinCountConstraintComponent): Severity: sh:Warning Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Date of Work") ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:path bf:originDate ; sh:severity sh:Warning ] Focus Node: <https://svde.org/works/13711655843805187> Result Path: bf:originDate Message: Less than 1 values on <https://svde.org/works/13711655843805187>->bf:originDate Validation Result in MinCountConstraintComponent (http://www.w3.org/ns/shacl#MinCountConstraintComponent): Severity: sh:Warning Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Place of Origin of the Work") ; sh:maxCount Literal("1", datatype=xsd:integer) ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:path bf:originPlace ; sh:severity sh:Warning ] Focus Node: <https://svde.org/works/13711655843805187> Result Path: bf:originPlace Message: Less than 1 values on <https://svde.org/works/13711655843805187>->bf:originPlace Validation Result in MinCountConstraintComponent (http://www.w3.org/ns/shacl#MinCountConstraintComponent): Severity: sh:Warning Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Identifier") ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:node <big:SerialIdentifier> ; sh:path bf:identifiedBy ; sh:severity sh:Warning ] Focus Node: <https://svde.org/works/13711655843805187> Result Path: bf:identifiedBy Message: Less than 1 values on <https://svde.org/works/13711655843805187>->bf:identifiedBy Validation Result in MinCountConstraintComponent (http://www.w3.org/ns/shacl#MinCountConstraintComponent): Severity: sh:Warning Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Classification numbers") ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:path bf:classification ; sh:severity sh:Warning ] Focus Node: <https://svde.org/works/13711655843805187> Result Path: bf:classification Message: Less than 1 values on <https://svde.org/works/13711655843805187>->bf:classification
I try to validate a record after loading the instance tsv file and work tsv file.
The work validation arised just warning, but these warnings marked the work not conformed to Shape so rules with the work as value node (eg. bf:instanceOf) arised a Violation.
I think this policy is too strict.
The same problem happened with provisionActivity
I did the test with record attached to this issue against Serial_Work_Text.tsv + Serial_Instance_Print.tsv
record_7.zip
Validation report:
Constraint Violation in NodeConstraintComponent (http://www.w3.org/ns/shacl#NodeConstraintComponent): Severity: sh:Violation Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Instance of") ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:node <big:Serial:Work> ; sh:path bf:instanceOf ; sh:severity sh:Violation ] Focus Node: <https://svde.org/instances/13711655843805161> Value Node: <https://svde.org/works/13711655843805187> Result Path: bf:instanceOf Message: Value does not conform to Shape <big:Serial:Work>. See details for more information. Details: Validation Result in MinCountConstraintComponent (http://www.w3.org/ns/shacl#MinCountConstraintComponent): Severity: sh:Warning Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Contribution") ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:node <big:Contribution> ; sh:path bf:contribution ; sh:severity sh:Warning ] Focus Node: <https://svde.org/works/13711655843805187> Result Path: bf:contribution Message: Less than 1 values on <https://svde.org/works/13711655843805187>->bf:contribution Validation Result in MinCountConstraintComponent (http://www.w3.org/ns/shacl#MinCountConstraintComponent): Severity: sh:Warning Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Date of Work") ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:path bf:originDate ; sh:severity sh:Warning ] Focus Node: <https://svde.org/works/13711655843805187> Result Path: bf:originDate Message: Less than 1 values on <https://svde.org/works/13711655843805187>->bf:originDate Validation Result in MinCountConstraintComponent (http://www.w3.org/ns/shacl#MinCountConstraintComponent): Severity: sh:Warning Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Place of Origin of the Work") ; sh:maxCount Literal("1", datatype=xsd:integer) ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:path bf:originPlace ; sh:severity sh:Warning ] Focus Node: <https://svde.org/works/13711655843805187> Result Path: bf:originPlace Message: Less than 1 values on <https://svde.org/works/13711655843805187>->bf:originPlace Validation Result in MinCountConstraintComponent (http://www.w3.org/ns/shacl#MinCountConstraintComponent): Severity: sh:Warning Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Identifier") ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:node <big:SerialIdentifier> ; sh:path bf:identifiedBy ; sh:severity sh:Warning ] Focus Node: <https://svde.org/works/13711655843805187> Result Path: bf:identifiedBy Message: Less than 1 values on <https://svde.org/works/13711655843805187>->bf:identifiedBy Validation Result in MinCountConstraintComponent (http://www.w3.org/ns/shacl#MinCountConstraintComponent): Severity: sh:Warning Source Shape: [ rdf:type sh:PropertyShape ; rdfs:label Literal("Classification numbers") ; sh:minCount Literal("1", datatype=xsd:integer) ; sh:path bf:classification ; sh:severity sh:Warning ] Focus Node: <https://svde.org/works/13711655843805187> Result Path: bf:classification Message: Less than 1 values on <https://svde.org/works/13711655843805187>->bf:classification