@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-suggested-templates-to-get-started a ; dct:description "This query returns a list of suggested templates to get started, as published by members of the space of the given resource (admins, maintainers, or regular members; observers excluded), so it can be shown e.g. on Nanodash."; dct:license ; rdfs:label "Get suggested templates to get started"; ; """prefix rdfs: prefix np: prefix npa: prefix npx: prefix dct: prefix gen: select ?template_iri ?template_iri_label where { service { select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where { graph npa:graph { npa:hasCurrentSpaceState ?stateG . } values ?_resource_multi_iri {} graph ?stateG { ?_resource_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?np npx:hasNanopubType gen:SuggestedTemplateToGetStarted . ?np npa:hasValidSignatureForPublicKeyHash ?pubkeyHash . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkeyHash . } filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } ?np dct:created ?date . ?np np:hasAssertion ?a . } filter(contains(?memberPubkeys, ?pubkeyHash)) graph ?a { ?template_iri a gen:SuggestedTemplateToGetStarted . } optional { graph npa:graph { ?template_iri rdfs:label ?raw_label . } bind(replace(str(?raw_label), \"^Template: \", \"\") as ?template_iri_label) } } 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 "2026-08-13T11:44:48Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:introduces sub:get-suggested-templates-to-get-started; npx:supersedes ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "nggFN4HsVDTHiTdGf9igKGOtYpMHTXnPTUQIHHQRerr63lySYnXV+JUNaF3WzgNXSI8gkz10kKo4xLG7aHj8P5AZSAqkqAJJfqrsVES8MNUOI+f0XzxsO50XTf9b2lE+DHZKXEwRinlKT+ZZV/qDpBH8QyAyideCrj4mQbcpCZI="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }