com.hp.hpl.jena.sparql.core
Interface DatasetPrefixStorage

All Superinterfaces:
Closeable, Sync

public interface DatasetPrefixStorage
extends Closeable, Sync

Abstract of prefix storage for graphs in an RDF dataset


Method Summary
 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 their might be prefix mappings
 void insertPrefix(String graphName, String prefix, String uri)
          Add a prefix mapping for a specific graph
 void loadPrefixMapping(String graphName, PrefixMapping pmap)
          Copy in a set of mappings
 String readByURI(String graphName, String uriStr)
          Get the prefix string associated with a URI string for a specific graph (or null)
 String readPrefix(String graphName, String prefix)
          Get the URI string associated with a prefix string for a specific graph (or null)
 Map<String,String> readPrefixMap(String graphName)
          Return the mappings 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.openjena.atlas.lib.Closeable
close
 
Methods inherited from interface org.openjena.atlas.lib.Sync
sync
 

Method Detail

graphNames

Set<String> graphNames()
Return the set of graph names for which their 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)


readByURI

String readByURI(String graphName,
                 String uriStr)
Get the prefix string associated with a URI string for a specific graph (or null)


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


loadPrefixMapping

void loadPrefixMapping(String graphName,
                       PrefixMapping pmap)
Copy in a set of mappings


removeFromPrefixMap

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


getPrefixMapping

PrefixMapping getPrefixMapping()
Return a PrefixMapping for the default (unnamed) graph


getPrefixMapping

PrefixMapping getPrefixMapping(String graphName)
Return a PrefixMapping for a named graph



Licenced under the Apache License, Version 2.0