zazuko/rdf-validate-shacl

Validation report message not included when using recursive shapes

holycrab13 opened this issue · 1 comments

Validation report message not included when using recursive shapes. Tested with sh:and

Example:

@prefix dash: <http://datashapes.org/dash#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dataid: <http://dataid.dbpedia.org/ns/core#> .
@prefix dct:   <http://purl.org/dc/terms/> .
@prefix dcat:  <http://www.w3.org/ns/dcat#> .
@prefix dcv: <http://dataid.dbpedia.org/ns/cv#> .

##########
# Group
##########

<#dataid-group-test>   
    a sh:NodeShape ;
    sh:targetClass dataid:Group ;
    sh:and (<#en-title>) .

<#en-title>   
    a sh:PropertyShape ;
    sh:severity sh:Violation ;
    sh:message "Required property dct:title MUST occur at least once AND have one @en " ;
    sh:path dct:title ;
    sh:minCount 1 ;
    sh:languageIn ("en") ;
    sh:uniqueLang true .

Validation failure due to the PropertyShape will not give access to the error message.

It looks to me this one issue has been fixed by 5e4b375