package no.deichman.services.utils;


import java.util.HashMap;
import java.util.Map;

import com.hp.hpl.jena.shared.PrefixMapping;
import com.hp.hpl.jena.vocabulary.RDFS;

import no.deichman.services.uridefaults.BaseURI;
import no.deichman.services.uridefaults.BaseURIDefault;

public class DefaultPrefixes {

    Map<String,String> prefixMapping = new HashMap<String,String>();
    BaseURI baseURI;

    DefaultPrefixes(){
    }

    DefaultPrefixes(BaseURI baseURI){
        this.baseURI = baseURI;
        setPrefixes();
    }
    
    private void setPrefixes(){
        prefixMapping.put("rdfs", RDFS.getURI());
        prefixMapping.put("deichman", this.baseURI.getOntologyURI());
    }

    public void setPrefix(String prefix, String ns){
        prefixMapping.put(prefix, ns);
    }

    public String getNS(String prefix) {
        return prefixMapping.get(prefix);
    }

    public Map<String, String> getDefaultNSes() {
        return prefixMapping;
    }
}

package no.deichman.services.utils;


import java.util.HashMap;
import java.util.Map;

import com.hp.hpl.jena.vocabulary.RDFS;

import no.deichman.services.uridefaults.BaseURI;

public class DefaultPrefixes {

    Map<String,String> prefixMapping = new HashMap<String,String>();
    BaseURI baseURI;

    DefaultPrefixes(){
    }

    DefaultPrefixes(BaseURI baseURI){
        this.baseURI = baseURI;
        setPrefixes();
    }
    
    private void setPrefixes(){
        prefixMapping.put("rdfs", RDFS.getURI());
        prefixMapping.put("deichman", this.baseURI.getOntologyURI());
    }

    public void setPrefix(String prefix, String ns){
        prefixMapping.put(prefix, ns);
    }

    public String getNS(String prefix) {
        return prefixMapping.get(prefix);
    }

    public Map<String, String> getDefaultNSes() {
        return prefixMapping;
    }
}

Remove unused dependencies