Search in sources :

Example 11 with ReportItem

use of org.apache.jena.shacl.validation.ReportItem in project jena by apache.

the class ConstraintEntity method validatePropertyShape.

@Override
public final void validatePropertyShape(ValidationContext vCxt, Graph data, Shape shape, Node focusNode, Path path, Set<Node> pathNodes) {
    ReportItem item = validate(vCxt, pathNodes);
    if (item == null)
        return;
    vCxt.reportEntry(item.getMessage(), shape, focusNode, path, item.getValue(), this);
}
Also used : ReportItem(org.apache.jena.shacl.validation.ReportItem)

Aggregations

ReportItem (org.apache.jena.shacl.validation.ReportItem)11 ValidationContext (org.apache.jena.shacl.engine.ValidationContext)5 Shape (org.apache.jena.shacl.parser.Shape)3 Node (org.apache.jena.graph.Node)1 CompactOut.compactArrayString (org.apache.jena.shacl.compact.writer.CompactOut.compactArrayString)1 ExprNotComparableException (org.apache.jena.sparql.expr.ExprNotComparableException)1 NodeValue (org.apache.jena.sparql.expr.NodeValue)1 ValueSpaceClassification (org.apache.jena.sparql.expr.ValueSpaceClassification)1