Package com.complexible.stardog.icv
Class ConstraintFactory
- java.lang.Object
-
- com.complexible.stardog.icv.ConstraintFactory
-
public final class ConstraintFactory extends java.lang.ObjectFactory to simplify creating constraint objects.
- Since:
- 0.7
- Version:
- 6.0
- Author:
- Michael Grove
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Constraintconstraint(java.lang.Iterable<Statement> theStatements)Create anintegrity constraintfrom a collection of statements.static java.util.Set<Constraint>constraints(java.lang.Iterable<Statement> theGraph)Create a set ofintegrity constraintsfrom a collection of statements.static java.util.Set<Constraint>constraints(java.util.Iterator<Statement> theGraph)Create a set ofintegrity constraintsfrom a collection of statements.
-
-
-
Method Detail
-
constraint
public static Constraint constraint(java.lang.Iterable<Statement> theStatements)
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:
java.lang.IllegalArgumentException- if the graph of the statements does not contain a single owl axiom, or contains more than one.
-
constraints
public static java.util.Set<Constraint> constraints(java.lang.Iterable<Statement> theGraph)
Create a set ofintegrity constraintsfrom a collection of statements.
-
constraints
public static java.util.Set<Constraint> constraints(java.util.Iterator<Statement> theGraph)
Create a set ofintegrity constraintsfrom a collection of statements.
-
-