. . . . "This query returns the latest nanopublications from the given set of pubkey hashes." . . . "Get the latest nanopublications from pubkeys" . . "prefix rdfs: \r\nprefix np: \r\nprefix npa: \r\nprefix npx: \r\nprefix xsd: \r\nprefix dct: \r\n\r\nselect ?np ?label ?pubkey ?date where {\r\n\r\n #==================== MULTI-VALUE PLACEHOLDER =====================#------ config: ------\r\n { select ?pkh { # <- VAR pkh\r\n bind(?__pubkeyhashes as ?vs) # <- VAR __pubkeyhashes\r\n {select*{optional{?a ?b ?c}}limit 1} # (for some Virtuoso ver.) #\r\n values ?x {0 1 2 3 4 5 6 7 8 9} values ?y {0 1 2 3 4 5 6 7 8 9} #\r\n bind((10*?x)+?y as ?n) # (works up to a maximum of 100 values) #\r\n bind(\" \" as ?sep) # (separator as single regex-compatible char) # <- CONST sep\r\n bind(concat(\"^([^\",?sep,\"]*\",?sep,\"){\",str(?n),\"}\") as ?p) #\r\n bind(concat(?sep,\".*\") as ?p0) #\r\n filter(if(?n=0,true,regex(?vs,?p))) # (?n=0 check for Viruoso) #\r\n bind(replace(if(?n=0,?vs,replace(?vs,?p,\"\")),?p0,\"\") as ?pkh) # <- VAR pkh\r\n } } #\r\n #==================================================================#---------------------\r\n bind(uri(concat(\"https://w3id.org/np/l/nanopub-query-1.1/repo/pubkey/\", ?pkh)) as ?pubkeyservice)\r\n bind(if(bound(?pkh), ?pubkeyservice, ) as ?service)\r\n \r\n service ?service {\r\n graph npa:graph {\r\n ?np npa:hasValidSignatureForPublicKey ?pubkey .\r\n ?np dct:created ?date .\r\n ?np dct:creator ?_userid_iri .\r\n optional { ?np rdfs:label ?label }\r\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkeyx . filter(contains(?_pubkeyhashes, sha256(str(?pubkeyx)))) }\r\n filter not exists { ?np npx:hasNanopubType npx:retracts . }\r\n }\r\n }\r\n}\r\norder by desc(?date)\r\nlimit 100" . . "Tobias Kuhn" . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" . "MJQyTBkXUOPmNi3+jkurmf61aO4kAQ5c3okzjBmXGUJSa0uUMaflaca1WtVL9R606Ufu7aquZ5kIfRFTzoCXW/ynaIsv7y7kB1Bu9IVZY1t9Ju6uri7HpyF9bvt/4KhRl28Y94gVrqCXl4Gw8dEztJhybcmdGBxEp1N2fnCepvs=" . . . "2024-09-13T11:49:47.223Z"^^ . . . . . . . . .