Class PrefixMapFactory
- java.lang.Object
-
- org.apache.jena.riot.system.PrefixMapFactory
-
public class PrefixMapFactory extends java.lang.ObjectFactory which provides prefix maps
-
-
Constructor Summary
Constructors Constructor Description PrefixMapFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PrefixMapcreate()Creates a new prefix map.static PrefixMapcreate(java.util.Map<java.lang.String,java.lang.String> pmap)Creates a new prefix map,initialized from a Map of prefix to IRI string.static PrefixMapcreate(PrefixMap pmap)Creates a new prefix map which starts with a copy of an existing prefix map.static PrefixMapcreate(PrefixMapping pmap)Creates a new prefix map which starts with a copy of an existing map.static PrefixMapcreateForOutput()Creates a new prefix map which is intended for use in outputstatic PrefixMapcreateForOutput(java.util.Map<java.lang.String,java.lang.String> pmap)Creates a new prefix map, initialized from a Map of prefix to IRI string.static PrefixMapcreateForOutput(PrefixMap pmap)Creates a new prefix map which is intended for use in output which starts with a copy of an existing mapstatic PrefixMapcreateForOutput(PrefixMapping pmap)Creates a new prefix map which is intended for use in output which starts with a copy of an existing map.static PrefixMapemptyPrefixMap()Return an always-empty and immutable prefix mapstatic PrefixMapunmodifiablePrefixMap(PrefixMap pmap)Return an immutable view of the prefix map.
-
-
-
Method Detail
-
create
public static PrefixMap 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
public static PrefixMap create(PrefixMap pmap)
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
public static PrefixMap create(PrefixMapping pmap)
Creates a new prefix map which starts with a copy of an existing map.Will use whatever the version of ARQ you are using considers the default implementation, this may change from release to release.
- Parameters:
pmap- PrefixMapping to copy- Returns:
- Prefix Map
-
create
public static PrefixMap create(java.util.Map<java.lang.String,java.lang.String> pmap)
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
public static PrefixMap 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
public 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 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
public static PrefixMap createForOutput(PrefixMapping pmap)
Creates a new prefix map which is intended for use in output which starts with a copy of an existing map.Will 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
public static PrefixMap createForOutput(java.util.Map<java.lang.String,java.lang.String> pmap)
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
public static PrefixMap unmodifiablePrefixMap(PrefixMap pmap)
Return an immutable view of the prefix map. ThrowsUnsupportedOperationExceptionon attempts to update it. Reflects changes made to the underlying map.- Parameters:
pmap- PrefixMap- Returns:
- Prefix Map
-
emptyPrefixMap
public static PrefixMap emptyPrefixMap()
Return an always-empty and immutable prefix map- Returns:
- Prefix Map
-
-