|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.clarkparsia.stardog.icv.ConstraintFactory
public final class ConstraintFactory
Factory to simplify creating constraint objects.
| Method Summary | |
|---|---|
static Constraint |
constraint(Collection<Statement> theStatements)
Create an integrity constraint from a collection of statements. |
static Constraint |
constraint(Expression theExpression)
Create an integrity constraint from an OWL Axiom. |
static Constraint |
constraint(Graph theGraph)
Create an integrity constraint from a Graph. |
static Constraint |
constraint(String theQuery)
integrity constraint from the SPARQL query. |
static Set<Constraint> |
constraints(Collection<Statement> theStatements)
Create a set of integrity constraints from a collection of statements. |
static Set<Constraint> |
constraints(Graph theGraph)
Create a set of integrity constraints from a Graph. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Constraint constraint(Expression theExpression)
integrity constraint from an OWL Axiom.
theExpression - the constraint axiom
public static Constraint constraint(Graph theGraph)
integrity constraint from a Graph. The contents of the graph
must be a single OWL axiom.
theGraph - the axiom graph.
IllegalArgumentException - if the graph does not contain a single owl axiom, or contains more than one.public static Constraint constraint(Collection<Statement> theStatements)
integrity constraint from a collection of statements. The statements must be
equal to a single OWL axiom.
theStatements - the axiom as statements
IllegalArgumentException - if the graph of the statements does not contain a single owl axiom, or contains more
than one.public static Set<Constraint> constraints(Graph theGraph)
integrity constraints from a Graph.
public static Set<Constraint> constraints(Collection<Statement> theStatements)
integrity constraints from a collection of statements.
public static Constraint constraint(String theQuery)
throws StardogException
integrity constraint from the SPARQL query. The query should return a result when there is
a violation and can only be a select query.
theQuery - the IC query
StardogException - if the query was malformed or is not a select query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||