Package n10s.validation
Class SHACLValidator
java.lang.Object
n10s.validation.SHACLValidator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSHACLValidator(org.neo4j.graphdb.GraphDatabaseService db, org.neo4j.graphdb.Transaction transaction, org.neo4j.logging.Log l) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueriesForTrigger(ValidatorConfig vc, ArrayList<String> triggers, String queryId, String whereClause, int constraintType, String[] args) voidaddQueriesForTriggerWithDynamicProps(ValidatorConfig vc, ArrayList<String> triggers, String queryId, String whereClause, int constraintType, List<String> propsOrRels, String[] args) protected ValidatorConfigcompileValidations(Iterator<Map<String, Object>> constraints) parseConstraints(InputStream is, org.eclipse.rdf4j.rio.RDFFormat format, Map<String, Object> props) protected voidprocessConstraint(Map<String, Object> theConstraint, ValidatorConfig vc)
-
Field Details
-
SHACL_COUNT_CONSTRAINT_COMPONENT
- See Also:
-
SHACL_VALUE_RANGE_CONSTRAINT_COMPONENT
- See Also:
-
SHACL_LENGTH_CONSTRAINT_COMPONENT
- See Also:
-
-
Constructor Details
-
SHACLValidator
public SHACLValidator(org.neo4j.graphdb.GraphDatabaseService db, org.neo4j.graphdb.Transaction transaction, org.neo4j.logging.Log l)
-
-
Method Details
-
compileValidations
protected ValidatorConfig compileValidations(Iterator<Map<String, Object>> constraints) throws InvalidNamespacePrefixDefinitionInDB, UriUtils.UriNamespaceHasNoAssociatedPrefix -
processConstraint
protected void processConstraint(Map<String, Object> theConstraint, ValidatorConfig vc) throws InvalidNamespacePrefixDefinitionInDB, UriUtils.UriNamespaceHasNoAssociatedPrefix -
addQueriesForTrigger
public void addQueriesForTrigger(ValidatorConfig vc, ArrayList<String> triggers, String queryId, String whereClause, int constraintType, String[] args) throws InvalidNamespacePrefixDefinitionInDB, UriUtils.UriNamespaceHasNoAssociatedPrefix -
addQueriesForTriggerWithDynamicProps
public void addQueriesForTriggerWithDynamicProps(ValidatorConfig vc, ArrayList<String> triggers, String queryId, String whereClause, int constraintType, List<String> propsOrRels, String[] args) throws InvalidNamespacePrefixDefinitionInDB, UriUtils.UriNamespaceHasNoAssociatedPrefix -
parseConstraints
protected Iterator<Map<String,Object>> parseConstraints(InputStream is, org.eclipse.rdf4j.rio.RDFFormat format, Map<String, Object> props) throws IOException- Throws:
IOException
-