java.lang.Object
org.apache.jena.shex.sys.ValidationContext
Context for a validation and collector of the results.
-
Constructor Summary
ConstructorsConstructorDescriptionValidationContext(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 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, for removal: This API element is subject to removal in a future version.booleanbooleandispatchShapeExprSemanticAction(ShapeExpression se, org.apache.jena.graph.Node focus) booleandispatchStartSemanticAction(ShexSchema schema, ValidationContext vCxt) booleandispatchTripleExprSemanticAction(TripleExpression te, Set<org.apache.jena.graph.Triple> matchables) voidfinishValidate(ShexShape shape, org.apache.jena.graph.Node data) org.apache.jena.graph.GraphgetData()Current state.getRoot()getShape(org.apache.jena.graph.Node label) Current state.getTripleExpression(org.apache.jena.graph.Node label) booleanvoidreportEntry(ReportItem item) voidshexReport(ShexRecord entry, org.apache.jena.graph.Node focusNode, ShexStatus result, String reason) voidstartValidate(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, for removal: This API element is subject to removal in a future version.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()