public class PatternConstraintSystem extends ConstraintSystem
| Modifier and Type | Field and Description |
|---|---|
static String |
THIS_CLASS_VARIABLE_CONSTANT_SYMBOL
constant symbol for this class
|
VARIABLE_NAME_INVALID_CHARACTERS_REGEXP, variables| Constructor and Description |
|---|
PatternConstraintSystem(ConstraintSystem cs,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
AbstractPatternModelFactory f) |
PatternConstraintSystem(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner,
AbstractPatternModelFactory f) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLeaf(BindingNode bindingNode) |
boolean |
addLeaf(Variable<?> variable,
org.semanticweb.owlapi.model.OWLObject object) |
void |
clearVariables() |
<O extends org.semanticweb.owlapi.model.OWLObject> |
createExpressionGeneratedVariable(String name,
O expression) |
GeneratedVariable<org.semanticweb.owlapi.model.OWLClassExpression> |
createIntersectionGeneratedVariable(String name,
VariableType<?> type,
Collection<? extends Aggregandum<Collection<? extends org.semanticweb.owlapi.model.OWLClassExpression>>> operands) |
<O extends org.semanticweb.owlapi.model.OWLObject> |
createRegexpGeneratedVariable(String name,
VariableType<O> type,
OPPLFunction<Pattern> patternGeneratingOPPLFunction) |
<O extends org.semanticweb.owlapi.model.OWLObject> |
createStringGeneratedVariable(String name,
VariableType<O> type,
OPPLFunction<String> value) |
GeneratedVariable<org.semanticweb.owlapi.model.OWLClassExpression> |
createUnionGeneratedVariable(String name,
VariableType<?> type,
Collection<? extends Aggregandum<Collection<? extends org.semanticweb.owlapi.model.OWLClassExpression>>> operands) |
<O extends org.semanticweb.owlapi.model.OWLObject> |
createVariable(String name,
VariableType<O> type,
VariableScope<?> variableScope) |
Set<Variable<?>> |
getAxiomVariables(org.semanticweb.owlapi.model.OWLAxiom axiom) |
Set<GeneratedVariable<?>> |
getGeneratedVariables() |
Set<InputVariable<?>> |
getInputVariables() |
Set<BindingNode> |
getLeaves() |
OPPLAbstractFactory |
getOPPLFactory() |
AbstractPatternModelFactory |
getPatternModelFactory() |
Variable<?> |
getThisClassVariable() |
Variable<?> |
getVariable(org.semanticweb.owlapi.model.IRI iri) |
Variable<?> |
getVariable(String name) |
Set<org.semanticweb.owlapi.model.OWLObject> |
getVariableBindings(Variable<?> v,
RuntimeExceptionHandler runtimeExceptionHandler) |
Set<Variable<?>> |
getVariables() |
void |
importVariable(Variable<?> v) |
boolean |
isGenerated(Variable<?> v) |
boolean |
isThisClassVariable(Variable<?> variable) |
boolean |
isVariable(org.semanticweb.owlapi.model.OWLLiteral node) |
boolean |
isVariable(org.semanticweb.owlapi.model.OWLObject desc) |
boolean |
isVariableIRI(org.semanticweb.owlapi.model.IRI uri) |
void |
removeBinding(BindingNode binding) |
void |
removeVariable(Variable<?> variable) |
String |
render(Variable<?> variable) |
void |
reset() |
String |
resolvePattern(String patternName,
Set<String> visitedPatterns,
List<PatternOPPLScript> dependencies,
ErrorListener errorListener,
List<Object>... args) |
String |
resolvePatternConstants(String s) |
InstantiatedPatternModel |
resolvePatternInstantiation(String patternName,
Set<String> visitedPatterns,
List<PatternOPPLScript> dependencies,
ErrorListener errorListener,
List<String>... args) |
void |
setLeaves(Collection<? extends BindingNode> newLeaves) |
createVariableWithVerifiedName, getOntology, getOntologyManager, getReasoner, setReasonerpublic static final String THIS_CLASS_VARIABLE_CONSTANT_SYMBOL
public PatternConstraintSystem(ConstraintSystem cs, org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, AbstractPatternModelFactory f)
cs - csontologyManager - ontologyManagerf - fpublic PatternConstraintSystem(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner,
AbstractPatternModelFactory f)
ontology - ontologyontologyManager - ontologyManagerreasoner - reasonerf - fpublic <O extends org.semanticweb.owlapi.model.OWLObject> InputVariable<O> createVariable(String name, VariableType<O> type, VariableScope<?> variableScope) throws OPPLException
createVariable in class ConstraintSystemOPPLExceptionpublic Variable<?> getThisClassVariable()
public Variable<?> getVariable(String name)
getVariable in class ConstraintSystempublic Variable<?> getVariable(org.semanticweb.owlapi.model.IRI iri)
getVariable in class ConstraintSystempublic boolean isVariableIRI(org.semanticweb.owlapi.model.IRI uri)
isVariableIRI in class ConstraintSystempublic String resolvePatternConstants(String s)
s - spublic boolean isThisClassVariable(Variable<?> variable)
variable - variablepublic Set<Variable<?>> getVariables()
getVariables in class ConstraintSystempublic String resolvePattern(String patternName, Set<String> visitedPatterns, List<PatternOPPLScript> dependencies, ErrorListener errorListener, List<Object>... args) throws PatternException
patternName - patternNamevisitedPatterns - visitedPatternsdependencies - dependencieserrorListener - errorListenerargs - argsPatternException - PatternExceptionpublic InstantiatedPatternModel resolvePatternInstantiation(String patternName, Set<String> visitedPatterns, List<PatternOPPLScript> dependencies, ErrorListener errorListener, List<String>... args) throws PatternException
patternName - patternNamevisitedPatterns - visitedPatternsdependencies - dependencieserrorListener - errorListenerargs - argsPatternException - PatternExceptionpublic <O extends org.semanticweb.owlapi.model.OWLObject> GeneratedVariable<O> createStringGeneratedVariable(String name, VariableType<O> type, OPPLFunction<String> value)
createStringGeneratedVariable in class ConstraintSystempublic void removeVariable(Variable<?> variable)
removeVariable in class ConstraintSystempublic GeneratedVariable<org.semanticweb.owlapi.model.OWLClassExpression> createIntersectionGeneratedVariable(String name, VariableType<?> type, Collection<? extends Aggregandum<Collection<? extends org.semanticweb.owlapi.model.OWLClassExpression>>> operands)
createIntersectionGeneratedVariable in class ConstraintSystempublic GeneratedVariable<org.semanticweb.owlapi.model.OWLClassExpression> createUnionGeneratedVariable(String name, VariableType<?> type, Collection<? extends Aggregandum<Collection<? extends org.semanticweb.owlapi.model.OWLClassExpression>>> operands)
createUnionGeneratedVariable in class ConstraintSystempublic Set<InputVariable<?>> getInputVariables()
getInputVariables in class ConstraintSystempublic String render(Variable<?> variable)
render in class ConstraintSystempublic <O extends org.semanticweb.owlapi.model.OWLObject> RegexpGeneratedVariable<? extends O> createRegexpGeneratedVariable(String name, VariableType<O> type, OPPLFunction<Pattern> patternGeneratingOPPLFunction)
createRegexpGeneratedVariable in class ConstraintSystempublic void importVariable(Variable<?> v)
importVariable in class ConstraintSystempublic void clearVariables()
clearVariables in class ConstraintSystempublic AbstractPatternModelFactory getPatternModelFactory()
public Set<Variable<?>> getAxiomVariables(org.semanticweb.owlapi.model.OWLAxiom axiom)
getAxiomVariables in class ConstraintSystempublic boolean isVariable(org.semanticweb.owlapi.model.OWLObject desc)
isVariable in class ConstraintSystempublic void addLeaf(BindingNode bindingNode)
addLeaf in class ConstraintSystempublic Set<org.semanticweb.owlapi.model.OWLObject> getVariableBindings(Variable<?> v, RuntimeExceptionHandler runtimeExceptionHandler)
getVariableBindings in class ConstraintSystempublic boolean addLeaf(Variable<?> variable, org.semanticweb.owlapi.model.OWLObject object)
addLeaf in class ConstraintSystempublic Set<BindingNode> getLeaves()
getLeaves in class ConstraintSystempublic OPPLAbstractFactory getOPPLFactory()
getOPPLFactory in class ConstraintSystempublic void removeBinding(BindingNode binding)
removeBinding in class ConstraintSystempublic boolean isVariable(org.semanticweb.owlapi.model.OWLLiteral node)
isVariable in class ConstraintSystempublic void setLeaves(Collection<? extends BindingNode> newLeaves)
setLeaves in class ConstraintSystempublic Set<GeneratedVariable<?>> getGeneratedVariables()
getGeneratedVariables in class ConstraintSystempublic boolean isGenerated(Variable<?> v)
isGenerated in class ConstraintSystempublic void reset()
reset in class ConstraintSystempublic <O extends org.semanticweb.owlapi.model.OWLObject> GeneratedVariable<O> createExpressionGeneratedVariable(String name, O expression)
createExpressionGeneratedVariable in class ConstraintSystemCopyright © 2015 The University of Manchester. All Rights Reserved.