public interface ResourceIndex
extends org.trippi.TriplestoreWriter
| Modifier and Type | Field and Description |
|---|---|
static int |
INDEX_LEVEL_OFF
At this level, the ResourceIndex will not index anything.
|
static int |
INDEX_LEVEL_ON
At this level the ResourceIndex will index: object properties datastreams
intra-object dependencies
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObject(DOReader reader)
Adds the appripriate triples implied by the given object to the
ResourceIndex.
|
void |
deleteObject(DOReader oldReader)
Removes the triples implied by a given object from the ResourceIndex.
|
void |
export(OutputStream out,
org.trippi.RDFFormat format)
Exports all triples in the RI.
|
int |
getIndexLevel()
Gets the index level of the ResourceIndex.
|
void |
modifyObject(DOReader oldReader,
DOReader newReader)
Updates any appropriate triples implied a modified object.
|
static final int INDEX_LEVEL_OFF
static final int INDEX_LEVEL_ON
int getIndexLevel()
void addObject(DOReader reader) throws ResourceIndexException
reader - The given object to index.ResourceIndexException - If the triples can't be added for any reason.void modifyObject(DOReader oldReader, DOReader newReader) throws ResourceIndexException
oldReader - Pre-modification version of the oject.newReader - Post-modification version of the object.ResourceIndexException - If the triples can't be updated for any reason.void deleteObject(DOReader oldReader) throws ResourceIndexException
oldReader - Object whose triples shall be removed from the index.ResourceIndexException - If the triples can't be removed for any reason.void export(OutputStream out, org.trippi.RDFFormat format) throws ResourceIndexException
out - the output stream to which the RDF should be written. The caller
is responsible for eventually closing this stream.format - the output format (RDF_XML, TURTLE, N_TRIPLESs, etc).ResourceIndexException - if triples in the RI cannot be serialized for any reason.Copyright © 2013 DuraSpace. All Rights Reserved.