Package org.apache.jena.shex.sys
Class ValidationContext
- java.lang.Object
-
- org.apache.jena.shex.sys.ValidationContext
-
public class ValidationContext extends java.lang.ObjectContext for a validation and collector of the results.
-
-
Constructor Summary
Constructors Constructor Description ValidationContext(Graph data, ShexSchema shapes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyInto(ValidationContext other)Update other with "this" statestatic ValidationContextcreate(ValidationContext vCxt)booleancycle(ShexShape shape, Node data)voidfinishValidate(ShexShape shape, Node data)ShexReportgenerateReport()GraphgetData()java.util.List<ReportItem>getReportItems()Current state.ShexShapegetShape(Node label)ShexSchemagetShapes()java.util.List<ShexRecord>getShexReportItems()Current state.TripleExpressiongetTripleExpression(Node label)booleanhasEntries()voidreportEntry(ReportItem item)voidshexReport(ShexRecord entry, Node focusNode, ShexStatus result, java.lang.String reason)voidstartValidate(ShexShape shape, Node data)
-
-
-
Constructor Detail
-
ValidationContext
public ValidationContext(Graph data, ShexSchema shapes)
-
-
Method Detail
-
create
public static ValidationContext create(ValidationContext vCxt)
-
getTripleExpression
public TripleExpression getTripleExpression(Node label)
-
getShapes
public ShexSchema getShapes()
-
getData
public Graph getData()
-
hasEntries
public boolean hasEntries()
-
copyInto
public void copyInto(ValidationContext other)
Update other with "this" state
-
getReportItems
public java.util.List<ReportItem> getReportItems()
Current state.
-
getShexReportItems
public java.util.List<ShexRecord> getShexReportItems()
Current state.
-
reportEntry
public void reportEntry(ReportItem item)
-
shexReport
public void shexReport(ShexRecord entry, Node focusNode, ShexStatus result, java.lang.String reason)
-
generateReport
public ShexReport generateReport()
-
-