Returns the assertion templates that use the given URI in their statements, with view-friendly columns (template_iri / template_iri_label). Used by the /explore page as a resource view (the 'Related Templates' list).
Get the templates using given URI (view)
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix dct: <http://purl.org/dc/terms/> 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 nt: <https://w3id.org/np/o/ntemplate/> select distinct ?template_iri ?template_iri_label where { graph ?assertion { ?statement ?relation ?_thing_iri . values ?relation { rdf:subject rdf:predicate rdf:object nt:possibleValue } } graph npa:graph { ?template_iri npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?template_iri ; npa:hasValidSignatureForPublicKey ?pubkey . } filter not exists { ?template_iri npx:hasNanopubType nt:UnlistedTemplate . } ?template_iri np:hasAssertion ?assertion . optional { ?template_iri rdfs:label ?template_iri_label } } } limit 1000