Class RDFServiceModel
- 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.model.RDFServiceModel
-
- All Implemented Interfaces:
RDFService
public class RDFServiceModel 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.RDFServiceImpl
defaultWriteGraphURI, graphURIs, isRebuildGraphURICacheRunning, rebuildGraphURICache, registeredJenaListeners, registeredListeners
-
-
Constructor Summary
Constructors Constructor Description RDFServiceModel(org.apache.jena.query.Dataset dataset)Create an RDFService to access a Jena DatasetRDFServiceModel(org.apache.jena.rdf.model.Model model)Create an RDFService to access a single default graph
-
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.protected DatasetWrappergetDatasetWrapper()VitroRequestgetVitroRequest()voidsetVitroRequest(VitroRequest vitroRequest)UQAM-Bug-Correction Useful among other things to transport the linguistic context in the service-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.RDFServiceJena
applyChangeSetToModel, close, countTriples, createQueryExecution, getGraphMetadata, getTriples, insureThatInputStreamsAreResettable, isEquivalentGraph, isEquivalentGraph, notifyListenersOfPostChangeEvents, notifyListenersOfPreChangeEvents, operateOnModel, preferPreciseOptionals, rebuildGraphUris, serializeAll, serializeGraph, sparqlAskQuery, sparqlConstructQuery, sparqlConstructQuery, sparqlDescribeQuery, sparqlSelectQuery, sparqlSelectQuery
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.rdfservice.impl.RDFServiceImpl
createQuery, getDefaultWriteGraphURI, getGraphURIs, getRegisteredJenaModelChangedListeners, getRegisteredListeners, getSerializationFormatString, isPreconditionSatisfied, manufactureChangeSet, newIndividual, newIndividual, notifyListeners, notifyListenersOfChanges, notifyListenersOfEvent, pyString, registerJenaModelChangedListener, registerListener, separateStatementsWithBlankNodes, sparqlNode, sparqlNodeUpdate, sparqlSelectQueryHasResults, sparqlTriple, toString, unregisterJenaModelChangedListener, unregisterListener, updateGraphURIs
-
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
close, countTriples, getDefaultWriteGraphURI, getGraphMetadata, getGraphURIs, getTriples, isEquivalentGraph, isEquivalentGraph, manufactureChangeSet, newIndividual, newIndividual, preferPreciseOptionals, registerJenaModelChangedListener, registerListener, serializeAll, serializeGraph, sparqlAskQuery, sparqlConstructQuery, sparqlConstructQuery, sparqlDescribeQuery, sparqlSelectQuery, sparqlSelectQuery, unregisterJenaModelChangedListener, unregisterListener
-
-
-
-
Constructor Detail
-
RDFServiceModel
public RDFServiceModel(org.apache.jena.rdf.model.Model model)
Create an RDFService to access a single default graph- Parameters:
model- Jena Model
-
RDFServiceModel
public RDFServiceModel(org.apache.jena.query.Dataset dataset)
Create an RDFService to access a Jena Dataset- Parameters:
dataset- Jena Dataset
-
-
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
-
setVitroRequest
public void setVitroRequest(VitroRequest vitroRequest)
Description copied from interface:RDFServiceUQAM-Bug-Correction Useful among other things to transport the linguistic context in the service- Specified by:
setVitroRequestin interfaceRDFService- Overrides:
setVitroRequestin classRDFServiceJena
-
getVitroRequest
public VitroRequest getVitroRequest()
- Specified by:
getVitroRequestin interfaceRDFService- Overrides:
getVitroRequestin classRDFServiceJena
-
-