public interface StardocsConnection extends Connection
A connection to a document store within a Stardog database.
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Delete ALL documents including contents and assertions in the
current database's document store.
|
void |
deleteDocument(String theDocName)
Delete a document from the document store.
|
long |
documentCount()
Return a count of all the documents in the current database's
document store.
|
InputStream |
getDocument(String theDocName)
Return a documents contents.
|
org.openrdf.model.IRI |
putDocument(Path file)
Add/update a document.
|
org.openrdf.model.IRI |
putDocument(String theDocName,
InputStream theDocContents)
Add/update a document.
|
default org.openrdf.model.IRI |
putDocument(String theDocName,
InputStream theDocContents,
Iterable<String> theRDFExtractorNames,
Iterable<String> theTextExtractorNames)
Add/update a document.
|
org.openrdf.model.IRI |
putDocument(String theDocName,
InputStream theDocContents,
Iterable<String> theRDFExtractorNames,
Iterable<String> theTextExtractorNames,
boolean theKeepAssertions)
Add/update a document.
|
default void |
reindex(Iterable<String> theRDFExtractorNames,
Iterable<String> theTextExtractorNames)
Reindex all documents in the document store, replacing previous assertions.
|
void |
reindex(Iterable<String> theRDFExtractorNames,
Iterable<String> theTextExtractorNames,
boolean theKeepAssertions)
Reindex all documents in the document store, optionally replacing previous assertions.
|
add, admin, as, ask, ask, begin, close, commit, currentStatus, export, get, getOption, graph, graph, isOpen, isReasoningEnabled, name, namespaces, paths, paths, remove, rollback, select, select, size, transactions, update, updatedefault org.openrdf.model.IRI putDocument(String theDocName, InputStream theDocContents, Iterable<String> theRDFExtractorNames, Iterable<String> theTextExtractorNames)
theDocName - The name of the document in the document store.theDocContents - The contents of the document to be added/updated.theRDFExtractorNames - A sequence of RDF extractor names to be used when processing this document. If null, use the default extractor(s) for the current database.theTextExtractorNames - A sequence of text extractor names to be used when processing this document. If null, use the default extractor(s) for the current database.org.openrdf.model.IRI putDocument(String theDocName, InputStream theDocContents, Iterable<String> theRDFExtractorNames, Iterable<String> theTextExtractorNames, boolean theKeepAssertions)
theDocName - The name of the document in the document store.theDocContents - The contents of the document to be added/updated.theRDFExtractorNames - A sequence of RDF extractor names to be used when processing this document. If null, use the default extractor(s) for the current database.theTextExtractorNames - A sequence of text extractor names to be used when processing this document. If null, use the default extractor(s) for the current database.theKeepAssertions - Whether existent assertions should be kept or replaced by those extracted from the new contents.org.openrdf.model.IRI putDocument(String theDocName, InputStream theDocContents)
theDocName - The name of the document in the document store.theDocContents - The contents of the document to be added/updated.org.openrdf.model.IRI putDocument(Path file)
file - The file to be added to the document store. The file's name will be used as the document name.InputStream getDocument(String theDocName)
theDocName - Name of the document for which to retrieve contents.void deleteDocument(String theDocName)
theDocName - Name of the document which to delete.long documentCount()
default void reindex(Iterable<String> theRDFExtractorNames, Iterable<String> theTextExtractorNames)
theRDFExtractorNames - A sequence of RDF extractor names to be used when processing this document. If null, use the default extractor(s) for the current database.theTextExtractorNames - A sequence of text extractor names to be used when processing this document. If null, use the default extractor(s) for the current database.void reindex(Iterable<String> theRDFExtractorNames, Iterable<String> theTextExtractorNames, boolean theKeepAssertions)
theRDFExtractorNames - A sequence of RDF extractor names to be used when processing this document. If null, use the default extractor(s) for the current database.theTextExtractorNames - A sequence of text extractor names to be used when processing this document. If null, use the default extractor(s) for the current database.theKeepAssertions - Whether existent assertions should be kept or replaced by those extracted from the new contents.void clear()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.