[ { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw/Head", "@graph": [ { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw/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/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw", "http://purl.org/dc/terms/created": [ { "@value": "2026-06-16T08:36:38Z", "@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/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw/get-space-info" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RA70mX3YaFseGF3c0FH7YIOWz0T3f2xdsGfOXrTZESLik" } ], "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/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw/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": "Aoyrd16rZ6DfeyCfuC7VefIATgUJPWaqdNGGKMwJuVyjuiVUTGkh6rOttNFldmuJ47cEIVfLi1dZU2U8E2SWetWoCapbAh31hzagW5r+M/xFfm7WfBvkP8TOYaoaeK0VUE71naCulVNQLgq7mLUk0K5CCVcV294XvlG3gUr/14I=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw/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. Type can carry multiple values (one row each). Alternative IDs are concatenated into a single HTML cell holding a comma-separated list of links (a span wrapping one anchor per ID), computed in a separate subquery so it stays clear of the spaces-repo SERVICE join. 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_noheader ?Value_label 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 { graph ?a { ?_space_multi_iri a ?typeIri . filter(?typeIri != gen:Space) } }\n optional { graph ?a { ?_space_multi_iri schema:startDate ?startVal } }\n optional { graph ?a { ?_space_multi_iri schema:endDate ?endVal } }\n optional {\n select (concat('', group_concat(?anchor; separator=', '), '') as ?altHtml) where {\n values ?_space_multi_iri {}\n graph npa:graph { ?_spaceNp_iri np:hasAssertion ?asub . }\n graph ?asub { ?_space_multi_iri owl:sameAs ?altVal . }\n bind(concat('', str(?altVal), '') as ?anchor)\n } having (count(?altVal) > 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', ?typeIri, if(?key='Alternative IDs', ?altHtml, if(?key='Start date', str(?startVal), if(?key='End date', str(?endVal), if(?key='Latest definition', ?_spaceNp_iri, ?rootNp))))) as ?Value_noheader)\n filter(bound(?Value_noheader))\n bind(if(?key='Type', replace(str(?typeIri), '^.*[/#]', ''), 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)\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))))))" } ] } ] }, { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAGJ7RYDsLqhFN5l9GYnbPjEQp3-uamftlJbUK9xiW9pw/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] } ]