diff --git a/iis-wf/iis-wf-referenceextraction/src/main/resources/eu/dnetlib/iis/wf/referenceextraction/community/main_sqlite/oozie_app/lib/scripts/communitiesextract.sql b/iis-wf/iis-wf-referenceextraction/src/main/resources/eu/dnetlib/iis/wf/referenceextraction/community/main_sqlite/oozie_app/lib/scripts/communitiesextract.sql index e38e17bbb..4d2dab937 100644 --- a/iis-wf/iis-wf-referenceextraction/src/main/resources/eu/dnetlib/iis/wf/referenceextraction/community/main_sqlite/oozie_app/lib/scripts/communitiesextract.sql +++ b/iis-wf/iis-wf-referenceextraction/src/main/resources/eu/dnetlib/iis/wf/referenceextraction/community/main_sqlite/oozie_app/lib/scripts/communitiesextract.sql @@ -73,7 +73,14 @@ setschema 'docid,prev,middle,next' select c1, textwindow2s(keywords(filterstopwo ), grants where conceptLabel="INSPIRED RIs" and regexprmatches("\bMIS|INSPIRED", context) ) group by docid - +-- NBFC +union all +select jdict('documentId',docid, 'conceptId', conceptId, 'confidenceLevel', 0.8,'textsnippet',context) as c1 from ( + select docid, conceptId, conceptLabel, prev||" "||middle||" "||next as context + from ( + setschema 'docid,prev,middle,next' select c1, textwindow2s(keywords(lower(c2)),7,4,3, 'national biodiversity future cent') from pubs where c2 is not null + ),grants where conceptLabel="Italian National Biodiversity Future Center" + ) group by docid union all -- DARIAH