Package it.unibz.inf.ontop.si
Interface OntopSemanticIndexLoader
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
OntopSemanticIndexLoaderImpl
public interface OntopSemanticIndexLoader extends AutoCloseable
Creates an in-memory DB and populates it.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes its connection to the in-memory DB that was kept just for keeping the DB alive.OntopSQLOWLAPIConfigurationgetConfiguration()static OntopSemanticIndexLoaderloadOntologyIndividuals(String ontologyFilePath, Properties properties)Loads the ABox of the ontology in an in-memory Semantic Index.static OntopSemanticIndexLoaderloadOntologyIndividuals(org.semanticweb.owlapi.model.OWLOntology ontology, Properties properties)Loads the ABox of the ontology in an in-memory Semantic Index.static OntopSemanticIndexLoaderloadRDFGraph(org.eclipse.rdf4j.query.Dataset dataset, Properties properties)Loads the graph in an in-memory Semantic Index.static OntopSemanticIndexLoaderloadVirtualAbox(OntopSQLOWLAPIConfiguration obdaConfiguration, Properties properties)Loads the virtual ABox of an OBDA system in an in-memory Semantic Index.
-
-
-
Method Detail
-
getConfiguration
OntopSQLOWLAPIConfiguration getConfiguration()
-
close
void close()
Closes its connection to the in-memory DB that was kept just for keeping the DB alive. After calling this method, the loader is not RESPONSIBLE for keeping the DB alive anymore. This responsibility may be delegating to another object: the latter just need to keep a connection alive. An in-memory DB like H2 is dropped when no-one connects to it.- Specified by:
closein interfaceAutoCloseable
-
loadOntologyIndividuals
static OntopSemanticIndexLoader loadOntologyIndividuals(org.semanticweb.owlapi.model.OWLOntology ontology, Properties properties) throws SemanticIndexException
Loads the ABox of the ontology in an in-memory Semantic Index.- Throws:
SemanticIndexException
-
loadOntologyIndividuals
static OntopSemanticIndexLoader loadOntologyIndividuals(String ontologyFilePath, Properties properties) throws SemanticIndexException
Loads the ABox of the ontology in an in-memory Semantic Index.- Throws:
SemanticIndexException
-
loadRDFGraph
static OntopSemanticIndexLoader loadRDFGraph(org.eclipse.rdf4j.query.Dataset dataset, Properties properties) throws SemanticIndexException
Loads the graph in an in-memory Semantic Index.- Throws:
SemanticIndexException
-
loadVirtualAbox
static OntopSemanticIndexLoader loadVirtualAbox(OntopSQLOWLAPIConfiguration obdaConfiguration, Properties properties) throws SemanticIndexException
Loads the virtual ABox of an OBDA system in an in-memory Semantic Index.- Throws:
SemanticIndexException
-
-