[ { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw/provenance", "@graph": [ { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw/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/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw", "http://purl.org/dc/terms/created": [ { "@value": "2026-06-24T13:45:59Z", "@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/embeds": [ { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw/get-space-info" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get space info" } ], "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/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/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw/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": "AQcZarbK1N2xFzyJRJ9nhjZumftuAjh4EdLS7pHpDnM7VK5tiUb9LuX8/iPAxyCH+vZAYLFH2dA/gYwliKWwlqD5A6NCdb84c8+9s6/YVeaB9s99qSM4EvPBCofAGLgIid8zF+o+gYNN36YhuH4XU3VUPd/ysUiiS4TqnLB5lWY=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw/Head", "@graph": [ { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw/assertion", "@graph": [ { "@id": "https://w3id.org/np/RA7RGUAYbx0OSoZ0puQrnOGMPHWVZEjIclFOQgP1friyw/get-space-info", "http://purl.org/dc/terms/description": [ { "@value": "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." } ], "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 space info" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/full" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "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))))))" } ] } ] } ]