@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-space-info a ; dct: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."; dct:license ; rdfs:label "Get space info"; ; """prefix rdf: prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix schema: prefix gen: select distinct ?Property ?Property_label ?Value ?Value_label where { values ?_space_multi_iri {} service { 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 ?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) filter(bound(?Value)) 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))))""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-06-10T06:13:29Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-space-info; npx:supersedes ; rdfs:label "Get space info"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "O8CbiumWbv7C1XsMj2O1wOBtQOAszmrxDaJ71vK5CmW5M3yu1ZvPBeQhTuvymQ4X9+E3UMpdfUWxCZGzMnnEsCsSbmXkcK48wBkvyxV4PLwsLc8k6G/OrJJYPAaBjmPx60Vr0JwKLNNq/jH2CQSQa41/RHBYpA6fnnB8euyMV8M="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }