. . . . "This query returns some general user statistics in the form of number of valid/invalidated/accepted nanopublications published." . . . "Get some general user statistics" . . "prefix np: \r\nprefix npa: \r\nprefix npx: \r\nprefix xsd: \r\nprefix dct: \r\nprefix rdfs: \r\nprefix nt: \r\nprefix bibo: \r\nprefix rdf: \r\n\r\nselect ?key ?value where {\r\n{\r\nselect ?key (count(?np) as ?value) where {\r\n\r\noptional { ?_pubkeyhashes } # ensure grlc is picking up the placeholder\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 ?service)\r\n \r\n service ?service { select distinct ?np ?invalidated { optional {\r\n graph npa:graph {\r\n ?np npa:hasValidSignatureForPublicKey ?pubkey .\r\n bind( exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkeyx . filter(contains(?_pubkeyhashes, sha256(str(?pubkeyx)))) } as ?invalidated )\r\n }\r\n } } }\r\n\r\nbind(if(?invalidated,\"invalidatedNpCount\",\"validNpCount\") as ?key)\r\nvalues ?key { \"invalidatedNpCount\" \"validNpCount\" }\r\n\r\n}\r\ngroup by ?key ?invalidated\r\n}\r\nunion\r\n{\r\nselect ?key (sum(?npcount) as ?value) where {\r\n\r\nbind(\"acceptedNpCount\" as ?key)\r\n\r\noptional { ?_userid_iri } # ensure grlc is picking up the placeholder\r\n\r\nvalues ?npType {\r\n \r\n \r\n \r\n}\r\nbind(uri(concat(\"https://w3id.org/np/l/nanopub-query-1.1/repo/type/\", sha256(str(?npType)))) as ?service)\r\n\r\nservice ?service { select (count(distinct ?np) as ?npcount) where { optional {\r\n graph npa:graph {\r\n ?np npa:hasValidSignatureForPublicKey ?pubkey .\r\n ?np np:hasPublicationInfo ?i .\r\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . }\r\n }\r\n graph ?i {\r\n ?np bibo:authorList ?authorList .\r\n ?authorList ?hasElement ?_userid_iri .\r\n filter(strstarts(str(?hasElement), str(rdf:_)))\r\n }\r\n} }\r\ngroup by ?np\r\n} }\r\ngroup by ?key\r\n}\r\n}\r\norder by ?key" . . "Tobias Kuhn" . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB" . "ZeoLK1TXhK1lOwhMmkZde6Cnd6c31i379M/GoGCaAijma7qW6SZMsw6o6wE+cJoRpKI5COBsgPiWKXa9QK7QWuKeovWH1uLhHfMOW7PXWUs0FDZbqf3Jlo9iaftWw8biGxOxx1LCs/PsSd39nNc0Pm/TsFjPu0PQtX+HMYKBCBc=" . . . "2024-08-14T07:23:55.572Z"^^ . . . . . . . . .