Skip to content

Commit

Permalink
fix: adapts SPARQL event queries to use provided entities
Browse files Browse the repository at this point in the history
  • Loading branch information
sennierer committed Jul 7, 2023
1 parent a02e568 commit 84ab974
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions intavia_backend/sparql/retrieve_events_v2_1.sparql
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
?event a ?event_type .
?event ((bioc:had_participant_in_role|bioc:occured_in_the_presence_of_in_role)/^bioc:bearer_of)|crm:P7_took_place_at ?entity .
?event ((bioc:had_participant_in_role|bioc:occured_in_the_presence_of_in_role)/^bioc:bearer_of)|crm:P7_took_place_at ?entity_proxy .
?entity_proxy idmcore:proxy_for ?entity .
OPTIONAL {?event rdfs:label ?event_label }
OPTIONAL {?event bioc:had_participant_in_role|bioc:occured_in_the_presence_of_in_role ?role .
?role ^bioc:bearer_of ?entity .
?role ^bioc:bearer_of ?entity_proxy .
?role a ?role_type .
OPTIONAL {?role rdfs:label ?role_label}
}
OPTIONAL {?event crm:P7_took_place_at ?entity .
OPTIONAL {?event crm:P7_took_place_at ?entity_proxy .
?entity_proxy idmcore:proxy_for ?entity .
BIND("took place at" as ?role_label)
BIND(crm:P7_took_place_at as ?role_type)
}
Expand Down

0 comments on commit 84ab974

Please sign in to comment.