- All Known Implementing Classes:
StoragePrefixesEmpty,StoragePrefixesSimpleMem
public interface StoragePrefixes
Like PrefixMapping, only for a dataset which can have different prefix maps for different graphs.
There is a distinguished name Prefixes.nodeDataset that means the prefixes
apply to the dataset as a whole, not a specific graph.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a prefix, overwrites any existing associationvoidDelete a prefix mappingvoiddeleteAll(org.apache.jena.graph.Node graphNode) Delete prefix mappings for a specific graph name.Iterator<org.apache.jena.riot.system.PrefixEntry>get(org.apache.jena.graph.Node graphNode) booleanisEmpty()Return whether there are any prefix mappings or not (any graph).Iterator<org.apache.jena.graph.Node>default Iterator<org.apache.jena.atlas.lib.Pair<org.apache.jena.graph.Node,org.apache.jena.riot.system.PrefixEntry>> All the mappings.intsize()Return the number of mappings.
-
Method Details
-
get
-
get
-
listGraphNodes
Iterator<org.apache.jena.graph.Node> listGraphNodes() -
add
Add a prefix, overwrites any existing association -
delete
Delete a prefix mapping -
deleteAll
void deleteAll(org.apache.jena.graph.Node graphNode) Delete prefix mappings for a specific graph name. -
listMappings
default Iterator<org.apache.jena.atlas.lib.Pair<org.apache.jena.graph.Node,org.apache.jena.riot.system.PrefixEntry>> listMappings()All the mappings. This includes the "dataset" mapping with NodePrefixes.nodeDataset. -
isEmpty
boolean isEmpty()Return whether there are any prefix mappings or not (any graph). -
size
int size()Return the number of mappings.
-