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 TypeMethodDescriptionvoid
copyInto
(ValidationContext other) Update other with "this" statecreate()
Creates a new validation context with the current one as its parent context.static ValidationContext
create
(ValidationContext vCxt) Deprecated.boolean
boolean
dispatchShapeExprSemanticAction
(ShapeExpression se, Node focus) boolean
dispatchStartSemanticAction
(ShexSchema schema, ValidationContext vCxt) boolean
dispatchTripleExprSemanticAction
(TripleExpression te, Set<Triple> matchables) void
finishValidate
(ShexShape shape, Node data) getData()
Current state.getRoot()
Current state.getTripleExpression
(Node label) boolean
void
reportEntry
(ReportItem item) void
shexReport
(ShexRecord entry, Node focusNode, ShexStatus result, String reason) void
startValidate
(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()