@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-coauthors a ; dct:description "This query returns the co-authors of a given author."; dct:license ; rdfs:label "Get co-authors"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix fabio: prefix bibo: prefix foaf: select ?coauthor ?coauthor_label (count(distinct ?paper) as ?paper_count) where { values ?_author_multi_iri {} graph npa:graph { ?np npx:hasNanopubType fabio:ScholarlyWork . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?paper . } graph ?a { ?paper dct:title ?paper_label . ?paper bibo:authorList ?author_list . ?paper dct:date ?publication_date . ?author_list ?rdfseqpred1 ?_author_multi_iri . filter(strstarts(str(?rdfseqpred1), \"http://www.w3.org/1999/02/22-rdf-syntax-ns#_\")) ?author_list ?rdfseqpred2 ?coauthor_id . filter(strstarts(str(?rdfseqpred2), \"http://www.w3.org/1999/02/22-rdf-syntax-ns#_\")) ?coauthor_id foaf:name ?coauthor_label . bind(if(strstarts(str(?coauthor_id), \"https://orcid.org/\"), ?coauthor_id, ?coauthor_label) as ?coauthor) filter(?coauthor_id != ?_author_multi_iri) optional { ?paper dct:isPartOf ?journal . ?journal dct:title ?journal_label . } } } group by ?coauthor ?coauthor_label order by desc(?paper_count)""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-02-23T19:24:13.497Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-coauthors; npx:supersedes ; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB"; npx:hasSignature "nsgvhpRVZl5sW7OkI1GSJSzTS2ib4TR14wHgtFC4faFfirxYIbVm9lx2nmp57xklP5c7I45bmJR9Ah+pfoUNwbfwBAH7Hd4KJFSKQtO+/xx//gY/BDTXWPgjoMHsckqQjTuI3+c7jO6O8CAHDuPSMRcfkA8A/mBbaUgZS4f0LVc="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }