Did you know? SWI-Prolog has a pack to access Pubmed DataSearch Documentation:
SWI-Prolog owl logoPredicate source_file/2