Skip to content

Commit

Permalink
add biography texts for BNet person entities to biography retrieve en…
Browse files Browse the repository at this point in the history
…dpoint
  • Loading branch information
yoge1 committed Oct 19, 2023
1 parent 1b7706f commit 0f226a5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions intavia_backend/sparql/bulk_retrieve_biographies_v2_1.sparql
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
PREFIX idmcore: <http://www.intavia.eu/idm-core/>
PREFIX bgn: <http://data.biographynet.nl/rdf/>

SELECT ?bioText ?bioAbstract ?bioID
SELECT ?bioText ?bioAbstract ?biotext ?bioID

{% include 'add_datasets_v2_1.sparql' %}

WHERE {
VALUES ?bioID { {% for id in ids %}<{{id}}> {% endfor %} }
?bioID idmcore:full_bio_link ?bioText .
OPTIONAL {?bioID idmcore:short_bio_link ?bioAbstract .}
{ ?bioID idmcore:full_bio_link ?bioText .
OPTIONAL {?bioID idmcore:short_bio_link ?bioAbstract .} }
UNION
{ ?bioID bgn:hasBioParts ?bioparts .
?bioparts bgn:text ?biotext .
FILTER NOT EXISTS { ?bioparts bgn:hasFigure ?fig . } }
}

0 comments on commit 0f226a5

Please sign in to comment.