- All Superinterfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync
- All Known Implementing Classes:
DatasetPrefixesTDB
public interface DatasetPrefixStorage
extends org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync
Abstract of prefix storage for graphs in an RDF dataset. This is more general than
a set of prefixes for a dataset; it has multiple prefix mappings by graph name.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.riot.system.PrefixMapReturn a PrefixMapping for the dataset.org.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 graphMethods inherited from interface org.apache.jena.atlas.lib.Closeable
closeMethods inherited from interface org.apache.jena.atlas.lib.Sync
sync
-
Method Details
-
graphNames
Return the set of graph names for which there might be prefix mappings -
readPrefix
Get the URI string associated with a prefix string for a specific graph (or null for dataset, not a specific graph) -
readByURI
Get the prefix string associated with a URI string for a specific graph (or null for dataset, not a specific graph) -
readPrefixMap
Return the mappings for a specific graph. Do not change this map -
insertPrefix
Add a prefix mapping for a specific graph (or null for dataset, not a specific graph) -
removeFromPrefixMap
Remove the association of a prefix for a specific graph -
removeAllFromPrefixMap
Remove all associations for a specific graph. -
getPrefixMap
org.apache.jena.riot.system.PrefixMap getPrefixMap()Return a PrefixMapping for the dataset. -
getPrefixMap
Return a PrefixMapping for a named graph
-