| java.lang.Object com.hp.hpl.jena.util.LocationMapper
LocationMapper | public class LocationMapper (Code) | | Alternative locations for URIs. Maintains two maps:
single item alternatives and alternative prefixes.
To suggest an alternative location, first check the single items,
then check the prefixes.
A LocationMapper can be configured by an RDF file. The default for this
is "etc/location-mapping.n3".
There is a default LocationMapper which is used by the global @link{FileManager}.
See Also: FileManager author: Andy Seaborne version: $Id: LocationMapper.java,v 1.21 2008/01/02 12:07:44 andy_seaborne Exp $ |
DEFAULT_PATH | final public static String DEFAULT_PATH(Code) | | The default path for searching for the location mapper
|
GlobalMapperSystemProperty1 | final public static String GlobalMapperSystemProperty1(Code) | | |
GlobalMapperSystemProperty2 | final public static String GlobalMapperSystemProperty2(Code) | | |
LocationMapper | public LocationMapper()(Code) | | Create a LocationMapper with no mapping yet
|
LocationMapper | public LocationMapper(LocationMapper locMapper)(Code) | | Create a LocationMapper made like another one
This is a deep copy of the location and prefix maps..
|
LocationMapper | public LocationMapper(String config)(Code) | | Create a LocationMapper from a config file
|
altMapping | public String altMapping(String uri, String otherwise)(Code) | | 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.
Parameters: uri - Parameters: otherwise - The alternative location choosen |
hashCode | public int hashCode()(Code) | | |
listAltEntries | public Iterator listAltEntries()(Code) | | Iterate over all the entries registered
|
listAltPrefixes | public Iterator listAltPrefixes()(Code) | | Iterate over all the prefixes registered
|
makeGlobal | public static LocationMapper makeGlobal()(Code) | | Make a location mapper from the path settings
|
removeAltPrefix | public void removeAltPrefix(String uriPrefix)(Code) | | |
setGlobalLocationMapper | public static void setGlobalLocationMapper(LocationMapper globalLocationMapper)(Code) | | Set the global lcoation mapper. (as returned by get())
If called before any call to get(), then the usual default global location mapper is not created
Parameters: globalLocationMapper - |
|
|