. . . . "Returns key-value facts for display on the page of a time-limited space (project, initiative, campaign, or event): its type(s), date, location, description(s), and admins. Type, date, location, and description are read from a single winning definition nanopub: among all validly signed, non-invalidated nanopubs that introduce the resource and type it as gen:Space or gen:MaintainedResource, the one with the latest dct:created wins (ties broken by nanopub URI). This matters because successive definitions are chained by root definition rather than by npx:supersedes, and a resource IRI can be claimed by more than one space-ref, so the earlier plain not-invalidated filter merged the values of every past definition into one row. Admins are the validated admins (npa:hasRoleType gen:AdminRole) of the governing space, resolved via the spaces repository. The date row shows the start and end dates; when both fall on the same day, it shows the day with the start and end times (and the timezone offset); when the end date is absent, only the start date is shown. The location row shows the location URI as a link. Date and location rows are omitted when the corresponding values are not given, as is any row whose value is empty. Each property occupies one row; the Value column is a multi-value cell so properties with several values (multiple types or admins) list them all in a single row. Type labels are derived from the concatenated type IRIs by a single regex so the value and label lists always stay aligned. Both columns use the '_noheader' convention so the redundant header row is dropped." . . . "Get time-limited space info" . . "prefix rdf: \nprefix rdfs: \nprefix dct: \nprefix foaf: \nprefix np: \nprefix npa: \nprefix npx: \nprefix gen: \nprefix schema: \n\nselect distinct ?Property_noheader ?Property_label ?Value_multi_val_noheader ?Value_label_multi where {\n values ?_resource_multi_iri {}\n\n {\n select ?defNpS\n (group_concat(distinct ?typeIriS; separator=\"\\n\") as ?typeVal)\n (group_concat(distinct ?descEsc; separator=\"\\n\") as ?descVal)\n (min(?startDate0) as ?startDate)\n (min(?endDate0) as ?endDate)\n (min(?locationS0) as ?locationS)\n where {\n values ?_resource_multi_iri {}\n {\n select (max(?npS1) as ?defNpS) where {\n {\n select (max(?c0) as ?maxC) where {\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?np0 npx:introduces ?_resource_multi_iri ;\n npa:hasValidSignatureForPublicKeyHash ?pk0 ;\n np:hasAssertion ?a0 ;\n dct:created ?c0 .\n filter not exists { ?inv0 npx:invalidates ?np0 ; npa:hasValidSignatureForPublicKeyHash ?pk0 . }\n }\n graph ?a0 { ?_resource_multi_iri a ?bt0 . filter(?bt0 in (gen:Space, gen:MaintainedResource)) }\n }\n }\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?np1 npx:introduces ?_resource_multi_iri ;\n npa:hasValidSignatureForPublicKeyHash ?pk1 ;\n np:hasAssertion ?a1 ;\n dct:created ?maxC .\n filter not exists { ?inv1 npx:invalidates ?np1 ; npa:hasValidSignatureForPublicKeyHash ?pk1 . }\n }\n graph ?a1 { ?_resource_multi_iri a ?bt1 . filter(?bt1 in (gen:Space, gen:MaintainedResource)) }\n bind(str(?np1) as ?npS1)\n }\n }\n bind(iri(?defNpS) as ?defNp)\n graph npa:graph { ?defNp np:hasAssertion ?a . }\n optional {\n graph ?a { ?_resource_multi_iri a ?typeIri . filter(?typeIri != gen:Space && ?typeIri != gen:MaintainedResource) }\n bind(str(?typeIri) as ?typeIriS)\n }\n optional {\n graph ?a { ?_resource_multi_iri dct:description ?desc . }\n bind(replace(replace(str(?desc), \"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\"), \"[\\r\\n]+\", \"\\\\\\\\n\") as ?descEsc)\n }\n optional { graph ?a { ?_resource_multi_iri schema:startDate ?startDate0 . } }\n optional { graph ?a { ?_resource_multi_iri schema:endDate ?endDate0 . } }\n optional { graph ?a { ?_resource_multi_iri schema:location ?location0 . } bind(str(?location0) as ?locationS0) }\n } group by ?defNpS\n }\n bind(replace(?typeVal, \"[^\\n]*[/#]\", \"\") as ?typeLabel)\n\n optional {\n select (group_concat(?admin2; separator=\"\\n\") as ?adminVal) (group_concat(?adminName; separator=\"\\n\") as ?adminLabel) where {\n select distinct ?admin2 ?adminName where {\n values ?_resource_multi_iri {}\n service {\n graph npa:graph { npa:hasCurrentSpaceState ?g . }\n optional { graph ?g { ?_resource_multi_iri npa:isMaintainedBy ?maint . } }\n bind(coalesce(?maint, ?_resource_multi_iri) as ?adminSpace)\n graph ?g { ?ri a gen:RoleInstantiation ; npa:forSpace ?adminSpace ; npa:hasRoleType gen:AdminRole ; npa:forAgent ?admin . }\n optional { graph ?g { ?admin foaf:name ?adminName0 . } }\n }\n bind(coalesce(?adminName0, str(?admin)) as ?adminName)\n bind(str(?admin) as ?admin2)\n }\n } having (count(?admin2) > 0)\n }\n\n bind(coalesce(substr(str(?startDate), 1, 10), str(?startDate)) as ?sDay)\n bind(coalesce(substr(str(?endDate), 1, 10), \"\") as ?eDay)\n bind(coalesce(substr(str(?startDate), 12, 5), \"\") as ?sTime)\n bind(coalesce(substr(str(?endDate), 12, 5), \"\") as ?eTime)\n bind(coalesce(replace(substr(str(?startDate), 17), \"^(:[0-9][0-9](\\\\.[0-9]+)?)?\", \"\"), \"\") as ?tzRaw)\n bind(if(?tzRaw = \"Z\", \"UTC\", if(?tzRaw != \"\", concat(\"UTC\", ?tzRaw), \"\")) as ?tzDisp)\n bind(\n if(?eDay != \"\",\n if(?sDay = ?eDay,\n if(?sTime != \"\" && ?eTime != \"\",\n concat(?sDay, \", \", ?sTime, \"–\", ?eTime, if(?tzDisp != \"\", concat(\" (\", ?tzDisp, \")\"), \"\")),\n ?sDay),\n concat(?sDay, \" – \", ?eDay)),\n ?sDay)\n as ?dateVal)\n\n values (?key ?Property_noheader ?Property_label) {\n ('Type' rdf:type 'Type:')\n ('Date' schema:startDate 'Date:')\n ('Location' schema:location 'Location:')\n ('Description' dct:description 'Description:')\n ('Admins' gen:hasAdmin 'Admins:')\n }\n bind(if(?key='Type', ?typeVal, if(?key='Date', ?dateVal, if(?key='Location', ?locationS, if(?key='Description', ?descVal, ?adminVal)))) as ?Value_multi_val_noheader)\n filter(bound(?Value_multi_val_noheader) && ?Value_multi_val_noheader != \"\")\n bind(if(?key='Type', ?typeLabel, if(?key='Admins', ?adminLabel, '')) as ?Value_label_multi)\n}\norder by (if(?key='Type', 1, if(?key='Date', 2, if(?key='Location', 3, if(?key='Description', 4, 5)))))" . . "Tobias Kuhn" . "2026-08-24T11:12:09Z"^^ . . . . . "Get time-limited space info" . . . . . . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" . "aLTeGcj2UmaWrs4an1rn+8X/9Gmt6Zj07+0nh/wYjSIroKJtnK5t4wKJn+lhnrpD3HrSjkIjYizwvfHRBXonPlI90pp1k/s9m3rIlUm/ziRBnfEJ0sCuZyzU0ii94gGkLY712koaG66APHPP3ifVD/Sx06XU1geiRkQxzPVajW4=" . . .