@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: np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo; a np:Nanopublication . } sub:assertion { sub:get-templates-with-uri dct:description "This query returns the assertion templates that use the given URI in their statements."; dct:license ; a ; rdfs:label "Get the templates using given URI"; ; """prefix rdf: prefix dct: prefix rdfs: prefix np: prefix npa: prefix npx: prefix nt: select ?np ?npLabel ?date ?pubkey where { graph ?assertion { ?statement ?relation ?_thing_iri . values ?relation { rdf:subject rdf:predicate rdf:object nt:possibleValue } } graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } ?np np:hasAssertion ?assertion . ?np dct:created ?date . optional { ?np rdfs:label ?npLabel } } } limit 1000""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB"; npx:hasSignature "bclgbr1vTog2o6yuKjhlIajCJbrHlKoup1dKym4Qs2gYtDszwRXDtt7e6+tvUtN5Q33vZujoFimrrMwlispOZBISZeHGTfE3OjNxLbTG6J7bn1tV5hfeBdyixkp4/A5v0LHFzF4d6XkIJk6h+1NOgFfKjYLJAxpk11eK7Rks4Mw="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . this: dct:created "2024-12-02T09:42:19.966Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:introduces sub:get-templates-with-uri; npx:supersedes ; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . }