Method Summary
All Methods Instance Methods Abstract Methods
org.apache.jena.graph.Node
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.
boolean
State a URI regex pattern.
boolean
Test wether the restriction is unsatisfiable
boolean
stateNode (org.apache.jena.graph.Node newNode)
Stating a node implies stating the type
boolean
boolean
State whether the resource is a URI or a Literal
boolean
States a set of valid prefixes.
Method Details
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 -
isUnsatisfiable
boolean isUnsatisfiable ()
Test wether the restriction is unsatisfiable
Returns:
hasConstant
boolean hasConstant ()
State a URI regex pattern.
To be done.
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
Retrieve the set of possible URI prefixes.
Implies Type.URI
Returns: