@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-upcoming-and-ongoing-events a grlc:grlc-query; dct:description "Returns all upcoming and ongoing events that are defined as Spaces, ordered by start date."; dct:license ; rdfs:label "Get upcoming and ongoing events"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix gen: prefix schema: prefix xsd: select ?event ?event_label ?date ?description ?np (\"^\" as ?np_label) 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 npx:introduces ?event . ?np np:hasAssertion ?a . } graph ?a { ?event a gen:Space . ?event a gen:Event . ?event rdfs:label ?event_label . ?event schema:startDate ?datetime . optional { ?event schema:endDate ?endDatetime . } optional { ?event dct:description ?description . } } bind(xsd:date(substr(str(?datetime), 0, 11)) as ?date) bind(xsd:date(substr(str(now()), 0, 11)) as ?today) optional { bind(xsd:date(substr(str(?endDatetime), 0, 11)) as ?endDate) } filter(?date >= ?today || (bound(?endDate) && ?endDate >= ?today)) } order by ?date""" . } 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-03-20T17:58:19Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:introduces sub:get-upcoming-and-ongoing-events; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "OU9wBN2jEshg0nYA91KtJhh8CAMOAl5c11I5/PJfiqEwTNPKHxvyRrlDGnTD154sxdLCUDRFTmHKAyiI8OsWv1bfoqDWBEeaJSZlmYfdRf4iE9a8NcEyPxEyYKsi5G/W6lvVzk7XdAHYRNW7AmnlIt7yNSypc5q1rq58hrLzup0="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }