[ { "@id": "https://w3id.org/np/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188/Head", "@graph": [ { "@id": "https://w3id.org/np/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188/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/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188", "http://purl.org/dc/terms/created": [ { "@value": "2026-08-24T09:04:12Z", "@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/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188/get-open-ended-space-info" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAAIEoV4-4llZGeUtV0O2BcIkcfsO_yJ5yP1yAX8gYvkI" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get open-ended 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/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188/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": "c4vOVWs1vHp1uqOLABEEji9jWIsyZeHIXdkVpUNj4f1Z+ynH85MmRD/qZK6uEdDLYIEBnx5VTeAgBS2EL4GxJA4OJYXisHcBFEHkmIezpKw8xPs7Eta+1kyrIwNdgqUVG4So8WSSPGBghxYGZV+KNEiMZSY2aEZxR95tPV6Y8jA=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188/get-open-ended-space-info", "http://purl.org/dc/terms/description": [ { "@value": "Returns key-value facts for display on the page of an open-ended space (alliance, community, division, group, organization, outlet, or program): its type(s), parent space, alternative IDs, description(s), and admins. Type, alternative IDs, and description are read from a single winning definition nanopub: among all validly signed, non-invalidated nanopubs that introduce the resource and type it as gen:Space, the one with the latest dct:created wins (ties broken by nanopub URI). This matters because successive space definitions are chained by root definition rather than by npx:supersedes, and a space IRI can be claimed by more than one space-ref, so a plain not-invalidated filter would merge the values of every past definition into one row. The parent space is taken from the server-computed space state (npa:isSubSpaceOf) in the spaces repository, so implicit sub-space nesting is covered too, and its label is resolved from the parent's own definition. Admins are the validated admins (npa:hasRoleType gen:AdminRole) of the governing space, also resolved via the spaces repository. Rows whose values are absent or empty are omitted. Each property occupies one row; the Value column is a multi-value cell so properties with several values (multiple types, alternative IDs, or admins) list them all in a single row. Type labels are derived from the concatenated type IRIs by a single regex so the value and label lists always stay aligned. Both columns use the '_noheader' convention so the redundant header row is dropped. This is the open-ended counterpart of the time-limited space info query, which shows date and location instead of parent space and alternative IDs." } ], "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 open-ended 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 foaf: \nprefix owl: \nprefix np: \nprefix npa: \nprefix npx: \nprefix gen: \n\nselect distinct ?Property_noheader ?Property_label ?Value_multi_val_noheader ?Value_label_multi where {\n values ?_resource_multi_iri {}\n\n {\n select ?defNpS\n (group_concat(distinct ?typeIriS; separator=\"\\n\") as ?typeVal)\n (group_concat(distinct ?altIriS; separator=\"\\n\") as ?altVal)\n (group_concat(distinct ?descEsc; separator=\"\\n\") as ?descVal)\n where {\n values ?_resource_multi_iri {}\n {\n select (max(?npS1) as ?defNpS) where {\n {\n select (max(?c0) as ?maxC) where {\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?np0 npx:introduces ?_resource_multi_iri ;\n npa:hasValidSignatureForPublicKeyHash ?pk0 ;\n np:hasAssertion ?a0 ;\n dct:created ?c0 .\n filter not exists { ?inv0 npx:invalidates ?np0 ; npa:hasValidSignatureForPublicKeyHash ?pk0 . }\n }\n graph ?a0 { ?_resource_multi_iri a gen:Space . }\n }\n }\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?np1 npx:introduces ?_resource_multi_iri ;\n npa:hasValidSignatureForPublicKeyHash ?pk1 ;\n np:hasAssertion ?a1 ;\n dct:created ?maxC .\n filter not exists { ?inv1 npx:invalidates ?np1 ; npa:hasValidSignatureForPublicKeyHash ?pk1 . }\n }\n graph ?a1 { ?_resource_multi_iri a gen:Space . }\n bind(str(?np1) as ?npS1)\n }\n }\n bind(iri(?defNpS) as ?defNp)\n graph npa:graph { ?defNp np:hasAssertion ?a . }\n optional {\n graph ?a { ?_resource_multi_iri a ?typeIri . filter(?typeIri != gen:Space && ?typeIri != gen:MaintainedResource) }\n bind(str(?typeIri) as ?typeIriS)\n }\n optional {\n graph ?a { ?_resource_multi_iri owl:sameAs ?altIri . }\n bind(str(?altIri) as ?altIriS)\n }\n optional {\n graph ?a { ?_resource_multi_iri dct:description ?desc . }\n bind(replace(replace(str(?desc), \"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\"), \"[\\r\\n]+\", \"\\\\\\\\n\") as ?descEsc)\n }\n } group by ?defNpS\n }\n bind(replace(?typeVal, \"[^\\n]*[/#]\", \"\") as ?typeLabel)\n\n optional {\n select (group_concat(?parent2; separator=\"\\n\") as ?parentVal) (group_concat(?parentName; separator=\"\\n\") as ?parentLabel) where {\n select ?parent2 (max(?parentName0) as ?parentName) where {\n values ?_resource_multi_iri {}\n service {\n graph npa:graph { npa:hasCurrentSpaceState ?gp . }\n graph ?gp { ?_resource_multi_iri npa:isSubSpaceOf ?parent . }\n }\n optional {\n graph npa:graph {\n ?npp npx:introduces ?parent ; npa:hasValidSignatureForPublicKeyHash ?pkp ; np:hasAssertion ?ap .\n filter not exists { ?invp npx:invalidates ?npp ; npa:hasValidSignatureForPublicKeyHash ?pkp . }\n }\n graph ?ap { ?parent rdfs:label ?pl . }\n }\n bind(str(?parent) as ?parent2)\n bind(coalesce(str(?pl), ?parent2) as ?parentName0)\n } group by ?parent2\n } having (count(?parent2) > 0)\n }\n\n optional {\n select (group_concat(?admin2; separator=\"\\n\") as ?adminVal) (group_concat(?adminName; separator=\"\\n\") as ?adminLabel) where {\n select distinct ?admin2 ?adminName where {\n values ?_resource_multi_iri {}\n service {\n graph npa:graph { npa:hasCurrentSpaceState ?g . }\n optional { graph ?g { ?_resource_multi_iri npa:isMaintainedBy ?maint . } }\n bind(coalesce(?maint, ?_resource_multi_iri) as ?adminSpace)\n graph ?g { ?ri a gen:RoleInstantiation ; npa:forSpace ?adminSpace ; npa:hasRoleType gen:AdminRole ; npa:forAgent ?admin . }\n optional { graph ?g { ?admin foaf:name ?adminName0 . } }\n }\n bind(coalesce(?adminName0, str(?admin)) as ?adminName)\n bind(str(?admin) as ?admin2)\n }\n } having (count(?admin2) > 0)\n }\n\n values (?key ?Property_noheader ?Property_label) {\n ('Type' rdf:type 'Type:')\n ('Part of' gen:isSubSpaceOf 'Part of:')\n ('Alternative IDs' owl:sameAs 'Alternative IDs:')\n ('Description' dct:description 'Description:')\n ('Admins' gen:hasAdmin 'Admins:')\n }\n bind(if(?key='Type', ?typeVal, if(?key='Part of', ?parentVal, if(?key='Alternative IDs', ?altVal, if(?key='Description', ?descVal, ?adminVal)))) as ?Value_multi_val_noheader)\n filter(bound(?Value_multi_val_noheader) && ?Value_multi_val_noheader != \"\")\n bind(if(?key='Type', ?typeLabel, if(?key='Part of', ?parentLabel, if(?key='Admins', ?adminLabel, ''))) as ?Value_label_multi)\n}\norder by (if(?key='Type', 1, if(?key='Part of', 2, if(?key='Alternative IDs', 3, if(?key='Description', 4, 5)))))" } ] } ] }, { "@id": "https://w3id.org/np/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAPwwNUfD3GAYkloe-OoB0Ky-d5-KTPHiJGsFkoA3y188/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] } ]