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;
    }
}

@@ -84,53 +84,8 @@
 p;%0A%0A
-import com.hp.hpl.jena.shared.PrefixMapping;%0A
 impo
@@ -173,64 +173,8 @@
 URI;
-%0Aimport no.deichman.services.uridefaults.BaseURIDefault;
 %0A%0Apu

Remove unused dependencies