@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-favorite-things dct:description "This query returns the things the given user has declared to be their favorites (using cito:likes)."; dct:license ; a ; rdfs:label "Get favorite things"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: select ?fdo ?np ?label ?creator ?date where { graph npa:graph { ?np npx:signedBy ?__creator_iri . bind(?__creator_iri as ?creator) ?np npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } ?np dct:created ?date . ?np npx:hasNanopubType . ?np npx:introduces ?fdo . optional { ?np rdfs:label ?label } } } order by desc(?date) 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 "2025-07-02T08:37:05.858Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-favorite-things; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB"; npx:hasSignature "Mo9CA1VRRPv07fy1M8eDekQQpo34J0QmRo82ISXwX10QHFVwBSzwx3VPvntSXoBlyfrIxu3pj/pK/Jj2S6AjOJtJKsxIsrzJz7cCZrmuT4018IKhLs2q5BCTau1dacianxRSB8cTaeKQlbzpIhncy2p834KTOg1XJehEGApAi38="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }