java.lang.Object
org.apache.jena.shex.sys.ValidationContext
Context for a validation and collector of the results.
-
Constructor Summary
ConstructorsConstructorDescriptionValidationContext(Graph data, ShexSchema shapes) ValidationContext(Graph data, ShexSchema shapes, Map<String, SemanticActionPlugin> semActPluginIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyInto(ValidationContext other) Update other with "this" statecreate()Creates a new validation context with the current one as its parent context.static ValidationContextcreate(ValidationContext vCxt) Deprecated.booleanbooleandispatchShapeExprSemanticAction(ShapeExpression se, Node focus) booleandispatchStartSemanticAction(ShexSchema schema, ValidationContext vCxt) booleandispatchTripleExprSemanticAction(TripleExpression te, Set<Triple> matchables) voidfinishValidate(ShexShape shape, Node data) getData()Current state.getRoot()Current state.getTripleExpression(Node label) booleanvoidreportEntry(ReportItem item) voidshexReport(ShexRecord entry, Node focusNode, ShexStatus result, String reason) voidstartValidate(ShexShape shape, Node data)
-
Constructor Details
-
ValidationContext
-
ValidationContext
public ValidationContext(Graph data, ShexSchema shapes, Map<String, SemanticActionPlugin> semActPluginIndex)
-
-
Method Details
-
create
Deprecated.Use methodcreate() -
getParent
-
getRoot
-
getTripleExpression
-
getShapes
-
getShape
-
getData
-
create
Creates a new validation context with the current one as its parent context. Initializes the new context with the state of the parent context.- Returns:
- new ValidationContext with this as parent.
-
startValidate
-
cycle
-
dispatchStartSemanticAction
-
dispatchShapeExprSemanticAction
-
dispatchTripleExprSemanticAction
-
finishValidate
-
hasEntries
public boolean hasEntries() -
copyInto
Update other with "this" state -
getReportItems
Current state. -
getShexReportItems
Current state. -
reportEntry
-
shexReport
-
generateReport
-
create()