[ { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590/pubinfo", "@graph": [ { "@id": "https://orcid.org/0000-0002-1267-0234", "http://xmlns.com/foaf/0.1/name": [ { "@value": "Tobias Kuhn" } ] }, { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590", "http://purl.org/dc/terms/created": [ { "@value": "2026-09-15T07:22:37Z", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://purl.org/dc/terms/creator": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ], "http://purl.org/dc/terms/license": [ { "@id": "https://creativecommons.org/licenses/by/4.0/" } ], "http://purl.org/nanopub/x/introduces": [ { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590/get-recent-and-upcoming-events" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RA1PkOy-Jh3YIA6hSh-ShoKDcPLvMUQt9JbPfPoDeyAf4" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate": [ { "@id": "https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate": [ { "@id": "https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw" }, { "@id": "https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [ { "@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "CIMD/nxfIHFdxyI9aSVNGqdZ1evqUzObZxCV56HHbeXGIBiI705vh85+NbxsMOFaafvhanyzIyb/zkAtTTkmC7VZWm+9TC9myzqBWCK9+2g8JRsi+ewVN1EiQKSUUcHBoAKObrG8T0v44fKIuXToZdjfVvZ/4oT4ueqh7pqhM4M=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590/get-recent-and-upcoming-events", "http://purl.org/dc/terms/description": [ { "@value": "Returns all recent, ongoing, and upcoming events that are defined as Spaces. Events starting on the same day are listed with overarching spaces before their sub-spaces." } ], "http://purl.org/dc/terms/license": [ { "@id": "http://www.apache.org/licenses/LICENSE-2.0" } ], "@type": [ "https://w3id.org/kpxl/grlc/grlc-query" ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get recent and upcoming events" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/type/8ad572d99071cc1ba0c16e54087b43594bdd9e8b2cfb62d2a0b16945fc49e53c" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix gen: \nprefix schema: \nprefix xsd: \n\nselect ?event ?event_label ?status ?date ?np (\"^\" as ?np_label) where {\n graph npa:graph {\n ?np npa:hasValidSignatureForPublicKeyHash ?pubkey .\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\n filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . }\n ?np npx:introduces ?event .\n ?np np:hasAssertion ?a .\n ?np dct:created ?npDate .\n filter not exists {\n ?np2 npx:introduces ?event .\n ?np2 npa:hasValidSignatureForPublicKeyHash ?pubkey2 .\n filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . }\n ?np2 dct:created ?npDate2 .\n filter(?npDate2 > ?npDate)\n }\n }\n graph ?a {\n ?event a gen:Space .\n ?event a gen:Event .\n ?event rdfs:label ?event_label .\n ?event schema:startDate ?datetime .\n optional { ?event schema:endDate ?endDatetime . }\n\n }\n bind(if(exists { graph ?a { ?event gen:isSubSpaceOf ?parentSpace . } }, 1, 0) as ?subSpaceOrder)\n bind(xsd:date(substr(str(?datetime), 0, 11)) as ?date)\n bind(xsd:date(substr(str(now()), 0, 11)) as ?today)\n optional { bind(xsd:date(substr(str(?endDatetime), 0, 11)) as ?endDate) }\n bind(if(bound(?endDate), ?endDate, ?date) as ?effectiveEnd)\n filter(?date >= ?today || ?effectiveEnd >= ?today - \"P7D\"^^xsd:duration)\n bind(if(?effectiveEnd < ?today, 1, if(?date > ?today, 3, 2)) as ?statusOrder)\n bind(if(?date > ?today, \"upcoming\", if(?effectiveEnd >= ?today, \"ongoing\", \"recently concluded\")) as ?status)\n} order by ?statusOrder ?date ?subSpaceOrder ?event_label" } ] } ] }, { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590/Head", "@graph": [ { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAf_IS0aQR4eBGyNtlpRDTv6y861h2JgLbrk9GcjNm590/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] } ]