Package com.complexible.stardog.icv
Class ConstraintFactory
java.lang.Object
com.complexible.stardog.icv.ConstraintFactory
Factory to simplify creating constraint objects.
- Since:
- 0.7
- Version:
- 6.0
- Author:
- Michael Grove
-
Method Summary
Modifier and TypeMethodDescriptionstatic Constraintconstraint(Iterable<Statement> theStatements) Create anintegrity constraintfrom a collection of statements.static Set<Constraint> constraints(Iterable<Statement> theGraph) Create a set ofintegrity constraintsfrom a collection of statements.static Set<Constraint> constraints(Iterator<Statement> theGraph) Create a set ofintegrity constraintsfrom a collection of statements.
-
Method Details
-
constraint
Create anintegrity constraintfrom a collection of statements. The statements must be equal to a single OWL axiom.- Parameters:
theStatements- the axiom as statements- Returns:
- the new IC
- Throws:
IllegalArgumentException- if the graph of the statements does not contain a single owl axiom, or contains more than one.
-
constraints
Create a set ofintegrity constraintsfrom a collection of statements. -
constraints
Create a set ofintegrity constraintsfrom a collection of statements.
-