@Deprecated public interface StardocsConnection extends Connection
BitesConnection
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deprecated.
Delete ALL documents including contents and assertions in the
current database's document store.
|
void |
deleteDocument(String theDocName)
Deprecated.
Delete a document from the document store.
|
long |
documentCount()
Deprecated.
Return a count of all the documents in the current database's
document store.
|
InputStream |
getDocument(String theDocName)
Deprecated.
Return a documents contents.
|
IRI |
putDocument(Path file)
Deprecated.
Add/update a document.
|
IRI |
putDocument(String theDocName,
InputStream theDocContents)
Deprecated.
Add/update a document.
|
default IRI |
putDocument(String theDocName,
InputStream theDocContents,
Iterable<String> theRDFExtractorNames,
Iterable<String> theTextExtractorNames)
Deprecated.
Add/update a document.
|
IRI |
putDocument(String theDocName,
InputStream theDocContents,
Iterable<String> theRDFExtractorNames,
Iterable<String> theTextExtractorNames,
boolean theKeepAssertions)
Deprecated.
Add/update a document.
|
default void |
reindex(Iterable<String> theRDFExtractorNames,
Iterable<String> theTextExtractorNames)
Deprecated.
Reindex all documents in the document store, replacing previous assertions.
|
void |
reindex(Iterable<String> theRDFExtractorNames,
Iterable<String> theTextExtractorNames,
boolean theKeepAssertions)
Deprecated.
Reindex all documents in the document store, optionally replacing previous assertions.
|
add, admin, as, ask, ask, begin, close, commit, currentStatus, export, generateModel, get, getOption, getSchema, graph, graph, graphAliases, isOpen, isReasoningEnabled, name, namespaces, paths, paths, remove, rollback, select, select, selectPlan, selectPlan, size, transactions, update, update
default 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.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.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.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.