@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @prefix dct: . @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:get-space-members a grlc:grlc-query; dct:description "Returns the (non-admin) members of a given space ref (space IRI + root definition), each with a ?validated flag. Pass the ref's root nanopub (root_np); the query resolves the ref via npa:rootNanopub and its space IRI, then returns every non-admin gen:RoleInstantiation naming that IRI from the raw npa:spacesGraph (member agent, role's regular/inverse property, instantiating nanopublication), with ?validated = true when that instantiation is also present in the trust-state-validated current space-state graph for this ref (i.e. the agent's key has a trust-approved AccountState from an accepted introduction), false otherwise. This shows all self-declared members while flagging the un-introduced/unvalidated ones, rather than hiding them."; dct:license ; rdfs:label "Get space members (ref-scoped, with validation flag)"; grlc:endpoint ; grlc:sparql """prefix npa: prefix npx: prefix gen: select ?member ?regProp ?invProp ?np (\"^\" as ?np_label) ?validated where { values ?_root_np_multi_iri {} graph npa:spacesGraph { ?ref npa:rootNanopub ?_root_np_multi_iri ; npa:spaceIri ?spaceIri . } graph npa:spacesGraph { ?ri a gen:RoleInstantiation ; npa:forSpace ?spaceIri ; npa:forAgent ?member ; npa:viaNanopub ?np . optional { ?ri npa:regularProperty ?regProp } optional { ?ri npa:inverseProperty ?invProp } filter not exists { ?ri npa:inverseProperty gen:hasAdmin } } filter not exists { graph npa:graph { ?invNp npx:invalidates ?np . } } bind(exists { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?g . } graph ?g { ?vri a gen:RoleInstantiation ; npa:forSpaceRef ?ref ; npa:forAgent ?member ; npa:viaNanopub ?np . } } as ?validated) }""" . } 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-16T11:27:57Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-space-members . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "SbFWe81wPQS+kM7InGLHOFQChAXVVxhej+ABkxvTinqbj3NKTHty/hGKslgOceeBxDDZUqygsf+NoVud7br9SO4+Ycgnmy61IpwHaWAdtG+mVtXRcGPTNfQtNiMtdfrUzVHLsoTgPU5gPA/xgQL5cFKwHElhCG5W2x7wHYhM+J0="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }