# New version, v1.2, of pub\_graph

**URL:** <https://swi-prolog.discourse.group/t/new-version-v1-2-of-pub-graph/6856>\
**Category:** Pack\
**Created:** [September 20, 2023, 9:19am UTC](https://swi-prolog.discourse.group/t/new-version-v1-2-of-pub-graph/6856 "2023-09-20T09:19:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicos](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@nicos](https://swi-prolog.discourse.group/u/nicos)\
**Post date:** [September 20, 2023, 9:19am UTC](https://swi-prolog.discourse.group/t/new-version-v1-2-of-pub-graph/6856/1 "2023-09-20T09:19:02Z")

</div>

After a hiatus of 5 years, a new version of pack(pub\_graph) is out.

pub\_graph allows the interrogation of PubMed ([https://pubmed.ncbi.nlm.nih.gov/](https://pubmed.ncbi.nlm.nih.gov/)) for searching and citation relations  
and [semanticscholar.org](http://semanticscholar.org) for citation relations only.

Version 1.2 drastically improves the search of multi word segments on pubmed and it incorporates what pubmed calls proximity matching on title, title/abstract and affiliation.

The new examples added to the pack documentation follow the end of this message.

Pack home page:  
[https://stoics.org.uk/~nicos/sware/pub\_graph](https://stoics.org.uk/~nicos/sware/pub_graph)

Static html docs:  
[https://stoics.org.uk/~nicos/sware/pub\_graph/doc/html/pub\_graph.html](https://stoics.org.uk/~nicos/sware/pub_graph/doc/html/pub_graph.html)

Nicos Angelopoulos

* * *

[https://stoics.org.uk/~nicos](https://stoics.org.uk/~nicos)

* * *

* * *

```prolog
?- 
     date(Date), pub_graph_search(title='Bayesian networks elucidate', Ids, true), length(Ids,Len).

Date = date(2023, 9, 20),
Ids = ['35379892'],
Len = 1.

?- 
     date(Date), pub_graph_search(title='Bayesian elucidate', Ids, true), length(Ids,Len).

Date = date(2023, 9, 20),
Ids = [],
Len = 0.

?- 
     date(Date), pub_graph_search(title='Bayesian elucidate', Ids, gap(1)), length(Ids, Len), pub_graph_summary_display(Ids, _, true).

----

1:35379892
	Author=[Angelopoulos N,Chatzipli A,Nangalia J,Maura F,Campbell PJ]
	Title=Bayesian networks elucidate complex genomic landscapes in cancer.

----

Date = date(2023, 9, 20),
Ids = ['35379892'],
Len = 1.

?-
     date(D),
     write('Appears in abstract: "explainable Artificial Intelligence models"'), nl,
     pub_graph_search('Title/Abstract'='explainable Artificial Intelligence models', Ids, true),
     pub_graph_summary_display(Ids).

1

...

10:32417928
	Author=[Payrovnaziri SN,Chen Z,Rengifo-Moreno P,Miller T,Bian J,Chen JH,Liu X,He Z]
	Title=Explainable artificial intelligence models using real-world electronic health record data: a systematic scoping review.

?- 
     date(D), pub_graph_search('Title/Abstract'='explainable Intelligence models', Ids, true).

D = date(2023, 9, 20),
Ids = [].

?- 
     date(D), pub_graph_search((tiab='explainable Intelligence models',affiliation=sanger), Ids, gap(1)).

D = date(2023, 9, 20),
Ids = ['35379892'].

```

* * *

* * *
