java.lang.Object
org.apache.jena.tdb1.store.DatasetPrefixesTDB
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,DatasetPrefixStorage
Dataset prefixes; a table of nodes with prefix-centric operations. The table is G-P-U
where G is a graph name as a URI (a URI for <> is used for the default graph), P is a
string (the prefix) and U is the IRI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.apache.jena.riot.system.PrefixMapReturn a PrefixMapping for the datasetorg.apache.jena.riot.system.PrefixMapgetPrefixMap(String graphName) Return a PrefixMapping for a named graphReturn the set of graph names for which there might be prefix mappingsvoidinsertPrefix(String graphName, String prefix, String uri) Add a prefix mapping for a specific graph (or null for dataset, not a specific graph)Get the prefix string associated with a URI string for a specific graph (or null for dataset, not a specific graph)readPrefix(String graphName, String prefix) Get the URI string associated with a prefix string for a specific graph (or null for dataset, not a specific graph)readPrefixMap(String graphName) Return the mappings for a specific graph.voidremoveAllFromPrefixMap(String graphName) Remove all associations for a specific graph.voidremoveFromPrefixMap(String graphName, String prefix) Remove the association of a prefix for a specific graphvoidsync()
-
Constructor Details
-
DatasetPrefixesTDB
-
-
Method Details
-
insertPrefix
Description copied from interface:DatasetPrefixStorageAdd a prefix mapping for a specific graph (or null for dataset, not a specific graph)- Specified by:
insertPrefixin interfaceDatasetPrefixStorage
-
graphNames
Description copied from interface:DatasetPrefixStorageReturn the set of graph names for which there might be prefix mappings- Specified by:
graphNamesin interfaceDatasetPrefixStorage
-
readPrefix
Description copied from interface:DatasetPrefixStorageGet the URI string associated with a prefix string for a specific graph (or null for dataset, not a specific graph)- Specified by:
readPrefixin interfaceDatasetPrefixStorage
-
readByURI
Description copied from interface:DatasetPrefixStorageGet the prefix string associated with a URI string for a specific graph (or null for dataset, not a specific graph)- Specified by:
readByURIin interfaceDatasetPrefixStorage
-
readPrefixMap
Description copied from interface:DatasetPrefixStorageReturn the mappings for a specific graph. Do not change this map- Specified by:
readPrefixMapin interfaceDatasetPrefixStorage
-
removeFromPrefixMap
Description copied from interface:DatasetPrefixStorageRemove the association of a prefix for a specific graph- Specified by:
removeFromPrefixMapin interfaceDatasetPrefixStorage
-
removeAllFromPrefixMap
Description copied from interface:DatasetPrefixStorageRemove all associations for a specific graph.- Specified by:
removeAllFromPrefixMapin interfaceDatasetPrefixStorage
-
getNodeTupleTable
-
getPrefixMap
public org.apache.jena.riot.system.PrefixMap getPrefixMap()Return a PrefixMapping for the dataset- Specified by:
getPrefixMapin interfaceDatasetPrefixStorage
-
getPrefixMap
Return a PrefixMapping for a named graph- Specified by:
getPrefixMapin interfaceDatasetPrefixStorage
-
close
public void close()- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-
sync
public void sync()- Specified by:
syncin interfaceorg.apache.jena.atlas.lib.Sync
-