protected class LDPathUtilWebService.LDPathPrefixService extends Object implements org.apache.marmotta.platform.core.api.prefix.PrefixService
Constructor and Description |
---|
LDPathUtilWebService.LDPathPrefixService(Map<String,String> local) |
Modifier and Type | Method and Description |
---|---|
void |
add(String prefix,
String namespace) |
boolean |
containsNamespace(String namespace) |
boolean |
containsPrefix(String prefix) |
void |
forceAdd(String prefix,
String namespace) |
String |
getCurie(String uri) |
Map<String,String> |
getMappings() |
String |
getNamespace(String prefix) |
String |
getPrefix(String namespace) |
boolean |
remove(String prefix) |
String |
serializePrefixesSparqlDeclaration() |
String |
serializePrefixMapping() |
public boolean containsPrefix(String prefix)
containsPrefix
in interface org.apache.marmotta.platform.core.api.prefix.PrefixService
public boolean containsNamespace(String namespace)
containsNamespace
in interface org.apache.marmotta.platform.core.api.prefix.PrefixService
public String getNamespace(String prefix)
getNamespace
in interface org.apache.marmotta.platform.core.api.prefix.PrefixService
public String getPrefix(String namespace)
getPrefix
in interface org.apache.marmotta.platform.core.api.prefix.PrefixService
public Map<String,String> getMappings()
getMappings
in interface org.apache.marmotta.platform.core.api.prefix.PrefixService
public String getCurie(String uri)
getCurie
in interface org.apache.marmotta.platform.core.api.prefix.PrefixService
public void add(String prefix, String namespace) throws IllegalArgumentException, URISyntaxException
add
in interface org.apache.marmotta.platform.core.api.prefix.PrefixService
IllegalArgumentException
URISyntaxException
public void forceAdd(String prefix, String namespace)
forceAdd
in interface org.apache.marmotta.platform.core.api.prefix.PrefixService
public boolean remove(String prefix)
remove
in interface org.apache.marmotta.platform.core.api.prefix.PrefixService
public String serializePrefixMapping()
serializePrefixMapping
in interface org.apache.marmotta.platform.core.api.prefix.PrefixService
public String serializePrefixesSparqlDeclaration()
serializePrefixesSparqlDeclaration
in interface org.apache.marmotta.platform.core.api.prefix.PrefixService
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.