public class LocationMapper extends Object
FileManager
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PATH
The default path for searching for the location mapper
|
static String |
GlobalMapperSystemProperty1 |
static String |
GlobalMapperSystemProperty2 |
Constructor and Description |
---|
LocationMapper()
Deprecated.
Use
StreamManager and LocationMapper from org.apache.jena.riot.system.stream . |
LocationMapper(LocationMapper locMapper)
Deprecated.
Use
StreamManager and LocationMapper from org.apache.jena.riot.system.stream . |
LocationMapper(Model model)
Deprecated.
Use
StreamManager and LocationMapper from org.apache.jena.riot.system.stream . |
LocationMapper(String config)
Deprecated.
Use
StreamManager and LocationMapper from org.apache.jena.riot.system.stream . |
Modifier and Type | Method and Description |
---|---|
void |
addAltEntry(String uri,
String alt) |
void |
addAltPrefix(String uriPrefix,
String altPrefix) |
String |
altMapping(String uri) |
String |
altMapping(String uri,
String otherwise)
Apply mappings: first try for an exact alternative location, then
try to remap by prefix, finally, try the special case of filenames
in a specific base directory.
|
boolean |
equals(Object obj) |
static LocationMapper |
get()
Deprecated.
Use
StreamManager and LocationMapper from org.apache.jena.riot.system.stream . |
String |
getAltEntry(String uri) |
String |
getAltPrefix(String uriPrefix) |
static LocationMapper |
getInternal()
For use within Jena libraries only.
|
int |
hashCode() |
Iterator<String> |
listAltEntries()
Iterate over all the entries registered
|
Iterator<String> |
listAltPrefixes()
Iterate over all the prefixes registered
|
static LocationMapper |
makeGlobal()
Make a location mapper from the path settings
|
void |
processConfig(Model m) |
void |
removeAltEntry(String uri) |
void |
removeAltPrefix(String uriPrefix) |
static void |
setGlobalLocationMapper(LocationMapper globalLocationMapper)
Set the global location mapper.
|
Model |
toModel() |
void |
toModel(Model model) |
String |
toString() |
public static final String DEFAULT_PATH
public static final String GlobalMapperSystemProperty1
public static final String GlobalMapperSystemProperty2
@Deprecated public LocationMapper()
StreamManager
and LocationMapper
from org.apache.jena.riot.system.stream
.@Deprecated public LocationMapper(LocationMapper locMapper)
StreamManager
and LocationMapper
from org.apache.jena.riot.system.stream
.@Deprecated public LocationMapper(Model model)
StreamManager
and LocationMapper
from org.apache.jena.riot.system.stream
.LocationMappingVocab
public LocationMapper(String config)
StreamManager
and LocationMapper
from org.apache.jena.riot.system.stream
.public static LocationMapper getInternal()
@Deprecated public static LocationMapper get()
StreamManager
and LocationMapper
from org.apache.jena.riot.system.stream
.public static void setGlobalLocationMapper(LocationMapper globalLocationMapper)
get()
)
If called before any call to get(), then the usual default global location mapper is not createdglobalLocationMapper
- public static LocationMapper makeGlobal()
public String altMapping(String uri, String otherwise)
uri
- otherwise
- public void removeAltEntry(String uri)
public void removeAltPrefix(String uriPrefix)
public Model toModel()
public void toModel(Model model)
public void processConfig(Model m)
Licenced under the Apache License, Version 2.0