Class BasicCombinedTripleSource
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.triplesource.impl.BasicCombinedTripleSource
-
- All Implemented Interfaces:
CombinedTripleSource
public class BasicCombinedTripleSource extends Object implements CombinedTripleSource
A simple implementation of CombinedTripleSource. Note that we don't bother to cache the RDFServices, RDFServiceFactories, and ModelMakers, since the sources can be expected to cache them. We must cache the OntModelCache because it was created here. If we were to recreate it, we would lose any sub-models that had been attached in the meantime.
-
-
Field Summary
Fields Modifier and Type Field Description static UnionModelsOntModelsCache.UnionSpec[]CONTENT_UNIONSCreate union models for ABox and TBox, and full models for assertions and inferences.
-
Constructor Summary
Constructors Constructor Description BasicCombinedTripleSource(ContentTripleSource contentSource, ConfigurationTripleSource configurationSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jena.query.DatasetgetDataset(ModelAccess.WhichService whichService)org.apache.jena.rdf.model.ModelMakergetModelMaker(ModelAccess.WhichService whichService)OntModelCachegetOntModelCache()protected OntModelCachegetOntModels(ModelAccess.WhichService whichService)RDFServicegetRDFService(ModelAccess.WhichService whichService)protected RDFServiceFactorygetRDFServiceFactory(ModelAccess.WhichService whichService)ShortTermCombinedTripleSourcegetShortTermCombinedTripleSource(javax.servlet.http.HttpServletRequest req)StringtoString()
-
-
-
Field Detail
-
CONTENT_UNIONS
public static final UnionModelsOntModelsCache.UnionSpec[] CONTENT_UNIONS
Create union models for ABox and TBox, and full models for assertions and inferences. No need to create FULL_UNION, since it's the default model.
-
-
Constructor Detail
-
BasicCombinedTripleSource
public BasicCombinedTripleSource(ContentTripleSource contentSource, ConfigurationTripleSource configurationSource)
-
-
Method Detail
-
getOntModels
protected OntModelCache getOntModels(ModelAccess.WhichService whichService)
-
getRDFServiceFactory
protected RDFServiceFactory getRDFServiceFactory(ModelAccess.WhichService whichService)
-
getRDFService
public RDFService getRDFService(ModelAccess.WhichService whichService)
- Specified by:
getRDFServicein interfaceCombinedTripleSource
-
getDataset
public org.apache.jena.query.Dataset getDataset(ModelAccess.WhichService whichService)
- Specified by:
getDatasetin interfaceCombinedTripleSource
-
getModelMaker
public org.apache.jena.rdf.model.ModelMaker getModelMaker(ModelAccess.WhichService whichService)
- Specified by:
getModelMakerin interfaceCombinedTripleSource
-
getOntModelCache
public OntModelCache getOntModelCache()
- Specified by:
getOntModelCachein interfaceCombinedTripleSource
-
getShortTermCombinedTripleSource
public ShortTermCombinedTripleSource getShortTermCombinedTripleSource(javax.servlet.http.HttpServletRequest req)
- Specified by:
getShortTermCombinedTripleSourcein interfaceCombinedTripleSource
-
-