public class PatternModel extends Object implements OPPLScript, PatternOPPLScript
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE |
protected org.semanticweb.owlapi.model.OWLOntologyManager |
ontologyManager |
| Constructor and Description |
|---|
PatternModel(OPPLScript opplScript,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
AbstractPatternModelFactory f) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OPPLScriptVisitor visitor) |
<P> P |
accept(OPPLScriptVisitorEx<P> visitor) |
void |
addChangeListener(PatternModelChangeListener l) |
void |
addDependency(PatternOPPLScript dependency)
Adds a dependency from this Script to towards the input one
|
void |
addVariable(Variable<?> variable)
Deprecated.
|
boolean |
dependsOn(PatternOPPLScript patternModel) |
boolean |
equals(Object obj) |
List<org.semanticweb.owlapi.model.OWLAxiomChange> |
getActions() |
PatternConstraintSystem |
getConstraintSystem() |
org.semanticweb.owlapi.model.OWLObject |
getDefinitorialPortion(Collection<? extends BindingNode> bindingNodes,
RuntimeExceptionHandler runtimeExceptionHandler) |
Set<PatternOPPLScript> |
getDependingPatterns(Set<org.semanticweb.owlapi.model.OWLOntology> ontologies,
ErrorListener errorListener) |
List<InputVariable<?>> |
getInputVariables() |
Set<InstantiatedPatternModel> |
getInstantiations(ErrorListener errorListener) |
org.semanticweb.owlapi.model.IRI |
getIRI() |
String |
getName() |
OPPLScript |
getOpplStatement() |
org.semanticweb.owlapi.model.OWLOntology |
getOriginatingOntology() |
Set<org.semanticweb.owlapi.model.OWLObject> |
getOWLObjects(org.semanticweb.owlapi.model.OWLOntology ontology,
ErrorListener errorListener) |
org.semanticweb.owlapi.model.OWLOntologyManager |
getOWLOntologyManager() |
String |
getPatternLocalName() |
AbstractPatternModelFactory |
getPatternModelFactory() |
OPPLQuery |
getQuery() |
String |
getRendering() |
Variable<?> |
getReturnVariable() |
static OPPLScriptValidator |
getScriptValidator() |
List<Variable<?>> |
getVariables() |
int |
hashCode() |
boolean |
hasScopedVariables() |
boolean |
isClassPattern() |
boolean |
isDependent() |
boolean |
isFunctional() |
boolean |
isValid() |
void |
removeChangeListener(PatternModelChangeListener l) |
String |
render() |
String |
render(ConstraintSystem constraintSystem) |
String |
render(org.semanticweb.owlapi.util.ShortFormProvider shortFormProvider) |
void |
setIRI(org.semanticweb.owlapi.model.IRI iri)
Sets the pattern URI
|
void |
setRendering(String rendering) |
void |
setReturnVariable(Variable<?> returnVariable)
Sets the return variable
|
String |
toString() |
protected final org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager
public static final String NAMESPACE
public PatternModel(OPPLScript opplScript, org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, AbstractPatternModelFactory f) throws UnsuitableOPPLScriptException
opplScript - opplScriptontologyManager - ontologyManagerf - fUnsuitableOPPLScriptException - UnsuitableOPPLScriptExceptionpublic AbstractPatternModelFactory getPatternModelFactory()
public org.semanticweb.owlapi.model.OWLOntologyManager getOWLOntologyManager()
public List<Variable<?>> getVariables()
getVariables in interface OPPLScriptpublic String render()
render in interface OPPLScriptpublic String render(ConstraintSystem constraintSystem)
render in interface Renderablepublic String render(org.semanticweb.owlapi.util.ShortFormProvider shortFormProvider)
render in interface OPPLScriptpublic String getRendering()
getRendering in interface PatternOPPLScriptpublic void setRendering(String rendering)
rendering - the rendering to setpublic boolean isValid()
public void addChangeListener(PatternModelChangeListener l)
l - lpublic void removeChangeListener(PatternModelChangeListener l)
l - lpublic org.semanticweb.owlapi.model.IRI getIRI()
getIRI in interface PatternOPPLScriptpublic void setIRI(org.semanticweb.owlapi.model.IRI iri)
PatternOPPLScriptsetIRI in interface PatternOPPLScriptiri - anURIpublic OPPLScript getOpplStatement()
public String getPatternLocalName()
public PatternConstraintSystem getConstraintSystem()
getConstraintSystem in interface OPPLScriptpublic org.semanticweb.owlapi.model.OWLObject getDefinitorialPortion(Collection<? extends BindingNode> bindingNodes, RuntimeExceptionHandler runtimeExceptionHandler) throws PatternException
getDefinitorialPortion in interface PatternOPPLScriptbindingNodes - bindingNodesruntimeExceptionHandler - runtimeExceptionHandlerPatternException - PatternExceptionpublic boolean dependsOn(PatternOPPLScript patternModel)
dependsOn in interface PatternOPPLScriptpatternModel - patternModelpublic boolean isDependent()
public Set<PatternOPPLScript> getDependingPatterns(Set<org.semanticweb.owlapi.model.OWLOntology> ontologies, ErrorListener errorListener)
ontologies - ontologieserrorListener - errorListenerpublic Set<InstantiatedPatternModel> getInstantiations(ErrorListener errorListener)
errorListener - errorListenerpublic 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 setReturnVariable(Variable<?> returnVariable)
returnVariable - returnVariablepublic Variable<?> getReturnVariable()
public boolean isFunctional()
public boolean isClassPattern()
isClassPattern in interface PatternOPPLScriptpublic String getName()
getName in interface PatternOPPLScriptpublic void addDependency(PatternOPPLScript dependency)
PatternOPPLScriptaddDependency in interface PatternOPPLScriptdependency - scriptpublic 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 OPPLScript@Deprecated public void addVariable(Variable<?> variable)
addVariable in interface OPPLScriptpublic static final OPPLScriptValidator getScriptValidator()
Copyright © 2015 The University of Manchester. All Rights Reserved.