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.
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix dct: <http://purl.org/dc/terms/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select ?template_iri ?template_iri_label where { service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> 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)