[ { "@id": "https://w3id.org/np/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0/assertion", "@graph": [ { "@id": "https://w3id.org/np/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0/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 and alternative IDs can carry multiple values. Alternative IDs are shown as their full URL, trimmed in the middle with an ellipsis beyond 80 characters. 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 owl:sameAs ?altVal } }\n optional { graph ?a { ?_space_multi_iri schema:startDate ?startVal } }\n optional { graph ?a { ?_space_multi_iri schema:endDate ?endVal } }\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 bind(strlen(str(?altVal)) as ?altLen)\n bind(if(?altLen > 80, concat(substr(str(?altVal), 1, 38), '...', substr(str(?altVal), ?altLen - 37)), str(?altVal)) as ?altDisp)\n bind(concat('', ?altDisp, '') as ?altAnchor)\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', ?altAnchor, 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/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0/provenance", "@graph": [ { "@id": "https://w3id.org/np/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0/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/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0", "http://purl.org/dc/terms/created": [ { "@value": "2026-06-15T08:33:49Z", "@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/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0/get-space-info" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAE47ty6qDLpysySankxy37Bn5RBT273lKcIbTtAdDtQo" } ], "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/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0/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": "UXIBIflThgk6pnBG9BJPUiIy5G97oBYyGWf2ZNmVyAWSMdyZaNmrHFEaBAbxQcNQo5PJc1nEezrvFnUedXSzsLXYNU/i/irobCLFxg9I1sS0C7DZwFp3ORjD+fLh1rPrqYcXADKoKyt7VIPuzbXgp6ziwLpnGxEoFYPZp+wKiE4=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0/Head", "@graph": [ { "@id": "https://w3id.org/np/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RApZ1rolXGjuLrqcAVojMEHo65h1dl5vvhCzJT2vKgHm0/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] } ]