public class ConstraintSystem extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
VARIABLE_NAME_INVALID_CHARACTERS_REGEXP |
protected org.coode.oppl.ConstraintSystem.VariableSet |
variables |
| Constructor and Description |
|---|
ConstraintSystem(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
OPPLAbstractFactory opplFactory) |
ConstraintSystem(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner,
OPPLAbstractFactory opplAbstractFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLeaf(BindingNode bindingNode) |
boolean |
addLeaf(Variable<?> variable,
org.semanticweb.owlapi.model.OWLObject object) |
void |
clearVariables()
clear variables
|
<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) |
<O extends org.semanticweb.owlapi.model.OWLObject> |
createVariableWithVerifiedName(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() |
org.semanticweb.owlapi.model.OWLOntology |
getOntology() |
org.semanticweb.owlapi.model.OWLOntologyManager |
getOntologyManager() |
OPPLAbstractFactory |
getOPPLFactory() |
org.semanticweb.owlapi.reasoner.OWLReasoner |
getReasoner() |
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 |
isVariable(org.semanticweb.owlapi.model.OWLLiteral node) |
boolean |
isVariable(org.semanticweb.owlapi.model.OWLObject e) |
boolean |
isVariableIRI(org.semanticweb.owlapi.model.IRI iri) |
void |
removeBinding(BindingNode binding) |
void |
removeVariable(Variable<?> variable) |
String |
render(Variable<?> variable) |
void |
reset()
clear the leaves
|
void |
setLeaves(Collection<? extends BindingNode> newLeaves) |
void |
setReasoner(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner) |
public static final String VARIABLE_NAME_INVALID_CHARACTERS_REGEXP
protected final org.coode.oppl.ConstraintSystem.VariableSet variables
public ConstraintSystem(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
OPPLAbstractFactory opplFactory)
ontology - ontologyontologyManager - ontologyManageropplFactory - opplFactorypublic ConstraintSystem(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner,
OPPLAbstractFactory opplAbstractFactory)
ontology - ontologyontologyManager - ontologyManagerreasoner - reasoneropplAbstractFactory - opplAbstractFactorypublic Variable<?> getVariable(String name)
name - namepublic <O extends org.semanticweb.owlapi.model.OWLObject> InputVariable<O> createVariable(String name, VariableType<O> type, VariableScope<?> variableScope) throws OPPLException
O - variable typename - nametype - typevariableScope - variableScopeOPPLException - OPPLExceptionpublic <O extends org.semanticweb.owlapi.model.OWLObject> InputVariable<O> createVariableWithVerifiedName(String name, VariableType<O> type, VariableScope<?> variableScope) throws OPPLException
O - variable typename - nametype - typevariableScope - variableScopeOPPLException - OPPLExceptionpublic Set<Variable<?>> getAxiomVariables(org.semanticweb.owlapi.model.OWLAxiom axiom)
axiom - axiompublic boolean isVariableIRI(org.semanticweb.owlapi.model.IRI iri)
iri - iripublic Variable<?> getVariable(org.semanticweb.owlapi.model.IRI iri)
iri - iripublic boolean isVariable(org.semanticweb.owlapi.model.OWLObject e)
e - epublic void addLeaf(BindingNode bindingNode)
bindingNode - bindingNodepublic Set<org.semanticweb.owlapi.model.OWLObject> getVariableBindings(Variable<?> v, RuntimeExceptionHandler runtimeExceptionHandler)
v - vruntimeExceptionHandler - runtimeExceptionHandlerpublic boolean addLeaf(Variable<?> variable, org.semanticweb.owlapi.model.OWLObject object)
variable - variableobject - objectpublic Set<BindingNode> getLeaves()
public OPPLAbstractFactory getOPPLFactory()
public Set<InputVariable<?>> getInputVariables()
public void removeBinding(BindingNode binding)
binding - bindingpublic boolean isVariable(org.semanticweb.owlapi.model.OWLLiteral node)
node - nodepublic void setLeaves(Collection<? extends BindingNode> newLeaves)
newLeaves - newLeavespublic void setReasoner(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
reasoner - reasonerpublic org.semanticweb.owlapi.reasoner.OWLReasoner getReasoner()
org.semanticweb.owlapi.model.OWLRuntimeException - OWLRuntimeExceptionpublic <O extends org.semanticweb.owlapi.model.OWLObject> GeneratedVariable<O> createStringGeneratedVariable(String name, VariableType<O> type, OPPLFunction<String> value)
O - variable typename - nametype - typevalue - valuepublic org.semanticweb.owlapi.model.OWLOntology getOntology()
public Set<GeneratedVariable<?>> getGeneratedVariables()
public boolean isGenerated(Variable<?> v)
v - vpublic void reset()
public void removeVariable(Variable<?> variable)
variable - variablepublic GeneratedVariable<org.semanticweb.owlapi.model.OWLClassExpression> createIntersectionGeneratedVariable(String name, VariableType<?> type, Collection<? extends Aggregandum<Collection<? extends org.semanticweb.owlapi.model.OWLClassExpression>>> operands)
name - nametype - typeoperands - operandspublic GeneratedVariable<org.semanticweb.owlapi.model.OWLClassExpression> createUnionGeneratedVariable(String name, VariableType<?> type, Collection<? extends Aggregandum<Collection<? extends org.semanticweb.owlapi.model.OWLClassExpression>>> operands)
name - nametype - typeoperands - operandspublic <O extends org.semanticweb.owlapi.model.OWLObject> RegexpGeneratedVariable<? extends O> createRegexpGeneratedVariable(String name, VariableType<O> type, OPPLFunction<Pattern> patternGeneratingOPPLFunction)
O - expression typename - nametype - typepatternGeneratingOPPLFunction - patternGeneratingOPPLFunctionpublic <O extends org.semanticweb.owlapi.model.OWLObject> GeneratedVariable<O> createExpressionGeneratedVariable(String name, O expression)
O - expression typename - nameexpression - expressionpublic void importVariable(Variable<?> v)
v - vpublic void clearVariables()
public org.semanticweb.owlapi.model.OWLOntologyManager getOntologyManager()
Copyright © 2015 The University of Manchester. All Rights Reserved.