Interface StoragePrefixes

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 Details

    • get

      String get(Node graphNode, String prefix)
    • get

      Iterator<PrefixEntry> get(Node graphNode)
    • listGraphNodes

      Iterator<Node> listGraphNodes()
    • add

      void add(Node graphNode, String prefix, String iriStr)
      Add a prefix, overwrites any existing association
    • delete

      void delete(Node graphNode, String prefix)
      Delete a prefix mapping
    • deleteAll

      void deleteAll(Node graphNode)
      Delete prefix mappings for a specific graph name.
    • listMappings

      default Iterator<org.apache.jena.atlas.lib.Pair<Node,PrefixEntry>> listMappings()
      All the mappings. This includes the "dataset" mapping with Node Prefixes.nodeDataset.
    • isEmpty

      boolean isEmpty()
      Return whether there are any prefix mappings or not (any graph).
    • size

      int size()
      Return the number of mappings.