Interface DatasetPrefixStorage

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 Type
    Method
    Description
    org.apache.jena.riot.system.PrefixMap
    Return a PrefixMapping for the dataset.
    org.apache.jena.riot.system.PrefixMap
    getPrefixMap(String graphName)
    Return a PrefixMapping for a named graph
    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)
    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)
    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.
    void
    Remove all associations for a specific graph.
    void
    removeFromPrefixMap(String graphName, String prefix)
    Remove the association of a prefix for a specific graph

    Methods inherited from interface org.apache.jena.atlas.lib.Closeable

    close

    Methods inherited from interface org.apache.jena.atlas.lib.Sync

    sync
  • Method Details

    • graphNames

      Set<String> graphNames()
      Return the set of graph names for which there might be prefix mappings
    • readPrefix

      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)
    • readByURI

      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)
    • readPrefixMap

      Map<String,String> readPrefixMap(String graphName)
      Return the mappings for a specific graph. Do not change this map
    • insertPrefix

      void insertPrefix(String graphName, String prefix, String uri)
      Add a prefix mapping for a specific graph (or null for dataset, not a specific graph)
    • removeFromPrefixMap

      void removeFromPrefixMap(String graphName, String prefix)
      Remove the association of a prefix for a specific graph
    • removeAllFromPrefixMap

      void removeAllFromPrefixMap(String graphName)
      Remove all associations for a specific graph.
    • getPrefixMap

      org.apache.jena.riot.system.PrefixMap getPrefixMap()
      Return a PrefixMapping for the dataset.
    • getPrefixMap

      org.apache.jena.riot.system.PrefixMap getPrefixMap(String graphName)
      Return a PrefixMapping for a named graph