@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:get-sub-resources a ; dct:description "This query returns the sub-resources of a Space or Maintained Resource."; dct:license ; rdfs:label "Get sub-resources of Space or Maintained Resource"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix gen: select ?resource ?resource_label ?entity_main_type ?np where { graph npa:graph { values ?entity_main_type { gen:Space gen:MaintainedResource } ?np npx:hasNanopubType ?entity_main_type . ?np npx:introduces ?resource . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . filter not exists { ?np2 npx:introduces ?resource . ?np2 npa:hasValidSignatureForPublicKeyHash ?pubkey2 . filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . } ?np2 dct:created ?date2 . filter( ?date2 > ?date ) } } graph ?a { { { values ?_super_resource_multi_iri {} ?resource a ?entity_main_type . filter(strstarts(str(?resource), concat(str(?_super_resource_multi_iri), \"/\"))) bind(substr(str(?resource), strlen(str(?_super_resource_multi_iri)) + 2, strlen(str(?resource)) - strlen(str(?_super_resource_multi_iri)) - 1) as ?suffix) filter(!contains(?suffix, \"/\")) } union { values ?_super_resource_multi_iri {} ?resource a gen:Space . ?resource dct:isPartOf ?_super_resource_multi_iri . } union { values ?_super_resource_multi_iri {} ?resource a gen:MaintainedResource . ?resource gen:isMaintainedBy ?_super_resource_multi_iri . } } filter exists { ?resource a ?__resource_type_iri } ?resource rdfs:label ?resource_label . } } order by ?resource_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-05-20T09:09:37.191+02:00"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-sub-resources; 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 "Cpd5YCmxO0EXCwzQuV8LHKx0B4ZXlseDqIjiookKBnJCiaWd9u7k0s2TSPm884smdpOZXE85t7xRBRY0CM47CCOvI72gEMWaTv6Ch1IFTGwQ9TpHjy5Neid3hVCJXl+rrQ3XFhvBjmzJsyJlOdxP3KOarkBXo/9m/VrTTOMPm70="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }