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 Details

    • LocationMapperAccept

      public LocationMapperAccept()
      Create a LocationMapperAccept with no mapping yet
    • LocationMapperAccept

      public LocationMapperAccept(org.apache.jena.rdf.model.Model configurationModel)
  • Method Details

    • clone

      public LocationMapperAccept clone()
      Deep copy of location and prefix maps
      Overrides:
      clone in class org.apache.jena.riot.system.stream.LocationMapper
    • copyFrom

      public void copyFrom(org.apache.jena.riot.system.stream.LocationMapper lmap2)
      Overrides:
      copyFrom in class org.apache.jena.riot.system.stream.LocationMapper
    • copyFrom

      public void copyFrom(LocationMapperAccept lmap2)
    • altMapping

      public String altMapping(String uri)
      Overrides:
      altMapping in class org.apache.jena.riot.system.stream.LocationMapper
    • altRequest

      public LookUpRequest altRequest(String uri)
    • altRequest

      public LookUpRequest altRequest(LookUpRequest request)
    • altMapping

      public 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.
      Overrides:
      altMapping in class org.apache.jena.riot.system.stream.LocationMapper
      Parameters:
      uri -
      otherwise -
      Returns:
      The alternative location choosen
    • altRequest

      public LookUpRequest altRequest(String uri, String otherwise)
    • altRequest

      public LookUpRequest altRequest(LookUpRequest request, LookUpRequest otherwise)
    • addAltEntry

      public void addAltEntry(String uri, String alt)
      Overrides:
      addAltEntry in class org.apache.jena.riot.system.stream.LocationMapper
    • addAltEntry

      public void addAltEntry(LookUpRequest request, LookUpRequest alt)
    • addAltPrefix

      @Deprecated public void addAltPrefix(String uriPrefix, String altPrefix)
      Deprecated.
      Overrides:
      addAltPrefix in class org.apache.jena.riot.system.stream.LocationMapper
    • listAltEntries

      @Deprecated public Iterator<String> listAltEntries()
      Deprecated.
      Iterate over all the entries registered
      Overrides:
      listAltEntries in class org.apache.jena.riot.system.stream.LocationMapper
    • listAltRequests

      public Iterator<LookUpRequest> listAltRequests()
    • listAltPrefixes

      @Deprecated public Iterator<String> listAltPrefixes()
      Deprecated.
      Iterate over all the prefixes registered
      Overrides:
      listAltPrefixes in class org.apache.jena.riot.system.stream.LocationMapper
    • removeAltEntry

      @Deprecated public void removeAltEntry(String uri)
      Deprecated.
      Overrides:
      removeAltEntry in class org.apache.jena.riot.system.stream.LocationMapper
    • removeAltRequest

      public void removeAltRequest(LookUpRequest request)
    • removeAltPrefix

      @Deprecated public void removeAltPrefix(String uriPrefix)
      Deprecated.
      Overrides:
      removeAltPrefix in class org.apache.jena.riot.system.stream.LocationMapper
    • getAltEntry

      @Deprecated public String getAltEntry(String uri)
      Deprecated.
      Overrides:
      getAltEntry in class org.apache.jena.riot.system.stream.LocationMapper
    • getAltEntry

      public LookUpRequest getAltEntry(LookUpRequest request)
    • getAltPrefix

      @Deprecated public String getAltPrefix(String uriPrefix)
      Deprecated.
      Overrides:
      getAltPrefix in class org.apache.jena.riot.system.stream.LocationMapper
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.apache.jena.riot.system.stream.LocationMapper
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class org.apache.jena.riot.system.stream.LocationMapper
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.jena.riot.system.stream.LocationMapper
    • toModel

      public org.apache.jena.rdf.model.Model toModel()
      Overrides:
      toModel in class org.apache.jena.riot.system.stream.LocationMapper
    • toModel

      public void toModel(org.apache.jena.rdf.model.Model model)
      Overrides:
      toModel in class org.apache.jena.riot.system.stream.LocationMapper