Get space info
has assertion: assertion
has provenance: provenance
has publication info: pubinfo
type: Nanopublication
created: 2026-06-10T06:32:26Z
creator: Tobias Kuhn
license: https://creativecommons.org/licenses/by/4.0/
embeds: Get space info

Get space info
description: Returns basic key-value facts about a given space (type, start and end date for time-limited spaces, and the root-definition nanopub), taken from its latest non-invalidated space-declaration nanopub signed by an admin of the space. Each property and value is rendered as a link to its defining IRI where applicable. Both columns use the '_noheader' convention so the redundant header row is dropped.
license: LICENSE-2.0
type: grlc-query
endpoint: full
sparql: prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix schema: <http://schema.org/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?Property_noheader ?Property_label ?Value_noheader ?Value_label where { values ?_space_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . } graph ?stateG { ?ri a gen:RoleInstantiation ; npa:inverseProperty gen:hasAdmin ; npa:forSpace ?_space_multi_iri ; npa:forAgent ?admin . ?acct a npa:AccountState ; npa:agent ?admin ; npa:pubkey ?pubkey . } } graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np np:hasAssertion ?a . } graph ?a { ?_space_multi_iri a gen:Space . } optional { graph ?a { ?_space_multi_iri a ?typeIri . filter(?typeIri != gen:Space) } } optional { graph ?a { ?_space_multi_iri schema:startDate ?startVal } } optional { graph ?a { ?_space_multi_iri schema:endDate ?endVal } } values (?key ?Property_noheader ?Property_label) { ("Type" rdf:type "Type:") ("Start date" schema:startDate "Start date:") ("End date" schema:endDate "End date:") ("Root definition" gen:hasRootDefinition "Root definition:") } bind(if(?key="Type", ?typeIri, if(?key="Start date", str(?startVal), if(?key="End date", str(?endVal), ?np))) as ?Value_noheader) filter(bound(?Value_noheader)) bind(if(?key="Type", replace(str(?typeIri),"^.*/",""), if(?key="Root definition", substr(strafter(str(?np), "/np/"), 1, 10), "")) as ?Value_label) } order by (if(?key="Type",1,if(?key="Start date",2,if(?key="End date",3,4))))

sig
has algorithm: RSA
signed by: Tobias Kuhn