java.lang.Object
org.apache.jena.shex.sys.ValidationContext
Context for a validation and collector of the results.
-
Constructor Summary
ConstructorDescriptionValidationContext
(org.apache.jena.graph.Graph data, ShexSchema shapes) ValidationContext
(org.apache.jena.graph.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, org.apache.jena.graph.Node focus) boolean
dispatchStartSemanticAction
(ShexSchema schema, ValidationContext vCxt) boolean
dispatchTripleExprSemanticAction
(TripleExpression te, Set<org.apache.jena.graph.Triple> matchables) void
finishValidate
(ShexShape shape, org.apache.jena.graph.Node data) org.apache.jena.graph.Graph
getData()
Current state.getRoot()
getShape
(org.apache.jena.graph.Node label) Current state.getTripleExpression
(org.apache.jena.graph.Node label) boolean
void
reportEntry
(ReportItem item) void
shexReport
(ShexRecord entry, org.apache.jena.graph.Node focusNode, ShexStatus result, String reason) void
startValidate
(ShexShape shape, org.apache.jena.graph.Node data)
-
Constructor Details
-
ValidationContext
-
ValidationContext
public ValidationContext(org.apache.jena.graph.Graph data, ShexSchema shapes, Map<String, SemanticActionPlugin> semActPluginIndex)
-
-
Method Details
-
create
Deprecated.Use methodcreate()
-
getParent
-
getRoot
-
getTripleExpression
-
getShapes
-
getShape
-
getData
public org.apache.jena.graph.Graph 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
public boolean dispatchShapeExprSemanticAction(ShapeExpression se, org.apache.jena.graph.Node focus) -
dispatchTripleExprSemanticAction
public boolean dispatchTripleExprSemanticAction(TripleExpression te, Set<org.apache.jena.graph.Triple> matchables) -
finishValidate
-
hasEntries
public boolean hasEntries() -
copyInto
Update other with "this" state -
getReportItems
Current state. -
getShexReportItems
Current state. -
reportEntry
-
shexReport
public void shexReport(ShexRecord entry, org.apache.jena.graph.Node focusNode, ShexStatus result, String reason) -
generateReport
-
create()