public class AGPrefixMapping extends Object implements PrefixMapping
PrefixMapping.Factory, PrefixMapping.IllegalPrefixException, PrefixMapping.JenaLockedException
Extended, Standard
Constructor and Description |
---|
AGPrefixMapping(AGGraph graph) |
Modifier and Type | Method and Description |
---|---|
PrefixMapping |
clearNsPrefixMap() |
String |
expandPrefix(String prefixed) |
Map<String,String> |
getNsPrefixMap() |
String |
getNsPrefixURI(String prefix) |
String |
getNsURIPrefix(String uri) |
boolean |
hasNoMappings() |
PrefixMapping |
lock() |
int |
numPrefixes() |
String |
qnameFor(String uri) |
PrefixMapping |
removeNsPrefix(String prefix) |
boolean |
samePrefixMappingAs(PrefixMapping other) |
PrefixMapping |
setNsPrefix(String prefix,
String uri) |
PrefixMapping |
setNsPrefixes(Map<String,String> map) |
PrefixMapping |
setNsPrefixes(PrefixMapping other) |
String |
shortForm(String uri) |
String |
toString() |
String |
toString(int max) |
PrefixMapping |
withDefaultMappings(PrefixMapping map) |
public AGPrefixMapping(AGGraph graph)
public String expandPrefix(String prefixed)
expandPrefix
in interface PrefixMapping
public Map<String,String> getNsPrefixMap()
getNsPrefixMap
in interface PrefixMapping
public String getNsPrefixURI(String prefix)
getNsPrefixURI
in interface PrefixMapping
public String getNsURIPrefix(String uri)
getNsURIPrefix
in interface PrefixMapping
public PrefixMapping lock()
lock
in interface PrefixMapping
public boolean hasNoMappings()
hasNoMappings
in interface PrefixMapping
public String qnameFor(String uri)
qnameFor
in interface PrefixMapping
public PrefixMapping removeNsPrefix(String prefix)
removeNsPrefix
in interface PrefixMapping
public PrefixMapping clearNsPrefixMap()
clearNsPrefixMap
in interface PrefixMapping
public boolean samePrefixMappingAs(PrefixMapping other)
samePrefixMappingAs
in interface PrefixMapping
public PrefixMapping setNsPrefix(String prefix, String uri)
setNsPrefix
in interface PrefixMapping
public PrefixMapping setNsPrefixes(PrefixMapping other)
setNsPrefixes
in interface PrefixMapping
public PrefixMapping setNsPrefixes(Map<String,String> map)
setNsPrefixes
in interface PrefixMapping
public String shortForm(String uri)
shortForm
in interface PrefixMapping
public int numPrefixes()
numPrefixes
in interface PrefixMapping
public PrefixMapping withDefaultMappings(PrefixMapping map)
withDefaultMappings
in interface PrefixMapping
public String toString(int max)
Copyright © 2021 Franz Inc.. All rights reserved.