public interface DatasetPrefixStorage extends org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync
| Modifier and Type | Method and Description |
|---|---|
PrefixMapping |
getPrefixMapping()
Return a PrefixMapping for the default (unnamed) graph.
|
PrefixMapping |
getPrefixMapping(String graphName)
Return a PrefixMapping for a named graph
|
Set<String> |
graphNames()
Return the set of graph names for which there might be prefix mappings
|
void |
insertPrefix(String graphName,
String prefix,
String uri)
Add a prefix mapping for a specific graph (or null for dataset, not a specific graph)
|
void |
loadPrefixMapping(String graphName,
PrefixMapping pmap)
Copy the prefixes for a graph into the given
PrefixMapping |
String |
readByURI(String graphName,
String uriStr)
Get the prefix string associated with a URI string for a specific graph (or null for dataset, not a specific graph)
|
String |
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)
|
Map<String,String> |
readPrefixMap(String graphName)
Return the mappings for a specific graph.
|
void |
removeAllFromPrefixMap(String graphName)
Remove all associations for a specific graph.
|
void |
removeFromPrefixMap(String graphName,
String prefix)
Remove the association of a prefix for a specific graph
|
closesyncSet<String> graphNames()
String readPrefix(String graphName, String prefix)
String readByURI(String graphName, String uriStr)
Map<String,String> readPrefixMap(String graphName)
void insertPrefix(String graphName, String prefix, String uri)
void loadPrefixMapping(String graphName, PrefixMapping pmap)
PrefixMappinggraphName - Graph namepmap - Destination.void removeFromPrefixMap(String graphName, String prefix)
void removeAllFromPrefixMap(String graphName)
PrefixMapping getPrefixMapping()
PrefixMapping getPrefixMapping(String graphName)
Licenced under the Apache License, Version 2.0