Class LocationMapperAccept
java.lang.Object
org.apache.jena.riot.system.stream.LocationMapper
fr.mines_stetienne.ci.sparql_generate.stream.LocationMapperAccept
public class LocationMapperAccept
extends org.apache.jena.riot.system.stream.LocationMapper
Extends the LocationMapper class with content negociation capabilities.
- Author:
- Maxime Lefrançois
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a LocationMapperAccept with no mapping yetLocationMapperAccept(org.apache.jena.rdf.model.Model configurationModel) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAltEntry(LookUpRequest request, LookUpRequest alt) voidaddAltEntry(String uri, String alt) voidaddAltPrefix(String uriPrefix, String altPrefix) Deprecated.altMapping(String uri) 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.altRequest(LookUpRequest request) altRequest(LookUpRequest request, LookUpRequest otherwise) altRequest(String uri) altRequest(String uri, String otherwise) clone()Deep copy of location and prefix mapsvoidcopyFrom(LocationMapperAccept lmap2) voidcopyFrom(org.apache.jena.riot.system.stream.LocationMapper lmap2) booleangetAltEntry(LookUpRequest request) getAltEntry(String uri) Deprecated.getAltPrefix(String uriPrefix) Deprecated.inthashCode()Deprecated.Deprecated.voidremoveAltEntry(String uri) Deprecated.voidremoveAltPrefix(String uriPrefix) Deprecated.voidremoveAltRequest(LookUpRequest request) org.apache.jena.rdf.model.ModeltoModel()voidtoModel(org.apache.jena.rdf.model.Model model) toString()Methods inherited from class org.apache.jena.riot.system.stream.LocationMapper
containsMapping, isEmpty
-
Constructor Details
-
LocationMapperAccept
public LocationMapperAccept()Create a LocationMapperAccept with no mapping yet -
LocationMapperAccept
public LocationMapperAccept(org.apache.jena.rdf.model.Model configurationModel)
-
-
Method Details
-
clone
Deep copy of location and prefix maps- Overrides:
clonein classorg.apache.jena.riot.system.stream.LocationMapper
-
copyFrom
public void copyFrom(org.apache.jena.riot.system.stream.LocationMapper lmap2) - Overrides:
copyFromin classorg.apache.jena.riot.system.stream.LocationMapper
-
copyFrom
-
altMapping
- Overrides:
altMappingin classorg.apache.jena.riot.system.stream.LocationMapper
-
altRequest
-
altRequest
-
altMapping
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.- Overrides:
altMappingin classorg.apache.jena.riot.system.stream.LocationMapper- Parameters:
uri-otherwise-- Returns:
- The alternative location choosen
-
altRequest
-
altRequest
-
addAltEntry
- Overrides:
addAltEntryin classorg.apache.jena.riot.system.stream.LocationMapper
-
addAltEntry
-
addAltPrefix
Deprecated.- Overrides:
addAltPrefixin classorg.apache.jena.riot.system.stream.LocationMapper
-
listAltEntries
Deprecated.Iterate over all the entries registered- Overrides:
listAltEntriesin classorg.apache.jena.riot.system.stream.LocationMapper
-
listAltRequests
-
listAltPrefixes
Deprecated.Iterate over all the prefixes registered- Overrides:
listAltPrefixesin classorg.apache.jena.riot.system.stream.LocationMapper
-
removeAltEntry
Deprecated.- Overrides:
removeAltEntryin classorg.apache.jena.riot.system.stream.LocationMapper
-
removeAltRequest
-
removeAltPrefix
Deprecated.- Overrides:
removeAltPrefixin classorg.apache.jena.riot.system.stream.LocationMapper
-
getAltEntry
Deprecated.- Overrides:
getAltEntryin classorg.apache.jena.riot.system.stream.LocationMapper
-
getAltEntry
-
getAltPrefix
Deprecated.- Overrides:
getAltPrefixin classorg.apache.jena.riot.system.stream.LocationMapper
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.jena.riot.system.stream.LocationMapper
-
equals
- Overrides:
equalsin classorg.apache.jena.riot.system.stream.LocationMapper
-
toString
- Overrides:
toStringin classorg.apache.jena.riot.system.stream.LocationMapper
-
toModel
public org.apache.jena.rdf.model.Model toModel()- Overrides:
toModelin classorg.apache.jena.riot.system.stream.LocationMapper
-
toModel
public void toModel(org.apache.jena.rdf.model.Model model) - Overrides:
toModelin classorg.apache.jena.riot.system.stream.LocationMapper
-