Package org.swrlapi.factory
Class SWRLAPIInternalFactory
- java.lang.Object
-
- org.swrlapi.factory.SWRLAPIInternalFactory
-
public class SWRLAPIInternalFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SWRLAPIInternalFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NonNull Literal
createLiteral(org.semanticweb.owlapi.model.OWLLiteral owlLiteral)
static @NonNull LiteralFactory
createLiteralFactory()
static @NonNull OWL2RLModel
createOWL2RLModel(@NonNull OWL2RLEngine owl2RLEngine)
static @NonNull OWL2RLPersistenceLayer
createOWL2RLPersistenceLayer(@NonNull org.semanticweb.owlapi.model.OWLOntology ontology)
static @NonNull OWLDatatypeFactory
createOWLDatatypeFactory()
static @NonNull OWLLiteralFactory
createOWLLiteralFactory()
static @NonNull SQWRLQuery
createSQWRLQuery(@NonNull java.lang.String queryName, @NonNull java.util.List<@NonNull org.semanticweb.owlapi.model.SWRLAtom> bodyAtoms, @NonNull java.util.List<@NonNull org.semanticweb.owlapi.model.SWRLAtom> headAtoms, boolean active, @NonNull java.lang.String comment, @NonNull LiteralFactory literalFactory, @NonNull IRIResolver iriResolver)
static @NonNull SQWRLQueryRenderer
createSQWRLQueryRenderer(@NonNull org.semanticweb.owlapi.model.OWLOntology ontology, @NonNull IRIResolver iriResolver)
static @NonNull SQWRLResultGenerator
createSQWRLResultGenerator(@NonNull IRIResolver iriResolver)
static @NonNull SQWRLResultManager
createSQWRLResultManager(@NonNull IRIResolver iriResolver)
static @NonNull SQWRLResultValueFactory
createSQWRLResultValueFactory(@NonNull IRIResolver iriResolver)
static @NonNull SWRLAPIBuiltInAtom
createSWRLAPIBuiltInAtom(@NonNull java.lang.String ruleName, @NonNull org.semanticweb.owlapi.model.IRI builtInIRI, @NonNull java.lang.String builtInPrefixedName, @NonNull java.util.List<@NonNull SWRLBuiltInArgument> arguments)
static @NonNull SWRLAPIOWLOntology
createSWRLAPIOntology(@NonNull org.semanticweb.owlapi.model.OWLOntology ontology)
Create aSWRLAPIOWLOntology
from an OWLAPI-basedOWLOntology
.static @NonNull SWRLAPIOWLOntology
createSWRLAPIOntology(@NonNull org.semanticweb.owlapi.model.OWLOntology ontology, @NonNull IRIResolver iriResolver)
Create aSWRLAPIOWLOntology
from an OWLAPI-basedOWLOntology
.static @NonNull SWRLAPIOWLDataFactory
createSWRLAPIOWLDataFactory(@NonNull IRIResolver iriResolver)
static @NonNull SWRLAPIRule
createSWRLAPIRule(@NonNull java.lang.String ruleName, @NonNull java.util.List<? extends org.semanticweb.owlapi.model.SWRLAtom> bodyAtoms, @NonNull java.util.List<? extends org.semanticweb.owlapi.model.SWRLAtom> headAtoms, @NonNull java.lang.String comment, boolean isActive)
static @NonNull SWRLAutoCompleter
createSWRLAutoCompleter(@NonNull SWRLAPIOWLOntology swrlapiowlOntology)
static @NonNull SWRLBridge
createSWRLBridge(@NonNull SWRLAPIOWLOntology swrlapiOWLOntology, @NonNull OWL2RLPersistenceLayer owl2RLPersistenceLayer)
static @NonNull SWRLBuiltInArgumentFactory
createSWRLBuiltInArgumentFactory(@NonNull IRIResolver iriResolver)
static @NonNull SWRLBuiltInLibraryManager
createSWRLBuiltInLibraryManager()
static @NonNull SWRLRuleEngineController
createSWRLRuleEngineController(@NonNull SWRLRuleEngineModel swrlRuleEngineModel)
static @NonNull SWRLRuleEngineManager
createSWRLRuleEngineManager()
static @NonNull SWRLRuleRenderer
createSWRLRuleRenderer(@NonNull org.semanticweb.owlapi.model.OWLOntology ontology, @NonNull IRIResolver iriResolver)
static @NonNull SWRLRulesAndSQWRLQueriesTableModel
createSWRLRulesAndSQWRLQueriesTableModel(@NonNull SWRLRuleEngine swrlRuleEngine)
static @NonNull javax.swing.Icon
getOWL2RLReasonerIcon()
static @NonNull javax.swing.Icon
getSQWRLIcon()
static @NonNull SWRLRuleAndQueryEngineFactory
getSWRLRuleAndQueryEngineFactory()
-
-
-
Method Detail
-
getSWRLRuleAndQueryEngineFactory
public static @NonNull SWRLRuleAndQueryEngineFactory getSWRLRuleAndQueryEngineFactory()
-
createSWRLBuiltInLibraryManager
public static @NonNull SWRLBuiltInLibraryManager createSWRLBuiltInLibraryManager()
-
createSWRLRuleRenderer
public static @NonNull SWRLRuleRenderer createSWRLRuleRenderer(@NonNull org.semanticweb.owlapi.model.OWLOntology ontology, @NonNull IRIResolver iriResolver)
- Parameters:
ontology
- An OWL ontologyiriResolver
- An IRI resolver- Returns:
- A SWRL rule renderer
-
createSQWRLQueryRenderer
public static @NonNull SQWRLQueryRenderer createSQWRLQueryRenderer(@NonNull org.semanticweb.owlapi.model.OWLOntology ontology, @NonNull IRIResolver iriResolver)
- Parameters:
ontology
- An OWL ontologyiriResolver
- An IRI resolver- Returns:
- A SQWRL query renderer
-
createSWRLRuleEngineManager
public static @NonNull SWRLRuleEngineManager createSWRLRuleEngineManager()
- Returns:
- A SWRL rule engine manager
-
createSQWRLResultManager
public static @NonNull SQWRLResultManager createSQWRLResultManager(@NonNull IRIResolver iriResolver)
- Parameters:
iriResolver
- An IRI resolver- Returns:
- A SQWRL result
-
createOWL2RLPersistenceLayer
public static @NonNull OWL2RLPersistenceLayer createOWL2RLPersistenceLayer(@NonNull org.semanticweb.owlapi.model.OWLOntology ontology)
- Parameters:
ontology
- An OWL ontology- Returns:
- An OWL 2 RL persistence layer
-
createSWRLBuiltInArgumentFactory
public static @NonNull SWRLBuiltInArgumentFactory createSWRLBuiltInArgumentFactory(@NonNull IRIResolver iriResolver)
- Parameters:
iriResolver
- An IRI resolver- Returns:
- A SWRL built-in argument factory
-
createSQWRLResultValueFactory
public static @NonNull SQWRLResultValueFactory createSQWRLResultValueFactory(@NonNull IRIResolver iriResolver)
- Parameters:
iriResolver
- An IRI resolver- Returns:
- A SQWRL result value factory
-
createSQWRLQuery
public static @NonNull SQWRLQuery createSQWRLQuery(@NonNull java.lang.String queryName, @NonNull java.util.List<@NonNull org.semanticweb.owlapi.model.SWRLAtom> bodyAtoms, @NonNull java.util.List<@NonNull org.semanticweb.owlapi.model.SWRLAtom> headAtoms, boolean active, @NonNull java.lang.String comment, @NonNull LiteralFactory literalFactory, @NonNull IRIResolver iriResolver) throws SWRLBuiltInException
- Throws:
SWRLBuiltInException
-
createSWRLAPIOWLDataFactory
public static @NonNull SWRLAPIOWLDataFactory createSWRLAPIOWLDataFactory(@NonNull IRIResolver iriResolver)
- Parameters:
iriResolver
- An IRI resolver- Returns:
- A SWRLAPI-based OWL data factory
-
createSWRLRulesAndSQWRLQueriesTableModel
public static @NonNull SWRLRulesAndSQWRLQueriesTableModel createSWRLRulesAndSQWRLQueriesTableModel(@NonNull SWRLRuleEngine swrlRuleEngine)
- Parameters:
swrlRuleEngine
- A SWRL rule engine- Returns:
- A SWRL rule and SQWRL query table model
-
createOWL2RLModel
public static @NonNull OWL2RLModel createOWL2RLModel(@NonNull OWL2RLEngine owl2RLEngine)
-
createLiteralFactory
public static @NonNull LiteralFactory createLiteralFactory()
- Returns:
- A SWRLAPI-based literal factory
-
createOWLDatatypeFactory
public static @NonNull OWLDatatypeFactory createOWLDatatypeFactory()
- Returns:
- A SWRLAPI-based OWL datatype factory
-
createOWLLiteralFactory
public static @NonNull OWLLiteralFactory createOWLLiteralFactory()
- Returns:
- An OWL literal factory
-
createSQWRLResultGenerator
public static @NonNull SQWRLResultGenerator createSQWRLResultGenerator(@NonNull IRIResolver iriResolver)
- Parameters:
iriResolver
- An IRI resolver- Returns:
- A SQWRL result generator
-
createSWRLRuleEngineController
public static @NonNull SWRLRuleEngineController createSWRLRuleEngineController(@NonNull SWRLRuleEngineModel swrlRuleEngineModel)
- Parameters:
swrlRuleEngineModel
- A SWRL rule engine model- Returns:
- A SWRL rule engine controller
-
getSQWRLIcon
public static @NonNull javax.swing.Icon getSQWRLIcon() throws SWRLAPIException
- Returns:
- A SQWRL icon
- Throws:
SWRLAPIException
- If an icon cannot be found
-
getOWL2RLReasonerIcon
public static @NonNull javax.swing.Icon getOWL2RLReasonerIcon() throws SWRLAPIException
- Returns:
- An icon for an OWL 2 RL reasoner
- Throws:
SWRLAPIException
- If an icon cannot be found
-
createLiteral
public static @NonNull Literal createLiteral(org.semanticweb.owlapi.model.OWLLiteral owlLiteral)
-
createSWRLAPIRule
public static @NonNull SWRLAPIRule createSWRLAPIRule(@NonNull java.lang.String ruleName, @NonNull java.util.List<? extends org.semanticweb.owlapi.model.SWRLAtom> bodyAtoms, @NonNull java.util.List<? extends org.semanticweb.owlapi.model.SWRLAtom> headAtoms, @NonNull java.lang.String comment, boolean isActive) throws SWRLBuiltInException
- Throws:
SWRLBuiltInException
-
createSWRLAPIBuiltInAtom
public static @NonNull SWRLAPIBuiltInAtom createSWRLAPIBuiltInAtom(@NonNull java.lang.String ruleName, @NonNull org.semanticweb.owlapi.model.IRI builtInIRI, @NonNull java.lang.String builtInPrefixedName, @NonNull java.util.List<@NonNull SWRLBuiltInArgument> arguments)
-
createSWRLAPIOntology
public static @NonNull SWRLAPIOWLOntology createSWRLAPIOntology(@NonNull org.semanticweb.owlapi.model.OWLOntology ontology, @NonNull IRIResolver iriResolver) throws SWRLBuiltInException
Create aSWRLAPIOWLOntology
from an OWLAPI-basedOWLOntology
.- Parameters:
ontology
- An OWLAPI-based ontologyiriResolver
- An IRI resolver- Returns:
- A SWRLAPI-based wrapper of an OWL ontology
- Throws:
SQWRLException
- If a SQWRL error occurs during ontology processingSWRLBuiltInException
-
createSWRLAPIOntology
public static @NonNull SWRLAPIOWLOntology createSWRLAPIOntology(@NonNull org.semanticweb.owlapi.model.OWLOntology ontology) throws SWRLBuiltInException
Create aSWRLAPIOWLOntology
from an OWLAPI-basedOWLOntology
.- Parameters:
ontology
- An OWLAPI-based ontology- Returns:
- A SWRLAPI-based wrapper of an OWL ontology
- Throws:
SQWRLException
- If a SQWRL error occurs during ontology processingSWRLBuiltInException
-
createSWRLBridge
public static @NonNull SWRLBridge createSWRLBridge(@NonNull SWRLAPIOWLOntology swrlapiOWLOntology, @NonNull OWL2RLPersistenceLayer owl2RLPersistenceLayer) throws SWRLBuiltInBridgeException
- Parameters:
swrlapiOWLOntology
- A SWRLAPI-based OWL ontologyowl2RLPersistenceLayer
- An OWL 2 RL persistence layer- Returns:
- A SWRL rule engine bridge
- Throws:
SWRLBuiltInBridgeException
- If an error occurs during rule engine bridge creation
-
createSWRLAutoCompleter
public static @NonNull SWRLAutoCompleter createSWRLAutoCompleter(@NonNull SWRLAPIOWLOntology swrlapiowlOntology)
- Parameters:
swrlapiowlOntology
- A SWRLAPI-based OWL ontology- Returns:
- A SWRL auto-completer
-
-