@prefix dc: .
@prefix this: .
@prefix sub: .
@prefix np: .
@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-all-space-membership-instances dc:description "This query returns all instances of Space membership instances.";
dc:license ;
a ;
rdfs:label "Get all Space membership instances";
;
"""prefix rdfs:
prefix dct:
prefix owl:
prefix np:
prefix npa:
prefix npx:
prefix gen:
prefix schema:
select (?__agent_multi_iri as ?agent) ?role ?roleName ?property ?inverse (?__space_multi_iri as ?space) where {
values ?__space_multi_iri {}
values ?__agent_multi_iri {}
graph npa:graph {
?spaceRole_np npx:hasNanopubType gen:SpaceMemberRole .
?spaceRole_np npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey .
filter not exists { ?spaceRole_npx npx:invalidates ?spaceRole_np ; npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . }
?spaceRole_np np:hasAssertion ?spaceRole_a .
}
graph ?spaceRole_a {
?__space_multi_iri gen:hasRole ?role .
}
graph ?role_a {
?role a gen:SpaceMemberRole .
?role rdfs:label ?roleLabel .
?role dct:title ?roleTitle .
?role schema:name ?roleName .
}
graph npa:graph {
?role_np npx:embeds ?role .
?role_np np:hasAssertion ?role_a .
}
{
{
graph ?role_a {
?role gen:hasRegularProperty ?reg .
}
graph ?link_a {
?__agent_multi_iri ?reg ?__space_multi_iri .
}
bind(?reg as ?property)
bind(false as ?inverse)
} union {
graph ?role_a {
?role gen:hasInverseProperty ?inv .
}
graph ?link_a {
?__space_multi_iri ?inv ?__agent_multi_iri .
}
bind(?inv as ?property)
bind(true as ?inverse)
}
}
graph npa:graph {
?link_np np:hasAssertion ?link_a .
?link_np npa:hasValidSignatureForPublicKeyHash ?link_pubkey .
filter not exists { ?link_npx npx:invalidates ?link_np ; npa:hasValidSignatureForPublicKeyHash ?link_pubkey . }
}
}""" .
}
sub:provenance {
sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 .
}
sub:pubinfo {
orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" .
this: dc:created "2025-12-01T14:56:51.054Z"^^xsd:dateTime;
dc:creator orcid:0000-0002-1267-0234;
dc:license ;
npx:embeds sub:get-all-space-membership-instances;
npx:supersedes ;
npx:wasCreatedAt ;
nt:wasCreatedFromProvenanceTemplate ;
nt:wasCreatedFromPubinfoTemplate ,
, ;
nt:wasCreatedFromTemplate .
sub:sig npx:hasAlgorithm "RSA";
npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB";
npx:hasSignature "ROdiZDhwBNDsqhFCLy1DEqOkUbrJbayZ9bUL/Cra9qJV3j72WWkGFeEWGr2dBG8gRy6e8e6mWs/QDPSF91QiFHhhTt/oYnaxaWIW74CtUenh4Nctouw0a+2vezX+/ioY5HwJ4/viT3KZ9psywTLWPyH/yPAdPDEnR/ctim/d/GA=";
npx:hasSignatureTarget this:;
npx:signedBy orcid:0000-0002-1267-0234 .
}