triple-tools/queries/inm-ws-2026/q10.sparql
2026-10-14 15:16:05 +02:00

58 lines
1.9 KiB
SPARQL

# Q10: Show all projects and their start and end times
PREFIX dlthings: <https://concepts.datalad.org/s/things/v2/>
PREFIX xyzri: <https://concepts.datalad.org/s/demo-research-information/unreleased/>
SELECT (str(?start_time) as ?start) (str(?end_time) as ?end) ?title WHERE {
?project a xyzri:XYZProject .
?project dlthings:title ?title .
?project dlthings:started ?started .
?project dlthings:ended ?ended .
?started dlthings:at_time ?start_time .
?ended dlthings:at_time ?end_time .
} ORDER BY ?end_time ?start_time
#SELECT ?competition ?person WHERE {
# ?competition rdf:type xyzri:XYZCompetition .
# ?project dlprovmx:informed_by ?link .
# ?link rdf:type xyzri:XYZCommunication .
# ?link dlrelationsmx:roles frapo:FundingApplication .
# ?link rdf:object ?competition .
# ?project dlprovmx:associated_with ?link2 .
# ?link2 rdf:object ?person
#} ORDER BY ?ad
# Multiple occurences of compatitions:
# in public.jsonl
# xyzri:XYZCompetition "xyzrins:competitions/c2a58f79-34f6-49bd-a813-6ac41faf34d9"
# referenced by xyzri:XYZDocument "xyzrins:documents/28081c1c-6cb6-4555-b68d-3a990383b7bb"
# Q2: Who intends to work on or works on a proposal?
#PREFIX dlrelationsmx: <https://concepts.datalad.org/s/relations-mixin/unreleased/>
#PREFIX dlprovmx: <https://concepts.datalad.org/s/prov-mixin/unreleased/>
#PREFIX frapo: <http://purl.org/cerif/frapo/>
#PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
#PREFIX xyzra: <https://concepts.datalad.org/s/demo-rse-group/unreleased/>
#SELECT ?competition ?person WHERE {
# ?competition rdf:type xyzra:XYZCompetition .
# ?project dlprovmx:informed_by ?link .
# ?link rdf:type xyzra:XYZCommunication .
# ?link dlrelationsmx:roles frapo:FundingApplication .
# ?link rdf:object ?competition .
# ?project dlprovmx:associated_with ?link2 .
# ?link2 rdf:object ?person
#} ORDER BY ?ad