@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 ?roleTitle (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 ?rel_a . } graph ?rel_a { #values ?_space_multi_iri {} ?_space_multi_iri gen:hasRole ?role . } graph npa:graph { ?role_np npx:embeds ?role . ?role_np np:hasAssertion ?role_a . } graph ?role_a { ?role a gen:SpaceMemberRole . ?role dct:title ?roleTitle . optional { ?role gen:hasRegularProperty ?eq } optional { ?role gen:hasInverseProperty ?inv } } } group by ?role ?roleTitle ?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-25T13:58:10.119+02:00"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-space-member-roles; npx:wasCreatedAt ; prov:wasDerivedFrom ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "MnNbDPAE/76cYebtmiZOoTvJ5oKGTTXE4/Gqw0eFNMqoMH5qDBGCaizCOBT5NQqHI2azZUrwm0tk6JUuMDWvZolmWDt0e+sDNTwYjfNuoD4oKHfcut9xmPH3jFVVQFknLMc0oYnPSjvZU47woe1YHRRNAoUbSy00P5xoPqaXT8U="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }