. . . . "This query returns the latest nanopublications from the given set of pubkey hashes and/or from the given user IRI." . . . "Get the latest nanopublications from pubkeys/userid" . . "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(if(?__pubkeyhashes = \"\", ?unbound, ?__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 filter(exists {?any_np npa:hasValidSignatureForPublicKeyHash ?pkh }) # Filter out the hashes for which no repo exists; try to do this better with future versions of Nanopub Query\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 ?pubkey . }\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" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB" . "UsXnt75aTHc6iE412bGtvdDMEyFnYNLN+fzqCB8sdoZs3HihId6wwdq8yEww8s6j9WTSNukvkXRuJJjWURbels0f8wfXhlG2u2o0Auo5m5rlfTRXTVV18PcX5U5lLE1249PYmchQqVhkI1FkLTDgv94NdIchO8NQw2ER9AnPO/k=" . . . "2024-09-16T07:27:11.108Z"^^ . . . . . . . . .