public class InstantiatedPatternModel extends Object implements InstantiatedOPPLScript, PatternOPPLScript, HasPatternModel
| Constructor and Description |
|---|
InstantiatedPatternModel(PatternModel patternModel,
RuntimeExceptionHandler handler)
Creates an InstantiatedPatternModel instance starting from the input
PatternModel
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OPPLScriptVisitor visitor) |
<P> P |
accept(OPPLScriptVisitorEx<P> visitor) |
void |
addDependency(PatternOPPLScript script)
Adds a dependency from this Script to towards the input one
|
void |
addVariable(Variable<?> v)
Adds the input Variable to this InstantiatedPatternModel.
|
boolean |
dependsOn(PatternOPPLScript patternOPPLScript) |
Set<BindingNode> |
extractBindingNodes() |
List<org.semanticweb.owlapi.model.OWLAxiomChange> |
getActions() |
PatternConstraintSystem |
getConstraintSystem() |
org.semanticweb.owlapi.model.OWLObject |
getDefinitorialPortion(Collection<? extends BindingNode> bindingNodes,
RuntimeExceptionHandler reh) |
List<InputVariable<?>> |
getInputVariables() |
PatternModel |
getInstantiatedPattern() |
String |
getInstantiatedPatternLocalName() |
Set<org.semanticweb.owlapi.model.OWLObject> |
getInstantiations(Variable<?> variable) |
org.semanticweb.owlapi.model.IRI |
getIRI() |
String |
getName() |
org.semanticweb.owlapi.model.OWLOntology |
getOriginatingOntology() |
Set<org.semanticweb.owlapi.model.OWLObject> |
getOWLObjects(org.semanticweb.owlapi.model.OWLOntology ontology,
ErrorListener errorListener) |
PatternModel |
getPatternModel() |
OPPLQuery |
getQuery() |
String |
getRendering() |
RuntimeExceptionHandler |
getRuntimeExceptionHandler() |
String |
gettUnresolvedOPPLStatement() |
List<Variable<?>> |
getVariables() |
boolean |
hasScopedVariables() |
void |
instantiate(Variable<?> variable,
org.semanticweb.owlapi.model.OWLObject value)
Assigns the input value to the input variable, if the variable is already
in the InstantiatedPatternModel.
|
boolean |
isClassPattern() |
boolean |
isValid() |
boolean |
removeInstantiation(Variable<?> variable,
org.semanticweb.owlapi.model.OWLObject owlObject) |
String |
render() |
String |
render(ConstraintSystem constraintSystem) |
protected String |
render(org.semanticweb.owlapi.model.OWLObject owlObject) |
String |
render(org.semanticweb.owlapi.util.ShortFormProvider shortFormProvider) |
void |
setIRI(org.semanticweb.owlapi.model.IRI uri)
Sets the pattern URI
|
void |
setUnresolvedOPPLStatement(String unresolvedString) |
String |
toString() |
public InstantiatedPatternModel(PatternModel patternModel, RuntimeExceptionHandler handler)
patternModel - the Pattern on which the this instantiated pattern will be
built. Cannot be null.handler - handlerpublic Set<org.semanticweb.owlapi.model.OWLObject> getInstantiations(Variable<?> variable)
variable - variablepublic boolean removeInstantiation(Variable<?> variable, org.semanticweb.owlapi.model.OWLObject owlObject)
variable - variableowlObject - owlObjectpublic void instantiate(Variable<?> variable, org.semanticweb.owlapi.model.OWLObject value)
addVariable(Variable)instantiate in interface InstantiatedOPPLScriptvariable - variablevalue - valuepublic boolean isValid()
isValid in interface InstantiatedOPPLScriptpublic String getRendering()
getRendering in interface PatternOPPLScriptpublic String render(org.semanticweb.owlapi.util.ShortFormProvider shortFormProvider)
render in interface OPPLScriptprotected String render(org.semanticweb.owlapi.model.OWLObject owlObject)
public String getInstantiatedPatternLocalName()
public Set<BindingNode> extractBindingNodes()
public Set<org.semanticweb.owlapi.model.OWLObject> getOWLObjects(org.semanticweb.owlapi.model.OWLOntology ontology, ErrorListener errorListener)
getOWLObjects in interface PatternOPPLScriptontology - ontologyerrorListener - errorListenerpublic org.semanticweb.owlapi.model.OWLOntology getOriginatingOntology()
public void addVariable(Variable<?> v)
nulladdVariable in interface OPPLScriptv - vpublic String getName()
getName in interface PatternOPPLScriptpublic List<Variable<?>> getVariables()
getVariables in interface OPPLScriptpublic PatternConstraintSystem getConstraintSystem()
getConstraintSystem in interface OPPLScriptpublic PatternModel getInstantiatedPattern()
public void addDependency(PatternOPPLScript script)
PatternOPPLScriptaddDependency in interface PatternOPPLScriptscript - scriptpublic boolean dependsOn(PatternOPPLScript patternOPPLScript)
dependsOn in interface PatternOPPLScriptpatternOPPLScript - aPatternOPPLScriptpublic void setUnresolvedOPPLStatement(String unresolvedString)
unresolvedString - unresolvedStringpublic String gettUnresolvedOPPLStatement()
public org.semanticweb.owlapi.model.IRI getIRI()
getIRI in interface PatternOPPLScriptpublic void setIRI(org.semanticweb.owlapi.model.IRI uri)
PatternOPPLScriptsetIRI in interface PatternOPPLScripturi - anURIpublic String render(ConstraintSystem constraintSystem)
render in interface Renderablepublic String render()
render in interface OPPLScriptpublic PatternModel getPatternModel()
getPatternModel in interface HasPatternModelpublic boolean isClassPattern()
isClassPattern in interface PatternOPPLScriptpublic List<InputVariable<?>> getInputVariables()
getInputVariables in interface OPPLScriptpublic boolean hasScopedVariables()
hasScopedVariables in interface PatternOPPLScriptpublic void accept(OPPLScriptVisitor visitor)
accept in interface OPPLScriptpublic <P> P accept(OPPLScriptVisitorEx<P> visitor)
accept in interface OPPLScriptpublic List<org.semanticweb.owlapi.model.OWLAxiomChange> getActions()
getActions in interface OPPLScriptpublic OPPLQuery getQuery()
getQuery in interface OPPLScriptpublic org.semanticweb.owlapi.model.OWLObject getDefinitorialPortion(Collection<? extends BindingNode> bindingNodes, RuntimeExceptionHandler reh) throws PatternException
getDefinitorialPortion in interface PatternOPPLScriptbindingNodes - bindingNodesreh - runtimeExceptionHandlerPatternException - PatternExceptionpublic RuntimeExceptionHandler getRuntimeExceptionHandler()
Copyright © 2015 The University of Manchester. All Rights Reserved.