public interface VirtualGraphAdminConnection extends AdminConnection
Modifier and Type | Interface and Description |
---|---|
static class |
VirtualGraphAdminConnection.InputFileType |
Modifier and Type | Field and Description |
---|---|
static String |
ALL_DBS |
static String |
ALL_NAMED_GRAPHS |
NO_TIMEOUT
Modifier and Type | Method and Description |
---|---|
void |
addDataSource(String theName,
Properties theProps)
Add a data source with the given properties
|
default void |
addGraph(String theName,
Properties theProps,
Iterable<Statement> theMappings)
Registers a new virtual graph to be associated with all databases.
|
default void |
addGraph(String theName,
Properties theProps,
String theMappings)
Registers a new virtual graph for access from all databases
|
void |
addGraph(String theName,
String theDatabase,
Properties theProps,
Iterable<Statement> theMappings)
Registers a new virtual graph.
|
void |
addGraph(String theName,
String theDatabase,
Properties theProps,
String theMappings)
Deprecated.
Use
addGraph(String, String, String, Properties, String) with null dataSource |
void |
addGraph(String theName,
String theDataSourceName,
Set<Statement> theMetadata,
String theDatabase,
Properties theProps,
String theMappings)
Deprecated.
For Stardog internal use only
|
void |
addGraph(String theName,
String theDataSource,
String theDatabase,
Properties theProps,
Iterable<Statement> theMappings)
Registers a new virtual graph against a named data source
|
default void |
addGraph(String theName,
String theDataSource,
String theDatabase,
Properties theProps,
String theMappings)
Registers a new virtual graph using a data source.
|
void |
applyMetadataDiff(String theDataSourceName,
Set<Statement> theAdded,
Set<Statement> theRemoved,
int theCrc,
Map<String,Boolean> theVgAvailability)
Deprecated.
For Stardog internal use only
|
DataSourceInfo |
getDataSourceInfo(String theName)
Retrieve the data source details for the named data source
|
default DataSourceInfo |
getDataSourceInfoOrNull(String theName)
Retrieve the data source details for the named data source or null if it doesn't exist
|
Collection<DataSourceInfo> |
getDataSourceInfos()
Returns information on all registered data sources.
|
Set<Statement> |
getDataSourceMetadata(String theName)
Retrieve all the metadata that a DataSource has cached for its connection.
|
Properties |
getDataSourceOptions(String theName)
Get the data source options
|
VirtualGraph |
getGraph(String theName)
Deprecated.
Use getVirtualGraphInfo or the other methods
|
default String |
getMappings(String vgName)
Get mappings for the named virtual graph in R2RML format
|
String |
getMappingsString(String theName,
String theSyntax)
Get the serialized mappings
|
Properties |
getOptions(String theName)
Get the virtual graph options
|
VirtualGraphInfo |
getVirtualGraphInfo(String theName)
Return a
VirtualGraphInfo for the supplied graph |
VirtualGraphInfo |
getVirtualGraphInfoOrNull(String theName)
Return a
VirtualGraphInfo for the supplied graph or null if it does not exist |
Collection<VirtualGraphInfo> |
getVirtualGraphInfos()
Returns information on all registered virtual graphs.
|
void |
importFile(String theMappings,
Properties theProperties,
String theDb,
IRI theNg,
File theFile,
VirtualGraphAdminConnection.InputFileType theFormat)
Import a file (CSV/JSON) in a single transaction.
|
void |
importFile(String theMappings,
Properties theProperties,
String theDb,
IRI theNg,
InputStream theData,
VirtualGraphAdminConnection.InputFileType theFormat)
Import a stream (CSV/JSON) in a single transaction
|
default void |
importGraph(String theDatabase,
Properties theProps,
String theMappings,
String theNamedGraph,
boolean theRemoveAll)
Deprecated.
use
importGraph(String, String, Properties, String, String, boolean) with a null DataSource |
void |
importGraph(String theDatabase,
String theDataSource,
Properties theProps,
String theMappings,
String theNamedGraph,
boolean theRemoveAll)
Import a DB by copy/add a temporary VG.
|
void |
onlineDataSource(String theName)
Brings online the registered data source with the given name, as well as its
dependent virtual graphs.
|
void |
onlineGraph(String theName)
Brings online the registered virtual graph with the given name.
|
DataSourceQueryResult |
queryDataSource(String theName,
String theQuery,
String theTimeout)
Query a DataSource with its native query language.
|
void |
refreshCounts(String theDataSourceName,
String theTableName)
Update the cardinality (row count) estimates for the supplied data source and table.
|
void |
refreshMetadata(String theDataSourceName,
String theTableName)
Refresh the metadata for the supplied data source and table.
|
boolean |
removeDataSource(String theName,
boolean theForce)
Remove a data source, and optionally all virtual graphs associated with it if you use
theForce |
boolean |
removeGraph(String theName)
Removes the registered virtual graph with the given name.
|
void |
replaceDataSourceMetadata(String theName,
Collection<Statement> theStatements)
Replaces the metadata for a DataSource with the supplied RDF.
|
void |
shareDataSource(String theName)
Share a private data source so it can be used by other virtual graphs and will endure after its dependent
virtual graph is removed.
|
default void |
updateDataSource(String theName,
Properties theOptions)
Update a data source with the given options.
|
default void |
updateDataSource(String theName,
Properties theOptions,
boolean theForce)
Update a data source with the given options, refreshing dependent virtual graphs
|
void |
updateDataSource(String theName,
Set<Statement> theMetadata,
Properties theOptions,
boolean theForce,
boolean theShareable)
Deprecated.
For Stardog internal use only
|
default void |
updateGraph(String theName,
Properties theProps,
Iterable<Statement> theMappings)
Registers a new virtual graph to be associated with all databases, overwriting a previous version if it exists.
|
default void |
updateGraph(String theName,
Properties theProps,
String theMappings)
Registers a new virtual graph for access from all databases, overwriting a previous version if it exists.
|
void |
updateGraph(String theName,
String theDatabase,
Properties theProps,
Iterable<Statement> theMappings)
Registers a new virtual graph overwriting a previous version if it exists.
|
void |
updateGraph(String theName,
String theDatabase,
Properties theProps,
String theMappings)
Deprecated.
Use
updateGraph(String, String, String, Properties, String) with null dataSource |
void |
updateGraph(String theName,
String theDataSourceName,
Set<Statement> theMetadata,
String theDatabase,
Properties theProps,
String theMappings)
Deprecated.
For Stardog internal use only
|
default void |
updateGraph(String theName,
String theDataSource,
String theDatabase,
Properties theProps,
String theMappings)
Registers a new virtual graph using a data source and overwriting a previous version if it exists.
|
as, backup, backup, backup, backup, backupAll, backupAll, backupAll, builder, changeEncryptionPassword, close, createNewEncryptionKey, currentStatus, currentStatus, disableEncryption, disk, drop, fileKeyList, get, get, getPermissionManager, getProperty, getQueryManager, getRoleManager, getStoredFunctions, getStoredQueries, getUserManager, isOpen, list, newDatabase, offline, offline, online, optimize, optimize, removeEncryptionPassword, repair, restore, restore, set, setEncryptionPassword, setProperty, shutdown, verify
static final String ALL_DBS
static final String ALL_NAMED_GRAPHS
Collection<VirtualGraphInfo> getVirtualGraphInfos()
VirtualGraph getGraph(String theName)
StardogException
- if the graph does not exist or there is an error getting the graphVirtualGraphInfo getVirtualGraphInfo(String theName)
VirtualGraphInfo
for the supplied graphtheName
- the (local) name of the virtual graph (without the virtual:// prefix)VirtualGraphInfo getVirtualGraphInfoOrNull(String theName)
VirtualGraphInfo
for the supplied graph or null if it does not existProperties getOptions(String theName)
default String getMappings(String vgName)
String getMappingsString(String theName, String theSyntax)
boolean removeGraph(String theName)
true
if the virtual graph exists and was removed, false
if the virtual graph does not existStardogException
- if there is an error removing the graphvoid onlineGraph(String theName)
StardogException
- if there is an error reloading the graphdefault void addGraph(String theName, Properties theProps, Iterable<Statement> theMappings)
StardogException
- if there is already a registered virtual graph with the given name or if there is an error adding the graphvoid addGraph(String theName, String theDatabase, Properties theProps, Iterable<Statement> theMappings)
StardogException
- if there is already a registered virtual graph with the given name or if there is an error adding the graphvoid addGraph(String theName, String theDataSource, String theDatabase, Properties theProps, Iterable<Statement> theMappings)
default void addGraph(String theName, Properties theProps, String theMappings)
void addGraph(String theName, String theDatabase, Properties theProps, String theMappings)
addGraph(String, String, String, Properties, String)
with null dataSourceStardogException
- if there is already a registered virtual graph with the given name or if there is an error adding the graphdefault void addGraph(String theName, String theDataSource, String theDatabase, Properties theProps, String theMappings)
StardogException
- if there is already a registered virtual graph with the given name or if there is an error adding the graphvoid addGraph(String theName, @Nullable String theDataSourceName, @Nullable Set<Statement> theMetadata, String theDatabase, Properties theProps, String theMappings)
StardogException
- if there is already a registered virtual graph with the given name or if there is an error adding the graphdefault void updateGraph(String theName, Properties theProps, Iterable<Statement> theMappings)
StardogException
- if there is an error updating the graphvoid updateGraph(String theName, String theDatabase, Properties theProps, Iterable<Statement> theMappings)
StardogException
- if there is an error updating the graphdefault void updateGraph(String theName, Properties theProps, String theMappings)
void updateGraph(String theName, String theDatabase, Properties theProps, String theMappings)
updateGraph(String, String, String, Properties, String)
with null dataSourceStardogException
- if there is an error updating the graphdefault void updateGraph(String theName, String theDataSource, String theDatabase, Properties theProps, String theMappings)
StardogException
- if there is an error updating the graphvoid updateGraph(String theName, @Nullable String theDataSourceName, @Nullable Set<Statement> theMetadata, String theDatabase, Properties theProps, String theMappings)
default void importGraph(String theDatabase, Properties theProps, String theMappings, String theNamedGraph, boolean theRemoveAll)
importGraph(String, String, Properties, String, String, boolean)
with a null DataSourcevoid importGraph(String theDatabase, @Nullable String theDataSource, Properties theProps, String theMappings, String theNamedGraph, boolean theRemoveAll)
void importFile(String theMappings, Properties theProperties, String theDb, IRI theNg, File theFile, VirtualGraphAdminConnection.InputFileType theFormat)
void importFile(String theMappings, Properties theProperties, String theDb, IRI theNg, InputStream theData, VirtualGraphAdminConnection.InputFileType theFormat)
void addDataSource(String theName, Properties theProps)
default void updateDataSource(String theName, Properties theOptions)
default void updateDataSource(String theName, Properties theOptions, boolean theForce)
void updateDataSource(String theName, @Nullable Set<Statement> theMetadata, Properties theOptions, boolean theForce, boolean theShareable)
boolean removeDataSource(String theName, boolean theForce)
theForce
void shareDataSource(String theName)
theName
- the (local) name of the data sourceStardogException
- if the data source is not found or there is an error making the data source sharableCollection<DataSourceInfo> getDataSourceInfos()
void onlineDataSource(String theName)
StardogException
- if there is an error reloading the data sourceDataSourceInfo getDataSourceInfo(String theName)
IllegalArgumentException
- if DataSource is not founddefault DataSourceInfo getDataSourceInfoOrNull(String theName)
Properties getDataSourceOptions(String theName)
@Beta Set<Statement> getDataSourceMetadata(String theName)
void refreshMetadata(String theDataSourceName, @Nullable String theTableName)
theTableName
is null
, refresh
metadata for all tables that have been loaded through the data source.
Call this if the schema (column names or data types) has changed for tables accessed by the data source, or if
tables were created or dropped since the data source was created or refreshed.theDataSourceName
- local name of the data sourcetheTableName
- name of the table (eg. myschema.mytable or mytable)IllegalArgumentException
- if table was provided but not foundvoid applyMetadataDiff(String theDataSourceName, Set<Statement> theAdded, Set<Statement> theRemoved, int theCrc, Map<String,Boolean> theVgAvailability)
replaceDataSourceMetadata(java.lang.String, java.util.Collection<com.stardog.stark.Statement>)
but also reloads dependent virtual graphs.
This is intended for use in a cluster replication context only.void refreshCounts(String theDataSourceName, @Nullable String theTableName)
theTableName
is null
, refresh counts for all tables that have been loaded through the data source.theDataSourceName
- local name of the data sourcetheTableName
- name of the table (eg. myschema.mytable or mytable)IllegalArgumentException
- if table was provided but has not been loaded by a virtual graph@Beta void replaceDataSourceMetadata(String theName, Collection<Statement> theStatements)
DataSourceQueryResult queryDataSource(String theName, String theQuery, String theTimeout)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.