Class SWRLAPIInternalFactory

    • Constructor Detail

      • SWRLAPIInternalFactory

        public SWRLAPIInternalFactory()
    • Method Detail

      • createSWRLRuleRenderer

        public static @NonNull SWRLRuleRenderer createSWRLRuleRenderer​(@NonNull org.semanticweb.owlapi.model.OWLOntology ontology,
                                                                       @NonNull IRIResolver iriResolver)
        Parameters:
        ontology - An OWL ontology
        iriResolver - 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 ontology
        iriResolver - 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
      • 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 a SWRLAPIOWLOntology from an OWLAPI-based OWLOntology.
        Parameters:
        ontology - An OWLAPI-based ontology
        iriResolver - An IRI resolver
        Returns:
        A SWRLAPI-based wrapper of an OWL ontology
        Throws:
        SQWRLException - If a SQWRL error occurs during ontology processing
        SWRLBuiltInException
      • createSWRLAutoCompleter

        public static @NonNull SWRLAutoCompleter createSWRLAutoCompleter​(@NonNull SWRLAPIOWLOntology swrlapiowlOntology)
        Parameters:
        swrlapiowlOntology - A SWRLAPI-based OWL ontology
        Returns:
        A SWRL auto-completer