@prefix this: . @prefix sub: . @prefix grlc: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix ns1: . @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-templates-with-uri-view a grlc:grlc-query; dct:description "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)."; dct:license ; rdfs:label "Get the templates using given URI (view)"; grlc:endpoint ; grlc:sparql """prefix rdf: prefix dct: prefix rdfs: prefix np: prefix npa: prefix npx: prefix nt: select distinct ?template_iri ?template_iri_label ?np (\"^\" as ?np_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 } bind(?template_iri as ?np) } } limit 1000""" . } 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-30T08:00:00Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:introduces sub:get-templates-with-uri-view; nt:wasCreatedFromProvenanceTemplate ns1:RANwQa4ICWS5SOjw7gp99nBpXBasapwtZF1fIM3H2gYTM; nt:wasCreatedFromPubinfoTemplate ns1:RAA2MfqdBCzmz9yVWjKLXNbyfBNcwsMmOqcNUxkk1maIM, ns1:RAh1gm83JiG5M6kDxXhaYT1l49nCzyrckMvTzcPn-iv90, ns1:RAjpBMlw3owYhJUBo3DtsuDlXsNAJ8cnGeWAutDVjuAuI; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "exzZNssgcntpYpoA8XVNbIBtqlsfFJ6F0cED7dxx0KxiqZU8ZB76tGLju0ngH1Eu/qes9icsS5IJIwuDoZEfQ+ZDOgyOCJN4GK1DvbvPdvwHl6flfMejIWJouwZEdjYAsZ7ReKuRJTqpqA2y7g3SKI50XyHQ4DIpgoZYSSHGtnk="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }