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 Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void add​(Node graphNode, java.lang.String prefix, java.lang.String iriStr)
      Add a prefix, overwrites any existing association
      void delete​(Node graphNode, java.lang.String prefix)
      Delete a prefix mapping
      void deleteAll​(Node graphNode)
      Delete prefix mappings for a specific graph name.
      java.util.Iterator<PrefixEntry> get​(Node graphNode)  
      java.lang.String get​(Node graphNode, java.lang.String prefix)  
      boolean isEmpty()
      Return whether there are any prefix mappings or not (any graph).
      java.util.Iterator<Node> listGraphNodes()  
      default java.util.Iterator<org.apache.jena.atlas.lib.Pair<Node,​PrefixEntry>> listMappings()
      All the mappings.
      int size()
      Return the number of mappings.
    • Method Detail

      • get

        java.lang.String get​(Node graphNode,
                             java.lang.String prefix)
      • listGraphNodes

        java.util.Iterator<Node> listGraphNodes()
      • add

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

        void delete​(Node graphNode,
                    java.lang.String prefix)
        Delete a prefix mapping
      • deleteAll

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

        default java.util.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.