@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-queries-by-user a ; dct:description "Returns the grlc query nanopublications created by the given user."; dct:license ; rdfs:label "Get queries by given user"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix grlc: select ?label ?date ?np (\"^\" as ?np_label) where { graph npa:graph { ?np npx:signedBy ?_user_iri . ?np npa:hasValidSignatureForPublicKeyHash ?pubkeyhash . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkeyhash . } ?np npx:hasNanopubType grlc:grlc-query . ?np npx:introduces|npx:embeds ?query . ?np dct:created ?date . ?np np:hasAssertion ?a . } graph ?a { ?query grlc:endpoint ?endpoint . filter(strstarts(str(?endpoint), \"https://w3id.org/np/l/nanopub-query\")) optional { ?query rdfs:label ?rawlabel } } bind(replace(str(?query), \"https://w3id.org/np/\", \"\") as ?spec_path) bind(concat(\"\", coalesce(?rawlabel, str(?query)), \"\") as ?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-04-21T07:32:57Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-queries-by-user; npx:supersedes ; rdfs:label "Get queries by given user"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "DAnQD3QKJ+puogVeDCE3BtUnTOHQE8WLmmrqMiqclkCIZdPBSVEEWdtQHk7UipEF7krZzVDnegqRwTHSgJG9glPDyARxQwbS+/HFyrr/pOdIu3d1l+bHKLEF1ce0E994gRl/LBw7Elm7WmDhTDgP1Ozgpup6Tn45ocW9Q5v0CpQ="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }