[ { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0001-8492-0354" } ] } ] }, { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0/pubinfo", "@graph": [ { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0", "http://purl.org/dc/terms/created": [ { "@value": "2026-09-23T15:43:57Z", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://purl.org/dc/terms/creator": [ { "@id": "https://orcid.org/0000-0001-8492-0354" } ], "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/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0/get-recent-and-upcoming-events-by-topic" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAe6w4R0RvtAj1nfhcKcpifRoDWHq3EBdOnRf-Ds8Flno" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get recent and upcoming events by topic" } ], "http://www.w3.org/2004/02/skos/core#changeNote": [ { "@value": "Makes the topic parameter optional: with no topic given the query returns every event, as the unfiltered listing does, instead of nothing." } ], "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/RAKc76yHLDbloE6ObluzYQsfX37v6qrZXbYeIKpe8-YUo" }, { "@id": "https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw" }, { "@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/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA+i9DV8ynzO944pYkYsDwtlqJHuk+b7FQt6Bb4TIQSDX3jGUURn6WpaNwESHmgMLWSydaH5XlabMzuqpPL4iyB+IAzvwIxdJBLhe39EQMu2j+FZ/5d/xu/gO3nZw2KoEvJ7cJisabuI05OylIRSJ+OG5CmzFxnjojUEJeCFi1njY1InhXrb0yHud9b1ifzweoN6YYOBecKs1gTOaT2bf+t4Wgzg3M0PmRVZ4F0OALsnh4T5+x7kFtiPcDKNpORi585JjKCZ4kczIF6oUKcwgC0kmIY97jtLqSLcXRkxHx5CDI6qz4XlRFs1ZbCUdSlzjdPZAkaBcNem1gIhWzkHkEnQIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "qUZGdUSPUOd5Pe597JoJsgM/qYITPDngP+IJeWnoTak7TPKHhtPanU53MeW75X/SOHpBo/Pfig1zn4CjaDy16eqEU1Q5dptQwauMxjpTKsBX67J7bb3ls0LDykHYPNBzJFKnADJL9au2zs0aaA0O7o+nkL7aIi6bytm+0nW3wNZucOXUAznMNHAQarnxwt9ThIiigPInbP4qnamLkMbG7EjewZzriSatzPPJZFDjti1T0FAWzyjTpoZy8AzLYY4DDeu9/fDEW3F+K32q0zYo1FPg7yXqhQREwWDcxFF3tPYNPYUj/bXyHB86R3c1EMNFQYSso1i+w3RSy+pIfI0IPA==" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0001-8492-0354" } ] } ] }, { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0/get-recent-and-upcoming-events-by-topic", "http://purl.org/dc/terms/description": [ { "@value": "Returns the recent, ongoing and upcoming events that are defined as Spaces, narrowed to those stating at least one of the given topics (dct:subject). The topic parameter is optional and can be given more than once: with none, every event is returned, whatever its topics and whether it has any. An event stating several of the given topics is listed once. 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 by topic" } ], "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 values ?__topic_multi_iri {}\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 optional { ?event dct:subject ?topic . }\n }\n filter(!bound(?__topic_multi_iri) || ?topic = ?__topic_multi_iri)\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}\ngroup by ?event ?event_label ?status ?date ?np ?statusOrder ?subSpaceOrder\norder by ?statusOrder ?date ?subSpaceOrder ?event_label" } ] } ] }, { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0/Head", "@graph": [ { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAozJCi7NW0GTH0SsymoGS_gfUgHMJEBMJ5FQjZfainM0/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] } ]