@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:list-space-participants a ; dct:description "Lists the participants of a given space (one row per agent): agents holding the general participant role or the planned-attendance role (validated role instantiations in the current space state). The display label gets a ' (planned)' suffix when the agent only plans to attend (no participant role). The np column points to the participant-role grant if present, otherwise to the planned-attendance grant. IRI-keyed by npa:forSpace (param space)."; dct:license ; rdfs:label "List space participants"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix gen: prefix foaf: select ?user_iri ?user_iri_label ?np ?np_label where { { select ?user_iri (sample(?name) as ?name) (max(?partNp0) as ?partNp) (max(?planNp0) as ?planNp) where { values ?_space_multi_iri {} values ?role { } graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?g . } graph ?g { ?ri a gen:RoleInstantiation ; npa:forSpace ?_space_multi_iri ; npa:forAgent ?user_iri ; npa:viaNanopub ?grantNp ; gen:hasRole ?role . } optional { graph ?g { ?user_iri foaf:name ?name } } bind(if(?role = , str(?grantNp), \"\") as ?partNp0) bind(if(?role = , str(?grantNp), \"\") as ?planNp0) } group by ?user_iri } bind(if(?partNp != \"\", str(?partNp), str(?planNp)) as ?npStr) bind(iri(?npStr) as ?np) bind(\"^\" as ?np_label) bind(if(bound(?name), str(?name), \"\") as ?nameStr) bind(if(?partNp = \"\", concat(?nameStr, \" (planned)\"), ?nameStr) as ?user_iri_label) } order by lcase(?user_iri_label)""" . } 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-26T12:41:48Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:list-space-participants; npx:supersedes ; rdfs:label "List space participants"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "HggNfmpumErllSNG/kr0BqGB8CaEPU/unOgEauXPwrqrF+QD5TViOpXDbI35/9WdKr8u9y94dCeGtuI2/lRpZ3TOkmiN3WCCtuRnErO/RjSeNeYCcX3cyNCr6HceNqvk8GihXmIsI2/MoWuMaFtb5/GqRfEPdcva9cy1+BwVsuo="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }