@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-observers-by-role a ; dct:description "Lists the observers of a given space (one row per agent): agents holding the observer role (validated role instantiations in the current space state). The np column points to the observer-role grant nanopub. IRI-keyed by npa:forSpace (param space)."; dct:license ; rdfs:label "List space observers by role"; ; """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(?grantNpStr) as ?np0) where { values ?_space_multi_iri {} 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 . } optional { graph ?g { ?user_iri foaf:name ?name } } bind(str(?grantNp) as ?grantNpStr) } group by ?user_iri } bind(iri(?np0) as ?np) bind(\"^\" as ?np_label) bind(if(bound(?name), str(?name), \"\") 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:42:43Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:list-space-observers-by-role; npx:supersedes ; rdfs:label "List space observers by role"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "Y1u3MsZ2IzjpjNtXbgkN7KnbYHIVobHWK59SW+ZC8aykLgFBInDXe4eyq8cZac/G7vNAM4xaUDlNuksipAz9z0M+tGWo6CINV8MIBClc+x6Ufuetlczk+Kk++6E+C5c2tt/CC8q/qILi6Lret1TN2up1GoeBFsXj0eXn1GY/9VU="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }