@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: np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo; a np:Nanopublication . } sub:assertion { sub:get-space-member-roles dct:description "This query returns the roles of a given Space."; dct:license ; a ; rdfs:label "Get Space member roles"; ; """prefix rdfs: prefix dct: prefix owl: prefix np: prefix npa: prefix npx: prefix gen: select ?role ?roleName ?isInverse (group_concat(?eq; separator=' ') as ?equivalent) (group_concat(?inv; separator=' ') as ?inverse) ?np ?pubkey ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . } graph ?a { ?role a gen:SpaceMemberRole . ?role dct:title ?roleName . ?role gen:isRoleOf ?_space_iri . bind( exists { ?role a gen:InverseSpaceMemberRole } as ?isInverse ) optional { ?role owl:equivalentProperty ?eq } optional { ?role owl:inverseOf ?inv } } } group by ?role ?roleName ?isInverse ?np ?pubkey ?date order by desc(?date)""" . } 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 "2025-09-22T09:39:20.813+02:00"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-space-member-roles; npx:supersedes ; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "DzIsT/GfnuDbb8BQTuBrJ20yDEp54RmVCTzjoyKUlBKQstHdtOWqoOwUYOBFO/jtdvlUYI5k/niwZYr4OSV/9AN6pirVSCRgC4tDW+NWa4fUKJmggj26CtE3+e0D3B95wyScgAPwYPWCzhT+gBi0LO6As58lXE6xwOJZqvHESKc="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }