/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.jena.sparql.core;

import java.util.Map ;
import java.util.Set ;

import org.apache.jena.atlas.lib.Closeable ;
import org.apache.jena.atlas.lib.Sync ;
import org.apache.jena.shared.PrefixMapping ;

/** Abstract of prefix storage for graphs in an RDF dataset */

public interface DatasetPrefixStorage extends Closeable, Sync
{
    /** Return the set of graph names for which there might be prefix mappings */ 
    public Set<String> graphNames() ;
    
    /** Get the URI string associated with a prefix string for a specific graph (or null) */ 
    public String readPrefix(String graphName, String prefix) ;
    /** Get the prefix string associated with a URI string for a specific graph (or null) */ 
    public String readByURI(String graphName, String uriStr) ;
    
    /** Return the mappings for a specific graph.  Do not change this map */ 
    public Map<String, String> readPrefixMap(String graphName) ;
    
    /** Add a prefix mapping for a specific graph */ 
    public void insertPrefix(String graphName, String prefix, String uri) ;
    
    /** Copy in a set of mappings */ 
    public void loadPrefixMapping(String graphName, PrefixMapping pmap) ;

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

    /** Return a PrefixMapping for the default (unnamed) graph */ 
    public PrefixMapping getPrefixMapping() ;

    /** Return a PrefixMapping for a named graph */ 
    public PrefixMapping getPrefixMapping(String graphName) ;
}

@@ -1891,32 +1891,149 @@
 opy 
-in a set of mappings
+the prefixes for a graph into the given %7B@link PrefixMapping%7D%0A     * @param graphName Graph name%0A     * @param pmap      Destination.%0A    
  */
- 
 %0A   

Make operation description clearer.