Class MCRGBVURLDetector

java.lang.Object
org.mycore.mods.identifier.MCRGBVURLDetector
All Implemented Interfaces:
MCRIdentifierDetector<URI>

public class MCRGBVURLDetector extends Object implements MCRIdentifierDetector<URI>
This Detector normalizes http://uri.gbv.de/document/gvk:ppn:834532662 to URI gvk:ppn:834532662.

TODO: maybe detect other identifier then ppn

  • Field Details

  • Constructor Details

    • MCRGBVURLDetector

      public MCRGBVURLDetector()
  • Method Details

    • detect

      public Optional<Map.Entry<String,String>> detect(URI resolvable)
      Specified by:
      detect in interface MCRIdentifierDetector<URI>
      Parameters:
      resolvable - some thing that can be resolved to a unique identifier
      Returns:
      a Map.Entry with the identifier type as key and the identifier as value. The Optional can be empty if no identifier can be detected or if a error occurs.