[ { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo/Head", "@graph": [ { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo/assertion", "@graph": [ { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo/get-cumulative-user-count", "http://purl.org/dc/terms/description": [ { "@value": "Returns the cumulative number of human users (with ORCID) who have published an introduction nanopub, per week (Mon-Sun)." } ], "http://purl.org/dc/terms/license": [ { "@id": "http://www.apache.org/licenses/LICENSE-2.0" } ], "@type": [ "https://w3id.org/kpxl/grlc/grlc-query" ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get cumulative user count by week" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/full" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix np: \nprefix npa: \nprefix npx: \nprefix xsd: \nprefix dct: \n\nselect ?week (substr(str(min(?fd1)), 0, 11) as ?firstday) (count(distinct ?u2) as ?totalusers) where {\n {\n select ?u1 ?fd1 ?w1 where {\n {\n select ?u1 (min(?d1) as ?fd1) where {\n graph npa:graph {\n ?np1 npa:hasValidSignatureForPublicKey ?pk1 .\n ?np1 dct:creator ?u1 .\n ?np1 dct:created ?d1 .\n ?np1 np:hasAssertion ?a1 .\n }\n graph ?a1 {\n ?decl1 npx:declaredBy ?agent1 .\n }\n filter(strstarts(str(?u1), \"https://orcid.org/\"))\n filter(?u1 != )\n filter(?u1 != )\n }\n group by ?u1\n }\n bind(if(month(?fd1) <= 2, year(?fd1) - 1, year(?fd1)) as ?y1)\n bind(if(month(?fd1) <= 2, month(?fd1) + 9, month(?fd1) - 3) as ?m1)\n bind(365*?y1 + xsd:integer(?y1/4) - xsd:integer(?y1/100) + xsd:integer(?y1/400) + xsd:integer((153*?m1 + 2)/5) + day(?fd1) as ?dn1)\n bind(?dn1 + 1 - xsd:integer((?dn1 + 1) / 7) * 7 as ?dw1)\n bind(xsd:integer((?dn1 - ?dw1) / 7) as ?w1)\n }\n }\n {\n select ?u2 ?w2 where {\n {\n select ?u2 (min(?d2) as ?fd2) where {\n graph npa:graph {\n ?np2 npa:hasValidSignatureForPublicKey ?pk2 .\n ?np2 dct:creator ?u2 .\n ?np2 dct:created ?d2 .\n ?np2 np:hasAssertion ?a2 .\n }\n graph ?a2 {\n ?decl2 npx:declaredBy ?agent2 .\n }\n filter(strstarts(str(?u2), \"https://orcid.org/\"))\n filter(?u2 != )\n filter(?u2 != )\n }\n group by ?u2\n }\n bind(if(month(?fd2) <= 2, year(?fd2) - 1, year(?fd2)) as ?y2)\n bind(if(month(?fd2) <= 2, month(?fd2) + 9, month(?fd2) - 3) as ?m2)\n bind(365*?y2 + xsd:integer(?y2/4) - xsd:integer(?y2/100) + xsd:integer(?y2/400) + xsd:integer((153*?m2 + 2)/5) + day(?fd2) as ?dn2)\n bind(?dn2 + 1 - xsd:integer((?dn2 + 1) / 7) * 7 as ?dw2)\n bind(xsd:integer((?dn2 - ?dw2) / 7) as ?w2)\n }\n }\n bind(?w1 as ?week)\n filter(?w2 <= ?week)\n}\ngroup by ?week\norder by desc(?week)" } ] } ] }, { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo/provenance", "@graph": [ { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo/pubinfo", "@graph": [ { "@id": "https://orcid.org/0000-0002-1267-0234", "http://xmlns.com/foaf/0.1/name": [ { "@value": "Tobias Kuhn" } ] }, { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo", "http://purl.org/dc/terms/created": [ { "@value": "2026-03-19T10:27:00Z", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://purl.org/dc/terms/creator": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ], "http://purl.org/dc/terms/license": [ { "@id": "https://creativecommons.org/licenses/by/4.0/" } ], "http://purl.org/nanopub/x/introduces": [ { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo/get-cumulative-user-count" } ], "http://www.w3.org/ns/prov#wasDerivedFrom": [ { "@id": "https://w3id.org/np/RACukHmzuKKvxudElenc0kX12E4umi9ExirfUVBXvVD3c" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate": [ { "@id": "http://purl.org/np/RANwQa4ICWS5SOjw7gp99nBpXBasapwtZF1fIM3H2gYTM" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate": [ { "@id": "https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw" }, { "@id": "https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [ { "@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "BwpFUU4JZY4RpRISX3y1EO87R8YiyGvurixNFvAUh0d9ut8tM1TkNMKP3JlqSV4kiq1aya9QXduR2Imr7Sw25UooQOjMxtrWgERNMv8uOtF96lb4J1cjn7lB9GNlvY+HVruTZ29w3pnwTbT3pX3PP9sBMgKy4K4NDfAcY3Ze00U=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RA6MMHn6iUBCFXzBqyGhrwAiBKCkUjZhp7CM4v1aPaAuo" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] } ]