Class RDFServiceSDB
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.rdfservice.impl.RDFServiceImpl
-
- edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.RDFServiceJena
-
- edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.sdb.RDFServiceSDB
-
- All Implemented Interfaces:
RDFService
public class RDFServiceSDB extends RDFServiceJena implements RDFService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface edu.cornell.mannlib.vitro.webapp.rdfservice.RDFService
RDFService.ModelSerializationFormat, RDFService.ResultFormat, RDFService.SPARQLQueryType
-
-
Field Summary
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.RDFServiceJena
graphURIs, isRebuildGraphURICacheRunning, rebuildGraphURICache
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.rdfservice.impl.RDFServiceImpl
defaultWriteGraphURI, registeredJenaListeners, registeredListeners
-
-
Constructor Summary
Constructors Constructor Description RDFServiceSDB(Connection conn, org.apache.jena.sdb.StoreDesc storeDesc)RDFServiceSDB(DataSource dataSource, org.apache.jena.sdb.StoreDesc storeDesc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchangeSetUpdate(ChangeSet changeSet)Performs a series of additions to and or removals from specified graphs in the RDF store.voidclose()Frees any resources held by this RDFService object The implementation of this method should be idempotent so that multiple invocations do not cause an error.longcountTriples(org.apache.jena.rdf.model.RDFNode subject, org.apache.jena.rdf.model.RDFNode predicate, org.apache.jena.rdf.model.RDFNode object)protected org.apache.jena.query.QueryExecutioncreateQueryExecution(String queryString, org.apache.jena.query.Query q, org.apache.jena.query.Dataset d)protected DatasetWrappergetDatasetWrapper()org.apache.jena.rdf.model.ModelgetTriples(org.apache.jena.rdf.model.RDFNode subject, org.apache.jena.rdf.model.RDFNode predicate, org.apache.jena.rdf.model.RDFNode object, long limit, long offset)booleanpreferPreciseOptionals()-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.RDFServiceJena
applyChangeSetToModel, getGraphMetadata, getGraphURIs, getVitroRequest, insureThatInputStreamsAreResettable, isEquivalentGraph, isEquivalentGraph, notifyListenersOfPostChangeEvents, notifyListenersOfPreChangeEvents, operateOnModel, rebuildGraphUris, serializeAll, serializeGraph, setVitroRequest, sparqlAskQuery, sparqlConstructQuery, sparqlConstructQuery, sparqlDescribeQuery, sparqlSelectQuery, sparqlSelectQuery
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.rdfservice.impl.RDFServiceImpl
createQuery, getDefaultWriteGraphURI, getRegisteredJenaModelChangedListeners, getRegisteredListeners, getSerializationFormatString, isPreconditionSatisfied, manufactureChangeSet, newIndividual, newIndividual, notifyListeners, notifyListenersOfChanges, notifyListenersOfEvent, pyString, registerJenaModelChangedListener, registerListener, separateStatementsWithBlankNodes, sparqlNode, sparqlNodeUpdate, sparqlSelectQueryHasResults, sparqlTriple, toString, unregisterJenaModelChangedListener, unregisterListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface edu.cornell.mannlib.vitro.webapp.rdfservice.RDFService
getDefaultWriteGraphURI, getGraphMetadata, getGraphURIs, getVitroRequest, isEquivalentGraph, isEquivalentGraph, manufactureChangeSet, newIndividual, newIndividual, registerJenaModelChangedListener, registerListener, serializeAll, serializeGraph, setVitroRequest, sparqlAskQuery, sparqlConstructQuery, sparqlConstructQuery, sparqlDescribeQuery, sparqlSelectQuery, sparqlSelectQuery, unregisterJenaModelChangedListener, unregisterListener
-
-
-
-
Constructor Detail
-
RDFServiceSDB
public RDFServiceSDB(DataSource dataSource, org.apache.jena.sdb.StoreDesc storeDesc)
-
RDFServiceSDB
public RDFServiceSDB(Connection conn, org.apache.jena.sdb.StoreDesc storeDesc)
-
-
Method Detail
-
getDatasetWrapper
protected DatasetWrapper getDatasetWrapper()
- Specified by:
getDatasetWrapperin classRDFServiceJena
-
changeSetUpdate
public boolean changeSetUpdate(ChangeSet changeSet) throws RDFServiceException
Description copied from interface:RDFServicePerforms a series of additions to and or removals from specified graphs in the RDF store. preConditionSparql is executed against the union of all the graphs in the knowledge base before any updates are made. If the precondition query returns a non-empty result, no updates are made made.- Specified by:
changeSetUpdatein interfaceRDFService- Specified by:
changeSetUpdatein classRDFServiceJena- Parameters:
changeSet- - a set of changes to be performed on the RDF store.- Returns:
- boolean - indicates whether the precondition was satisfied
- Throws:
RDFServiceException
-
createQueryExecution
protected org.apache.jena.query.QueryExecution createQueryExecution(String queryString, org.apache.jena.query.Query q, org.apache.jena.query.Dataset d)
- Overrides:
createQueryExecutionin classRDFServiceJena
-
countTriples
public long countTriples(org.apache.jena.rdf.model.RDFNode subject, org.apache.jena.rdf.model.RDFNode predicate, org.apache.jena.rdf.model.RDFNode object) throws RDFServiceException- Specified by:
countTriplesin interfaceRDFService- Overrides:
countTriplesin classRDFServiceJena- Throws:
RDFServiceException
-
getTriples
public org.apache.jena.rdf.model.Model getTriples(org.apache.jena.rdf.model.RDFNode subject, org.apache.jena.rdf.model.RDFNode predicate, org.apache.jena.rdf.model.RDFNode object, long limit, long offset) throws RDFServiceException- Specified by:
getTriplesin interfaceRDFService- Overrides:
getTriplesin classRDFServiceJena- Throws:
RDFServiceException
-
preferPreciseOptionals
public boolean preferPreciseOptionals()
- Specified by:
preferPreciseOptionalsin interfaceRDFService- Overrides:
preferPreciseOptionalsin classRDFServiceJena
-
close
public void close()
Description copied from interface:RDFServiceFrees any resources held by this RDFService object The implementation of this method should be idempotent so that multiple invocations do not cause an error.- Specified by:
closein interfaceRDFService- Overrides:
closein classRDFServiceJena
-
-