Search in sources :

Example 6 with Parameter

use of org.apache.jena.shacl.engine.Parameter in project jena by apache.

the class ConstraintComponents method constraintParameterValues.

private static Multimap<Parameter, Node> constraintParameterValues(Graph shapesGraph, Node shNode, SparqlComponent scc) {
    Node nodeValidatorNode = G.getZeroOrOneSP(shapesGraph, shNode, SHACL.nodeValidator);
    Node propertyValidatorNode = G.getZeroOrOneSP(shapesGraph, shNode, SHACL.propertyValidator);
    Node validatorNode = G.getZeroOrOneSP(shapesGraph, shNode, SHACL.validator);
    Node vNode = firstNonNull(nodeValidatorNode, propertyValidatorNode, validatorNode);
    Multimap<Parameter, Node> parameterValues = Parameters.parameterValues(shapesGraph, shNode, scc);
    return parameterValues;
}
Also used : Node(org.apache.jena.graph.Node) Parameter(org.apache.jena.shacl.engine.Parameter)

Aggregations

Parameter (org.apache.jena.shacl.engine.Parameter)6 SparqlComponent (org.apache.jena.shacl.engine.constraint.SparqlComponent)4 Node (org.apache.jena.graph.Node)3 ConstraintComponentSPARQL (org.apache.jena.shacl.engine.constraint.ConstraintComponentSPARQL)1