Package org.aksw.jenax.constraint.api
Interface RdfTermConstraintOld
- All Superinterfaces:
Cloneable
-
Method Summary
Modifier and TypeMethodDescriptionclone()org.apache.jena.graph.NodegetNode()Retrieve the node if it has been set.The set of possible RDF term types this restriction may have.Retrieve the set of possible URI prefixes.booleanState a URI regex pattern.booleanReturn true when the constraint is known to always yield falsebooleanbooleanstateNode(org.apache.jena.graph.Node newNode) Stating a node implies stating the typebooleanstateType(RdfTermType newType) State whether the resource is a URI or a LiteralbooleanstateUriPrefixes(PrefixSet prefixes) States a set of valid prefixes.
-
Method Details
-
stateConstraint
-
stateType
State whether the resource is a URI or a Literal- Parameters:
type-- Returns:
-
stateNode
boolean stateNode(org.apache.jena.graph.Node newNode) Stating a node implies stating the type- Parameters:
newNode-- Returns:
-
stateUriPrefixes
States a set of valid prefixes. Note: Stating an empty set implies that no URI can be used as a value. If you do not want to constrain the prefixes, don't call this method. If the set of prefixes becomes empty after stating more prefixes, the constraint becomes inconsistent.- Parameters:
prefixes-
-
isContradiction
boolean isContradiction()Return true when the constraint is known to always yield false- Returns:
-
clone
RdfTermConstraintOld clone() -
hasConstant
boolean hasConstant()State a URI regex pattern. To be done. -
getRdfTermTypes
EnumSet<RdfTermType> getRdfTermTypes()The set of possible RDF term types this restriction may have.- Returns:
-
getNode
org.apache.jena.graph.Node getNode()Retrieve the node if it has been set. Implies an RDF term type consistent with the node value.s- Returns:
- The set node. Null if not set.
-
getUriPrefixes
PrefixSet getUriPrefixes()Retrieve the set of possible URI prefixes. Implies Type.URI- Returns:
-