. . . . "This query returns all the nanopublications that user the Open Annotation Model to annotate a given paper (by DOI, for example)." . . . "Get nanopublications annotating a given paper" . . "prefix np: \r\nprefix npa: \r\nprefix npx: \r\nprefix rdf: \r\nprefix rdfs: \r\nprefix xsd: \r\nprefix dct: \r\nprefix oa: \r\n\r\nselect distinct ?np ?user ?type ?subj ?subjLabel ?rel ?relLabel ?text ?selection ?date where {\r\n graph npa:graph {\r\n ?np np:hasAssertion ?a .\r\n ?np np:hasPublicationInfo ?i.\r\n ?np dct:created ?date .\r\n ?np dct:creator ?user .\r\n ?np npa:hasValidSignatureForPublicKey ?pubkey .\r\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . }\r\n }\r\n graph ?a {\r\n ?subj ?rel ?_paper_iri .\r\n }\r\n optional { ?a rdfs:comment ?textPre . bind(str(?textPre) as ?text) }\r\n optional { graph {\r\n ?rel rdfs:label ?relLabelPre .\r\n bind(\"cito\" as ?typePre)\r\n } }\r\n optional { graph ?a {\r\n ?annotation oa:hasTarget ?annotationtarget ;\r\n oa:hasBody ?annotationbody .\r\n ?annotationbody rdf:value ?annotationtext .\r\n ?annotationtarget oa:hasSource ?_paper_iri ;\r\n oa:hasSelector ?annotationSelector .\r\n optional { ?annotationSelector oa:prefix ?annotatedprefix . }\r\n ?annotationSelector oa:exact ?annotatedtext .\r\n optional { ?annotationSelector oa:suffix ?annotatedsuffix . }\r\n bind(\"oa\" as ?typePre)\r\n bind(str(?annotationtext) as ?text)\r\n bind(concat(?annotatedprefix, \"\", ?annotatedtext, \"\", ?annotatedsuffix) as ?selection)\r\n } }\r\n bind(replace(str(?subj), '^.*?([a-zA-Z0-9\\\\-\\\\_]+)$', '$1') as ?subjLabel).\r\n bind(coalesce(str(?relLabelPre), replace(str(?rel), '^.*?([a-zA-Z0-9\\\\-\\\\_]+)$', '$1')) as ?relLabel).\r\n bind(coalesce(?typePre, \"other\") as ?type).\r\n}\r\norder by desc(?date)" . . "Tobias Kuhn" . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB" . "LNHUxgPT2q18DF9fqymem86husdxKNLPGJanqkY6QaVKa0vv1WVVjXzHNFQ5iGwx6hW+BsBoHGRH9PkP1WNNMx+O04sbMi17XkDGMCR3ZSPoy3NfRGsR98Mvp7N0p1OluArbSMic0GIcJN6kGwrkURIWiVPeGZYMj6v3AgnnJg0=" . . . "2024-09-11T12:50:46.639Z"^^ . . . . . . . . . . .