Class ContextModelAccessImpl
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.modelaccess.impl.ContextModelAccessImpl
-
- All Implemented Interfaces:
ContextModelAccess
public class ContextModelAccessImpl extends Object implements ContextModelAccess
The context-based model access is simpler than the request-based model access. There is no "current user", so there can be no preferred language or policy-based filtering. We are confident that each of these structures will be used at some point, so there is no need for lazy initialization.
-
-
Constructor Summary
Constructors Constructor Description ContextModelAccessImpl(CombinedTripleSource factory)Pull all of the items into maps, instead of fetching them from the factory on demand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jena.query.DatasetgetDataset()Get the Dataset for the CONTENT models.org.apache.jena.query.DatasetgetDataset(ModelAccess.WhichService which)Get the Dataset for either CONTENT or CONFIGURATION models.org.apache.jena.rdf.model.ModelMakergetModelMaker()Get the ModelMaker for the CONTENT models.org.apache.jena.rdf.model.ModelMakergetModelMaker(ModelAccess.WhichService which)Get the ModelMaker for either CONTENT or CONFIGURATION models.org.apache.jena.ontology.OntModelgetOntModel()Get the FULL_UNION OntModel.org.apache.jena.ontology.OntModelgetOntModel(String name)Get an OntModel by name.OntModelSelectorgetOntModelSelector()Get the ASSERTIONS_AND_INFERENCES OntModelSelector.OntModelSelectorgetOntModelSelector(ModelAccess.ReasoningOption option)Get an OntModelSelector based on ASSERTIONS, INFERENCES, or both.RDFServicegetRDFService()Get the RDFService for the CONTENT.RDFServicegetRDFService(ModelAccess.WhichService which)Get the RDFService for either CONTENT or CONFIGURATION models.WebappDaoFactorygetWebappDaoFactory()Get the ASSERTIONS_AND_INFERENCES WebappDaoFactory.WebappDaoFactorygetWebappDaoFactory(ModelAccess.ReasoningOption option)Get a WebappDaoFactory, based on ASSERTIONS, INFERENCES, or both.StringtoString()
-
-
-
Constructor Detail
-
ContextModelAccessImpl
public ContextModelAccessImpl(CombinedTripleSource factory)
Pull all of the items into maps, instead of fetching them from the factory on demand. We don't know that the factory wouldn't create fresh ones. The exception is the OntModels, for two reasons: first, because the OntModelCache assures us that it won't create fresh copies, and second because we may not know the names of all of the models that will be requested.
-
-
Method Detail
-
getRDFService
public RDFService getRDFService()
Description copied from interface:ContextModelAccessGet the RDFService for the CONTENT.- Specified by:
getRDFServicein interfaceContextModelAccess
-
getRDFService
public RDFService getRDFService(ModelAccess.WhichService which)
Description copied from interface:ContextModelAccessGet the RDFService for either CONTENT or CONFIGURATION models.- Specified by:
getRDFServicein interfaceContextModelAccess
-
getDataset
public org.apache.jena.query.Dataset getDataset()
Description copied from interface:ContextModelAccessGet the Dataset for the CONTENT models.- Specified by:
getDatasetin interfaceContextModelAccess
-
getDataset
public org.apache.jena.query.Dataset getDataset(ModelAccess.WhichService which)
Description copied from interface:ContextModelAccessGet the Dataset for either CONTENT or CONFIGURATION models.- Specified by:
getDatasetin interfaceContextModelAccess
-
getModelMaker
public org.apache.jena.rdf.model.ModelMaker getModelMaker()
Description copied from interface:ContextModelAccessGet the ModelMaker for the CONTENT models.- Specified by:
getModelMakerin interfaceContextModelAccess
-
getModelMaker
public org.apache.jena.rdf.model.ModelMaker getModelMaker(ModelAccess.WhichService which)
Description copied from interface:ContextModelAccessGet the ModelMaker for either CONTENT or CONFIGURATION models.- Specified by:
getModelMakerin interfaceContextModelAccess
-
getOntModel
public org.apache.jena.ontology.OntModel getOntModel()
Description copied from interface:ContextModelAccessGet the FULL_UNION OntModel.- Specified by:
getOntModelin interfaceContextModelAccess
-
getOntModel
public org.apache.jena.ontology.OntModel getOntModel(String name)
Description copied from interface:ContextModelAccessGet an OntModel by name.- Specified by:
getOntModelin interfaceContextModelAccess
-
getOntModelSelector
public OntModelSelector getOntModelSelector()
Description copied from interface:ContextModelAccessGet the ASSERTIONS_AND_INFERENCES OntModelSelector.- Specified by:
getOntModelSelectorin interfaceContextModelAccess
-
getOntModelSelector
public OntModelSelector getOntModelSelector(ModelAccess.ReasoningOption option)
Description copied from interface:ContextModelAccessGet an OntModelSelector based on ASSERTIONS, INFERENCES, or both.- Specified by:
getOntModelSelectorin interfaceContextModelAccess
-
getWebappDaoFactory
public WebappDaoFactory getWebappDaoFactory()
Description copied from interface:ContextModelAccessGet the ASSERTIONS_AND_INFERENCES WebappDaoFactory.- Specified by:
getWebappDaoFactoryin interfaceContextModelAccess
-
getWebappDaoFactory
public WebappDaoFactory getWebappDaoFactory(ModelAccess.ReasoningOption option)
Description copied from interface:ContextModelAccessGet a WebappDaoFactory, based on ASSERTIONS, INFERENCES, or both.- Specified by:
getWebappDaoFactoryin interfaceContextModelAccess
-
-