public class PatternModelFactory extends Object implements AbstractPatternModelFactory
| Constructor and Description |
|---|
PatternModelFactory(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager) |
PatternModelFactory(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner) |
| Modifier and Type | Method and Description |
|---|---|
PatternConstraintSystem |
createConstraintSystem() |
InstantiatedPatternModel |
createInstantiatedPatternModel(PatternModel patternModel,
RuntimeExceptionHandler handler) |
PatternModel |
createPatternModel(OPPLScript opplScript)
Builds a PatternModel instance starting from the input opplScript
|
PatternModel |
createPatternModel(String name,
List<Variable<?>> variables,
List<org.semanticweb.owlapi.model.OWLAxiomChange> actions,
Variable<?> returnClause,
String rendering,
ConstraintSystem constraintSystem)
Creates a PatternModel using the input (name, variables, actions, return
value, rendering, and constraint system) returnClause can be
null
variables and actions must be non empty Lists |
org.semanticweb.owlapi.model.OWLOntology |
getOntology() |
org.semanticweb.owlapi.model.OWLOntologyManager |
getOntologyManager() |
OPPLAbstractFactory |
getOPPLFactory() |
OWLEntityRenderer |
getOWLEntityRenderer(ConstraintSystem cs) |
PatternExtractor |
getPatternExtractor(ErrorListener errorListener)
Retrieves a PatternExtractor for extracting patterns from annotations.
|
PatternExtractor |
getPatternExtractor(Set<org.semanticweb.owlapi.model.OWLAnnotation> visitedAnnotations,
ErrorListener errorListener)
Retrieves a PatternExtractor that takes into account already visited
patterns.
|
org.semanticweb.owlapi.reasoner.OWLReasoner |
getReasoner() |
ManchesterSyntaxRenderer |
getRenderer(PatternConstraintSystem patternConstraintSystem) |
public PatternModelFactory(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
ontology - ontologyontologyManager - ontologyManagerreasoner - reasonerpublic PatternModelFactory(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager)
ontology - ontologyontologyManager - ontologyManagerpublic PatternModel createPatternModel(OPPLScript opplScript) throws UnsuitableOPPLScriptException
AbstractPatternModelFactorycreatePatternModel in interface AbstractPatternModelFactoryopplScript - opplScriptUnsuitableOPPLScriptException - when the input OPPLScript is not suitable for creating a
pattern model out of itpublic InstantiatedPatternModel createInstantiatedPatternModel(PatternModel patternModel, RuntimeExceptionHandler handler)
createInstantiatedPatternModel in interface AbstractPatternModelFactorypatternModel - patternModelhandler - handlerpublic PatternExtractor getPatternExtractor(ErrorListener errorListener)
AbstractPatternModelFactorygetPatternExtractor in interface AbstractPatternModelFactoryerrorListener - The error listener cannot be null.public PatternExtractor getPatternExtractor(Set<org.semanticweb.owlapi.model.OWLAnnotation> visitedAnnotations, ErrorListener errorListener)
AbstractPatternModelFactorygetPatternExtractor in interface AbstractPatternModelFactoryvisitedAnnotations - The annotations containing already visited patterns as their
values. Cannot be null.errorListener - The error listener. Cannot be null.public PatternConstraintSystem createConstraintSystem()
createConstraintSystem in interface AbstractPatternModelFactorypublic PatternModel createPatternModel(String name, List<Variable<?>> variables, List<org.semanticweb.owlapi.model.OWLAxiomChange> actions, Variable<?> returnClause, String rendering, ConstraintSystem constraintSystem) throws EmptyVariableListException, EmptyActionListException
AbstractPatternModelFactorynull
variables and actions must be non empty ListscreatePatternModel in interface AbstractPatternModelFactoryname - namevariables - variablesactions - actionsreturnClause - returnClauserendering - renderingconstraintSystem - constraintSystemEmptyVariableListException - EmptyVariableListExceptionEmptyActionListException - EmptyActionListExceptionpublic org.semanticweb.owlapi.model.OWLOntologyManager getOntologyManager()
public org.semanticweb.owlapi.model.OWLOntology getOntology()
public ManchesterSyntaxRenderer getRenderer(PatternConstraintSystem patternConstraintSystem)
getRenderer in interface AbstractPatternModelFactorypatternConstraintSystem - patternConstraintSystempublic OWLEntityRenderer getOWLEntityRenderer(ConstraintSystem cs)
cs - cspublic OPPLAbstractFactory getOPPLFactory()
getOPPLFactory in interface AbstractPatternModelFactorypublic org.semanticweb.owlapi.reasoner.OWLReasoner getReasoner()
Copyright © 2015 The University of Manchester. All Rights Reserved.