public class RestrictionImpl extends Object implements Restriction
| Constructor and Description |
|---|
RestrictionImpl() |
RestrictionImpl(com.hp.hpl.jena.graph.Node node) |
RestrictionImpl(PrefixSet prefixSet) |
RestrictionImpl(RdfTermType type) |
RestrictionImpl(RestrictionImpl other) |
| Modifier and Type | Method and Description |
|---|---|
RestrictionImpl |
clone() |
boolean |
equals(Object obj) |
com.hp.hpl.jena.graph.Node |
getNode()
Retrieve the node if it has been set.
|
static RdfTermType |
getNodeType(com.hp.hpl.jena.graph.Node node) |
EnumSet<RdfTermType> |
getRdfTermTypes()
The set of possible RDF term types this restriction may have.
|
Boolean |
getSatisfiability()
If the restriction is unconstrained, we return true
If it is inconsistent false,
and null otherwise
|
RdfTermType |
getType()
Deprecated.
|
PrefixSet |
getUriPrefixes()
Retrieve the set of possible URI prefixes.
|
boolean |
hasConstant() |
int |
hashCode() |
boolean |
hasPrefix() |
boolean |
isConsistent() |
boolean |
isUnsatisfiable()
Test wether the restriction is unsatisfiable
|
boolean |
stateNode(com.hp.hpl.jena.graph.Node newNode)
Stating a node implies stating the type
|
void |
statePattern(com.karneim.util.collection.regex.PatternPro pattern)
State a URI regex pattern.
|
boolean |
stateRestriction(Restriction that) |
boolean |
stateType(RdfTermType newType)
State whether the resource is a URI or a Literal
|
boolean |
stateUriPrefixes(PrefixSet prefixes)
States a set of valid prefixes.
|
boolean |
subsumesOrIsEqual(RestrictionImpl other)
Return true if 'this' is equal to or less restrictive than other
|
String |
toString() |
public RestrictionImpl()
public RestrictionImpl(RdfTermType type)
public RestrictionImpl(PrefixSet prefixSet)
public RestrictionImpl(com.hp.hpl.jena.graph.Node node)
public RestrictionImpl(RestrictionImpl other)
public boolean subsumesOrIsEqual(RestrictionImpl other)
other - public RestrictionImpl clone()
clone in interface Restrictionclone in class Objectpublic boolean hasConstant()
hasConstant in interface Restrictionpublic boolean hasPrefix()
@Deprecated public RdfTermType getType()
public EnumSet<RdfTermType> getRdfTermTypes()
RestrictiongetRdfTermTypes in interface Restrictionpublic com.hp.hpl.jena.graph.Node getNode()
RestrictiongetNode in interface Restrictionpublic PrefixSet getUriPrefixes()
RestrictiongetUriPrefixes in interface Restrictionpublic boolean stateRestriction(Restriction that)
stateRestriction in interface Restrictionpublic boolean stateType(RdfTermType newType)
RestrictionstateType in interface Restrictionpublic static RdfTermType getNodeType(com.hp.hpl.jena.graph.Node node)
public boolean stateNode(com.hp.hpl.jena.graph.Node newNode)
RestrictionstateNode in interface Restrictionpublic boolean stateUriPrefixes(PrefixSet prefixes)
RestrictionstateUriPrefixes in interface Restrictionpublic void statePattern(com.karneim.util.collection.regex.PatternPro pattern)
RestrictionstatePattern in interface Restrictionpublic Boolean getSatisfiability()
public boolean isConsistent()
public boolean isUnsatisfiable()
RestrictionisUnsatisfiable in interface RestrictionCopyright © 2013. All Rights Reserved.