Class GeneratePubmedQueryService

  • All Implemented Interfaces:
    GenerateQueryService

    public class GeneratePubmedQueryService
    extends Object
    implements GenerateQueryService
    This class is an implementation of GenerateQueryService Represents a service that generates the pubmed query which is used to retrieve the records. This is based on a given item.
    Author:
    Jonas - (jonas at atmire dot com)
    • Constructor Detail

      • GeneratePubmedQueryService

        public GeneratePubmedQueryService()
    • Method Detail

      • generateQueryForItem

        public Query generateQueryForItem​(Item item)
                                   throws MetadataSourceException
        Create a Query object based on a given item. If the item has at least 1 value for dc.identifier.doi, the first one will be used. If no DOI is found, the title will be used. When no DOI or title is found, an null object is returned instead.
        Specified by:
        generateQueryForItem in interface GenerateQueryService
        Parameters:
        item - the Item to create a Query from
        Throws:
        MetadataSourceException