java.lang.Object
org.apache.jena.sparql.util.PrefixMapping2
- All Implemented Interfaces:
org.apache.jena.shared.PrefixMapping
A prefix mapping based on global and local mappings.
Updates go to the local (second) copy only.
Lookup looks in the local copy before the global copy.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.shared.PrefixMapping
org.apache.jena.shared.PrefixMapping.Factory, org.apache.jena.shared.PrefixMapping.IllegalPrefixException, org.apache.jena.shared.PrefixMapping.JenaLockedException
-
Field Summary
Fields inherited from interface org.apache.jena.shared.PrefixMapping
Extended, Standard
-
Constructor Summary
ConstructorDescriptionPrefixMapping2
(org.apache.jena.shared.PrefixMapping globalMapping) PrefixMapping2
(org.apache.jena.shared.PrefixMapping globalMapping, org.apache.jena.shared.PrefixMapping localMapping) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.shared.PrefixMapping
Clear the local prefix map, but leave the immutable global one aloneexpandPrefix
(String prefixed) org.apache.jena.shared.PrefixMapping
org.apache.jena.shared.PrefixMapping
getNsPrefixMap
(boolean includeGlobalMap) getNsPrefixURI
(String prefix) getNsURIPrefix
(String uri) boolean
org.apache.jena.shared.PrefixMapping
lock()
int
org.apache.jena.shared.PrefixMapping
removeNsPrefix
(String prefix) boolean
samePrefixMappingAs
(org.apache.jena.shared.PrefixMapping other) void
setGlobalPrefixMapping
(org.apache.jena.shared.PrefixMapping x) void
setLocalPrefixMapping
(org.apache.jena.shared.PrefixMapping x) org.apache.jena.shared.PrefixMapping
setNsPrefix
(String prefix, String uri) org.apache.jena.shared.PrefixMapping
setNsPrefixes
(Map<String, String> map) org.apache.jena.shared.PrefixMapping
setNsPrefixes
(org.apache.jena.shared.PrefixMapping other) org.apache.jena.shared.PrefixMapping
withDefaultMappings
(org.apache.jena.shared.PrefixMapping map)
-
Constructor Details
-
Method Details
-
getLocalPrefixMapping
public org.apache.jena.shared.PrefixMapping getLocalPrefixMapping() -
getGlobalPrefixMapping
public org.apache.jena.shared.PrefixMapping getGlobalPrefixMapping() -
setNsPrefix
- Specified by:
setNsPrefix
in interfaceorg.apache.jena.shared.PrefixMapping
- See Also:
-
PrefixMapping.setNsPrefix(java.lang.String, java.lang.String)
-
removeNsPrefix
- Specified by:
removeNsPrefix
in interfaceorg.apache.jena.shared.PrefixMapping
- See Also:
-
PrefixMapping.removeNsPrefix(java.lang.String)
-
clearNsPrefixMap
public org.apache.jena.shared.PrefixMapping clearNsPrefixMap()Clear the local prefix map, but leave the immutable global one alone- Specified by:
clearNsPrefixMap
in interfaceorg.apache.jena.shared.PrefixMapping
-
setNsPrefixes
- Specified by:
setNsPrefixes
in interfaceorg.apache.jena.shared.PrefixMapping
- See Also:
-
PrefixMapping.setNsPrefixes(java.util.Map)
-
getNsPrefixURI
- Specified by:
getNsPrefixURI
in interfaceorg.apache.jena.shared.PrefixMapping
- See Also:
-
PrefixMapping.getNsPrefixURI(java.lang.String)
-
getNsURIPrefix
- Specified by:
getNsURIPrefix
in interfaceorg.apache.jena.shared.PrefixMapping
- See Also:
-
PrefixMapping.getNsURIPrefix(java.lang.String)
-
getNsPrefixMap
- Specified by:
getNsPrefixMap
in interfaceorg.apache.jena.shared.PrefixMapping
- See Also:
-
PrefixMapping.getNsPrefixMap()
-
getNsPrefixMap
-
expandPrefix
- Specified by:
expandPrefix
in interfaceorg.apache.jena.shared.PrefixMapping
- See Also:
-
PrefixMapping.expandPrefix(java.lang.String)
-
shortForm
- Specified by:
shortForm
in interfaceorg.apache.jena.shared.PrefixMapping
- See Also:
-
PrefixMapping.shortForm(java.lang.String)
-
qnameFor
- Specified by:
qnameFor
in interfaceorg.apache.jena.shared.PrefixMapping
- See Also:
-
PrefixMapping.qnameFor(java.lang.String)
-
hasNoMappings
public boolean hasNoMappings()- Specified by:
hasNoMappings
in interfaceorg.apache.jena.shared.PrefixMapping
-
numPrefixes
public int numPrefixes()- Specified by:
numPrefixes
in interfaceorg.apache.jena.shared.PrefixMapping
-
lock
public org.apache.jena.shared.PrefixMapping lock()- Specified by:
lock
in interfaceorg.apache.jena.shared.PrefixMapping
- See Also:
-
PrefixMapping.lock()
-