public interface ModelFactory<MC extends ModelConfiguration>
BaseRDFTripleModel
interface.Contract for initialization methods contained in this class imposed that, if the loaded model is a persistent model and persistence information is found inside the specified persistence directory, then the model is started by retrieving all existing information
Modifier and Type | Method and Description |
---|---|
void |
closeModel(BaseRDFTripleModel rep)
closes the Model, by releasing all of its resources
|
BaseRDFTripleModel |
createLightweightRDFModel()
creates a very lightweight RDF model, with no preloaded vocabularies, no inference, and no storage
folder (as it is always in memory).
|
<MCImpl extends MC> |
createModelConfigurationObject(Class<MCImpl> mcclass) |
Collection<Class<? extends MC>> |
getModelConfigurations() |
boolean |
isPopulatingW3CVocabularies()
tells if the factory to create graphs for the proper W3C vocabularies in the models which it creates,
if they are not already available.
|
LinkedDataResolver |
loadLinkedDataResolver()
Creates a Linked Data resolver, which allows dereferencing the identifier of a resource to obtain its
RDF description.
|
<MCImpl extends MC> |
loadOWLModel(String baseuri,
String persistenceDirectory,
MCImpl conf)
loads/creates a
OWLModel from/in directory persistenceDirectory |
<MCImpl extends MC> |
loadRDFBaseModel(String baseuri,
String persistenceDirectory,
MCImpl conf)
loads/creates a
BaseRDFTripleModel from/in directory persistenceDirectory |
<MCImpl extends MC> |
loadRDFModel(String baseuri,
String persistenceDirectory,
MCImpl conf)
loads/creates a
RDFModel from/in directory persistenceDirectory |
<MCImpl extends MC> |
loadRDFSModel(String baseuri,
String persistenceDirectory,
MCImpl conf)
loads/creates a
RDFSModel from/in directory persistenceDirectory |
<MCImpl extends MC> |
loadSKOSModel(String baseuri,
String persistenceDirectory,
MCImpl conf)
loads/creates a
SKOSModel from/in directory persistenceDirectory |
<MCImpl extends MC> |
loadSKOSXLModel(String baseuri,
String persistenceDirectory,
MCImpl conf)
loads/creates a
SKOSXLModel from/in directory persistenceDirectory |
TripleQueryModelHTTPConnection |
loadTripleQueryHTTPConnection(String endpointURL)
accesses a SPARQL endpoint available at the given
endpointURL |
void |
setPopulatingW3CVocabularies(boolean pref)
instructs the factory to create graphs for the proper W3C vocabularies in the models which it creates,
if they are not already available.
|
<MCImpl extends MC> MCImpl createModelConfigurationObject(Class<MCImpl> mcclass) throws UnsupportedModelConfigurationException, UnloadableModelConfigurationException
Collection<Class<? extends MC>> getModelConfigurations()
<MCImpl extends MC> BaseRDFTripleModel loadRDFBaseModel(String baseuri, String persistenceDirectory, MCImpl conf) throws ModelCreationException
BaseRDFTripleModel
from/in directory persistenceDirectory
baseuri
- persistenceDirectory
- ModelCreationException
<MCImpl extends MC> RDFModel loadRDFModel(String baseuri, String persistenceDirectory, MCImpl conf) throws ModelCreationException
RDFModel
from/in directory persistenceDirectory
baseuri
- persistenceDirectory
- ModelCreationException
<MCImpl extends MC> RDFSModel loadRDFSModel(String baseuri, String persistenceDirectory, MCImpl conf) throws ModelCreationException
RDFSModel
from/in directory persistenceDirectory
baseuri
- persistenceDirectory
- ModelCreationException
<MCImpl extends MC> OWLModel loadOWLModel(String baseuri, String persistenceDirectory, MCImpl conf) throws ModelCreationException
OWLModel
from/in directory persistenceDirectory
baseuri
- persistenceDirectory
- ModelCreationException
<MCImpl extends MC> SKOSModel loadSKOSModel(String baseuri, String persistenceDirectory, MCImpl conf) throws ModelCreationException
SKOSModel
from/in directory persistenceDirectory
baseuri
- persistenceDirectory
- ModelCreationException
<MCImpl extends MC> SKOSXLModel loadSKOSXLModel(String baseuri, String persistenceDirectory, MCImpl conf) throws ModelCreationException
SKOSXLModel
from/in directory persistenceDirectory
baseuri
- persistenceDirectory
- ModelCreationException
TripleQueryModelHTTPConnection loadTripleQueryHTTPConnection(String endpointURL) throws ModelCreationException
endpointURL
endpointURL
- ModelCreationException
LinkedDataResolver loadLinkedDataResolver()
void closeModel(BaseRDFTripleModel rep) throws ModelUpdateException
rep
- ModelUpdateException
void setPopulatingW3CVocabularies(boolean pref)
OWLModel
is being createdpref
- boolean isPopulatingW3CVocabularies()
OWLModel
is being createdBaseRDFTripleModel createLightweightRDFModel()
Copyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.