@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-favorites-for-user dct:description "This query returns the favorited things of a given user."; dct:license ; a ; rdfs:label "Get favorites for user"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix cito: select ?liked_resource ?comment ?np (\"^\" as ?np_label) where { graph npa:graph { ?np npx:hasNanopubType cito:likes . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . } graph ?a { ?_user_iri cito:likes ?liked_resource . optional { ?liked_resource rdfs:comment ?comment . } } }""" . } 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-01-21T16:15:16.088Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-favorites-for-user; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB"; npx:hasSignature "t2wpBBI20YGQImjcGeete1cRtAth+6XcLb1ZxJWE0M9yl6KKBUTx2EvlSyjlQikIdK/KLfIuEOT+Bztdt7S2ubAenExefmUpqBbTW7qSmuRLQfI/nf1HBHSYn9qNg06PuMR05NpI5B491IVttG7PUMHYZTZ+Crf3wfyRY+dsVtA="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }