. . . . "Returns basic key-value facts about a given space (type, alternative IDs, start and end date for time-limited spaces, and the latest and root definition nanopubs). The space's latest-definition nanopub is passed in as the 'spaceNp' parameter; type, alternative IDs and dates are read from that definition, and its space-ref's root definition is resolved from the spaces repository. This scopes every fact to a single space-ref (identity = space IRI + root definition), so spaces whose IRI is claimed by several refs no longer mix. Each property occupies exactly one row: the Value column is a multi-value (IRI or literal) cell, so a property with several values (e.g. multiple types or alternative IDs) lists them all in a single row rather than spawning a row per value. Each multi-valued property is aggregated in its own subquery so the values never cross-multiply across rows. Both columns use the '_noheader' convention so the redundant header row is dropped." . . . "Get space info" . . "prefix rdf: \nprefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix schema: \nprefix owl: \nprefix gen: \n\nselect distinct ?Property_noheader ?Property_label ?Value_multi_val_noheader ?Value_label_multi where {\n values ?_space_multi_iri {}\n graph npa:graph { ?_spaceNp_iri np:hasAssertion ?a . }\n graph ?a { ?_space_multi_iri a gen:Space . }\n optional {\n select (group_concat(?typeIri; separator=\"\\n\") as ?typeVal) (group_concat(?typeLocal; separator=\"\\n\") as ?typeLabel) where {\n values ?_space_multi_iri {}\n graph npa:graph { ?_spaceNp_iri np:hasAssertion ?at . }\n graph ?at { ?_space_multi_iri a ?typeIri . filter(?typeIri != gen:Space) }\n bind(replace(str(?typeIri), '^.*[/#]', '') as ?typeLocal)\n } having (count(?typeIri) > 0)\n }\n optional {\n select (group_concat(str(?altIri); separator=\"\\n\") as ?altVal) where {\n values ?_space_multi_iri {}\n graph npa:graph { ?_spaceNp_iri np:hasAssertion ?aa . }\n graph ?aa { ?_space_multi_iri owl:sameAs ?altIri . }\n } having (count(?altIri) > 0)\n }\n optional {\n select (group_concat(str(?sd); separator=\"\\n\") as ?startVal) where {\n values ?_space_multi_iri {}\n graph npa:graph { ?_spaceNp_iri np:hasAssertion ?asd . }\n graph ?asd { ?_space_multi_iri schema:startDate ?sd . }\n } having (count(?sd) > 0)\n }\n optional {\n select (group_concat(str(?ed); separator=\"\\n\") as ?endVal) where {\n values ?_space_multi_iri {}\n graph npa:graph { ?_spaceNp_iri np:hasAssertion ?aed . }\n graph ?aed { ?_space_multi_iri schema:endDate ?ed . }\n } having (count(?ed) > 0)\n }\n optional {\n service {\n graph npa:spacesGraph {\n ?def npa:viaNanopub ?_spaceNp_iri ; npa:forSpaceRef ?ref .\n ?ref npa:rootNanopub ?rootNp .\n }\n }\n }\n values (?key ?Property_noheader ?Property_label) {\n ('Type' rdf:type 'Type:')\n ('Alternative IDs' owl:sameAs 'Alternative IDs:')\n ('Start date' schema:startDate 'Start date:')\n ('End date' schema:endDate 'End date:')\n ('Latest definition' npa:viaNanopub 'Latest definition:')\n ('Root definition' gen:hasRootDefinition 'Root definition:')\n }\n bind(if(?key='Type', ?typeVal, if(?key='Alternative IDs', ?altVal, if(?key='Start date', ?startVal, if(?key='End date', ?endVal, if(?key='Latest definition', str(?_spaceNp_iri), str(?rootNp)))))) as ?Value_multi_val_noheader)\n filter(bound(?Value_multi_val_noheader))\n bind(if(?key='Type', ?typeLabel, if(?key='Latest definition', substr(strafter(str(?_spaceNp_iri), '/np/'), 1, 10), if(?key='Root definition', substr(strafter(str(?rootNp), '/np/'), 1, 10), ''))) as ?Value_label_multi)\n}\norder by (if(?key='Type', 1, if(?key='Alternative IDs', 2, if(?key='Start date', 3, if(?key='End date', 4, if(?key='Latest definition', 5, 6))))))" . . "Tobias Kuhn" . "2026-06-24T13:45:59Z"^^ . . . . . "Get space info" . . . . . . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" . "AQcZarbK1N2xFzyJRJ9nhjZumftuAjh4EdLS7pHpDnM7VK5tiUb9LuX8/iPAxyCH+vZAYLFH2dA/gYwliKWwlqD5A6NCdb84c8+9s6/YVeaB9s99qSM4EvPBCofAGLgIid8zF+o+gYNN36YhuH4XU3VUPd/ysUiiS4TqnLB5lWY=" . . .