Skip to content

Commit

Permalink
Update communitiesextract.sql - add label
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfouf authored Nov 26, 2024
1 parent 9b0fac3 commit f4e4e60
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,12 @@ setschema 'docid,prev,middle,next' select c1, textwindow2s(keywords(filterstopwo

-- NBFC
union all
select jdict('documentId',docid, 'conceptId', 'nbfc', 'confidenceLevel', 0.8,'textsnippet',context) as c1 from (
select docid, prev||" "||middle||" "||next as context
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
Expand Down

0 comments on commit f4e4e60

Please sign in to comment.