[ { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA/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/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA", "http://purl.org/dc/terms/created": [ { "@value": "2025-10-02T07:36:08.194Z", "@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/embeds": [ { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA/get-monthly-type-overview-by-pubkeys" } ], "http://purl.org/nanopub/x/wasCreatedAt": [ { "@id": "https://nanodash.knowledgepixels.com/" } ], "http://www.w3.org/ns/prov#wasDerivedFrom": [ { "@id": "https://w3id.org/np/RActSoHqt-TlpCOldqLb9skfMioVxHzCZUYaNEM06FTsY" } ], "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/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ" }, { "@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/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "tCkQ/wAjH8Ls0RUhGKhSQp1yspcSjlESQvp6fph5Yd7HP+9nmB+OD8YgSR1sORrF2Nwqy0GofzMZajguwz0mpcT5lXqRWJr8QODZ9jlz5am3fWSi+uudXZGFhphvcoHxPmHxsEy/29q2gtzbTAW5Sb0MlWf8ghQQXc6bjN0oAmI=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA/Head", "@graph": [ { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA/get-monthly-type-overview-by-pubkeys", "http://purl.org/dc/terms/description": [ { "@value": "This query returns an monthly overview of published nanopublications by types for the past 12 months for the given pubkey hashes." } ], "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 type overview of monthly nanopubs by pubkeys" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/meta" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix rdfs: \r\nprefix np: \r\nprefix npa: \r\nprefix npx: \r\nprefix xsd: \r\nprefix dct: \r\n\r\nselect ?type ?month ?npCount ?npCountType where {\r\n\r\n\r\n{ select ?type ?month (count(?np) as ?npCount) where {\r\n graph npa:graph {\r\n values ?_pubkey_multi {}\r\n ?np npa:hasValidSignatureForPublicKeyHash ?_pubkey_multi .\r\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?_pubkey_multi . }\r\n ?np dct:created ?date .\r\n ?np npx:hasNanopubType ?type .\r\n\r\n bind(substr(str(?date), 0, 8) as ?month)\r\n bind(now() as ?now)\r\n bind(concat(str(year(?now)), '-', if(month(?now)>9,'','0'), str(month(?now))) as ?lastMonth)\r\n bind(concat(str(year(?now)-1), '-', if(month(?now)>9,'','0'), str(month(?now))) as ?firstMonth)\r\n filter(?month > ?firstMonth && ?month <= ?lastMonth)\r\n }\r\n}\r\ngroup by ?type ?month\r\norder by ?type desc(?month)\r\n}\r\n\r\n{ select ?type (count(?np) as ?npCountType) where {\r\n graph npa:graph {\r\n values ?_pubkey_multi {}\r\n ?np npa:hasValidSignatureForPublicKeyHash ?_pubkey_multi .\r\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?_pubkey_multi . }\r\n ?np dct:created ?date .\r\n ?np npx:hasNanopubType ?type .\r\n\r\n bind(substr(str(?date), 0, 8) as ?month)\r\n bind(now() as ?now)\r\n bind(concat(str(year(?now)), '-', if(month(?now)>9,'','0'), str(month(?now))) as ?lastMonth)\r\n bind(concat(str(year(?now)-1), '-', if(month(?now)>9,'','0'), str(month(?now))) as ?firstMonth)\r\n filter(?month > ?firstMonth && ?month <= ?lastMonth)\r\n }\r\n}\r\ngroup by ?type\r\norder by desc(?npCountType)\r\n}\r\n\r\n}\r\norder by desc(?npCountType) ?type desc(?month)" } ] } ] }, { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAhI-C2KsqS_IvnxwyBrbMFsoj65dhLWE_CBo_KtcVEVA/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] } ]