java.lang.Object
org.apache.jena.riot.system.PrefixMapFactory
Factory which provides prefix maps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrefixMap
create()
Creates a new prefix map.static PrefixMap
Creates a new prefix map,initialized from a Map of prefix to IRI string.static PrefixMap
Creates a new prefix map which starts with a copy of an existing prefix map.static PrefixMap
create
(org.apache.jena.shared.PrefixMapping pmap) Creates a new prefix map which starts with a copy of an existing map.static PrefixMap
Creates a new prefix map which is intended for use in outputstatic PrefixMap
createForOutput
(Map<String, String> pmap) Creates a new prefix map, initialized from a Map of prefix to IRI string.static PrefixMap
createForOutput
(PrefixMap pmap) Creates a new prefix map which is intended for use in output which starts with a copy of an existing mapstatic PrefixMap
createForOutput
(org.apache.jena.shared.PrefixMapping prefixMapping) Creates a new prefix map which is intended for use in output which starts with a copy of an existing map.static PrefixMap
Return an always-empty and immutable prefix mapstatic PrefixMap
Return an immutable view of the prefix map.
-
Constructor Details
-
PrefixMapFactory
public PrefixMapFactory()
-
-
Method Details
-
create
Creates a new prefix map.Will use whatever the version of ARQ you are using considers the default implementation, this may change from release to release.
- Returns:
- Prefix Map
-
create
Creates a new prefix map which starts with a copy of an existing prefix map.Will use whatever the version of ARQ you are using considers the default implementation, this may change from release to release.
- Parameters:
pmap
- Prefix Map to copy- Returns:
- Prefix Map
-
create
Creates a new prefix map,initialized from a Map of prefix to IRI string.Will use whatever the version of ARQ you are using considers the default implementation, this may change from release to release.
- Parameters:
pmap
- Mapping from prefix to IRI string- Returns:
- Prefix Map
-
createForOutput
Creates a new prefix map which is intended for use in outputWill use whatever the version of ARQ you are using considers the best implementation for output, this may change from release to release.
- Returns:
- Prefix Map
-
createForOutput
Creates a new prefix map which is intended for use in output which starts with a copy of an existing mapWill use whatever the version of ARQ you are using considers the best implementation for output, this may change from release to release.
- Parameters:
pmap
- Prefix Map to copy- Returns:
- Prefix Map
-
createForOutput
Creates a new prefix map, initialized from a Map of prefix to IRI string.- Parameters:
pmap
- Mapping from prefix to IRI string- Returns:
- Prefix Map
-
unmodifiablePrefixMap
Return an immutable view of the prefix map. ThrowsUnsupportedOperationException
on attempts to update it. Reflects changes made to the underlying map.- Parameters:
pmap
- PrefixMap- Returns:
- Prefix Map
-
emptyPrefixMap
Return an always-empty and immutable prefix map- Returns:
- Prefix Map
-