cdm:manifestation_court-report
a rdfs:Class , sh:NodeShape ;
rdfs:subClassOf cdm:manifestation_print ;
dash:closedByTypes true ;
sh:property [ sh:maxCount "1"^^xsd:nonNegativeInteger ;
sh:path cdm:manifestation_court-report_belongs_to_type_court-report
] ;
sh:sparql [ a sh:SPARQLConstraint ;
sh:message "Concept has to be equivalent to <http://publications.europa.eu/ontology/cdm#type_court-report>" ;
sh:prefixes cdm: ;
sh:select "SELECT $this ?value WHERE {$this <http://publications.europa.eu/ontology/cdm#manifestation_court-report_belongs_to_type_court-report> ?value.\n FILTER NOT EXISTS {?value skos:inScheme ?conceptScheme.\n ?conceptScheme ^owl:hasValue/^owl:equivalentClass/rdfs:subClassOf* <http://publications.europa.eu/ontology/cdm#type_court-report> }}" ;
sh:severity sh:Warning
] .
Unfortunately, when there is a validation issue, the issue is still reported as "resultSeverity" : "shacl:Violation". Is there any way to do this? Chaning the severity level for non-SPARQL-based constraints seems to work, e.g., for cdm:manifestation_court-report_belongs_to_type_court-report.
Cheers,
Sebastian
cdm:manifestation_court-report_Warnings a sh:NodeShape ; sh:targetClass cdm:manifestation_court-report ; sh:severity sh:Warning ; sh:sparql [ ... ] .HTH
--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.