@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-presentations-for-event a grlc:grlc-query; dct:description "Returns all presentations of the given event, with label, date, time, location, and the people involved - the presenter first where known, then the authors - plus the nanopub link, in chronological order. Reads both the http:// and https:// schema.org namespaces."; dct:license ; rdfs:label "Get presentations for event"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix wd: prefix schema: prefix schemaold: prefix foaf: prefix pav: select ?presentation ?presentation_label ?date ?time ?location ?people_multi_iri ?people_label_multi ?np (\"^\" as ?np_label) (?np as ?override_target) where { { select ?np ?presentation ?presentation_label ?startDate ?endDate ?location ?olddate (group_concat(distinct ?spk; separator=\" \") as ?spkIris) (group_concat(distinct ?spkLabel; separator=\"\\n\") as ?spkNames) (group_concat(distinct ?auth; separator=\" \") as ?authIris) (group_concat(distinct ?authLabel; separator=\"\\n\") as ?authNames) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } ?np dct:created ?npdate . ?np np:hasAssertion ?a . ?np np:hasPublicationInfo ?pi . ?np npx:introduces ?presentation . } { select ?presentation (max(?npdate2) as ?latestdate) where { graph npa:graph { ?np2 npa:hasValidSignatureForPublicKeyHash ?pubkey2 . filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . } filter not exists { ?np2 npx:hasNanopubType npx:ExampleNanopub . } ?np2 dct:created ?npdate2 . ?np2 npx:introduces ?presentation . } } group by ?presentation } filter(?npdate = ?latestdate) values ?_event_multi_iri {} graph ?a { ?presentation a wd:Q604733 . ?presentation dct:isPartOf ?_event_multi_iri . } optional { graph ?a { ?presentation rdfs:label ?presentation_label . } } optional { graph ?a { ?presentation schema:startDate ?startDateA . } } optional { graph ?a { ?presentation schemaold:startDate ?startDateB . } } optional { graph ?a { ?presentation schema:endDate ?endDateA . } } optional { graph ?a { ?presentation schemaold:endDate ?endDateB . } } optional { graph ?a { ?presentation schema:location ?locationA . } } optional { graph ?a { ?presentation schemaold:location ?locationB . } } optional { graph ?a { ?presentation dct:date ?olddate . } } optional { graph ?a { ?presentation wd:P823 ?spk . } optional { graph ?pi { ?spk foaf:name ?spkName . } } bind(coalesce(?spkName, str(?spk)) as ?spkLabel) } optional { graph ?a { ?presentation pav:authoredBy ?auth . } filter(!bound(?spk) || str(?auth) != str(?spk)) optional { graph ?pi { ?auth foaf:name ?authName . } } bind(coalesce(?authName, str(?auth)) as ?authLabel) } bind(coalesce(?startDateA, ?startDateB) as ?startDate) bind(coalesce(?endDateA, ?endDateB) as ?endDate) bind(coalesce(?locationA, ?locationB) as ?location) } group by ?np ?presentation ?presentation_label ?startDate ?endDate ?location ?olddate } bind(coalesce(strbefore(str(?startDate), \"T\"), str(?olddate)) as ?date) bind(substr(strafter(str(?startDate), \"T\"), 1, 5) as ?starttime) bind(substr(strafter(str(?endDate), \"T\"), 1, 5) as ?endtime) bind(coalesce(concat(?starttime, \"\\u2013\", ?endtime), ?starttime) as ?time) bind(coalesce(str(?startDate), str(?olddate)) as ?sortkey) bind(if(strlen(?spkIris) > 0 && strlen(?authIris) > 0, concat(?spkIris, \" \", ?authIris), concat(?spkIris, ?authIris)) as ?people_multi_iri) bind(if(strlen(?spkNames) > 0 && strlen(?authNames) > 0, concat(?spkNames, \"\\n\", ?authNames), concat(?spkNames, ?authNames)) as ?people_label_multi) } order by ?sortkey""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-08-28T11:28:13Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-presentations-for-event; npx:supersedes ; rdfs:label "Get presentations for event"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "OgS3DzpXudtiVuTDwxqhDyvMTVGpPPk1jLXWElPmJ/PKKVwWsJRts/QLAlWFbpr9XlBvc5M+us6v/7lFrTbKKKd5iW/Ivg6qB8PJPYrVf+X5GKI0VwRNB3cBbdvieMpoa1yDryNgWDJwT7ZYHg4hJhAybV7mD9W0QFK0/82B+L4="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }