From 9d755abb3d38a0e51f0e0a34bb6e8986a9913b9d Mon Sep 17 00:00:00 2001 From: Haren Daishika Date: Tue, 24 Nov 2026 20:27:47 +0530 Subject: [PATCH] Citation file, a draft JOSS paper, and the README brought up to date CITATION.cff gives GitHub's Cite this repository button, and Zenodo reads it for each release's DOI once the repository is switched on there. paper/paper.md and paper.bib draft a JOSS paper in the 2026 format, with the measurements from docs/VALIDATION.md and docs/SPIKES.md. It is not ready to submit before early March 2027, when the repository will have the six months of public history JOSS requires; its TODOs mark the ORCID, the research impact evidence and the AI usage disclosure to complete. The README said the desktop app arrives in the next release; it has had a Windows installer since v0.4.2. It now links to it, and says how to cite. --- CITATION.cff | 31 ++++++++++ README.md | 6 +- paper/paper.bib | 133 +++++++++++++++++++++++++++++++++++++++++++ paper/paper.md | 146 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 315 insertions(+), 1 deletion(-) create mode 100644 CITATION.cff create mode 100644 paper/paper.bib create mode 100644 paper/paper.md diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 0000000..7ad8893 --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,31 @@ +cff-version: 1.2.0 +message: "If you use Filiation in your research, please cite it as below." +type: software +title: "Filiation: a citation graph and research library that runs on your own computer" +abstract: >- + Filiation builds a research library from one paper. It follows the reference + lists through OpenAlex, records every citation as an edge, keeps the legal + open-access PDFs, extracts their text, and finds passages by keyword with + their page. It records the sentence in which each paper cites another, and + serves the library to AI assistants over the Model Context Protocol so that + their answers quote passages the researcher can check. It runs locally as a + desktop app and a command-line tool, with no account and no server. +authors: + - given-names: Haren + family-names: Daishika + email: harend.23@cse.mrt.ac.lk + affiliation: "Department of Computer Science and Engineering, University of Moratuwa" +repository-code: "https://github.com/codevector-2003/filiation" +url: "https://codevector-2003.github.io/filiation/" +license: Apache-2.0 +version: 0.4.4 +date-released: 2026-11-24 +keywords: + - citation graph + - literature review + - bibliometrics + - OpenAlex + - open access + - full-text search + - Model Context Protocol + - research software diff --git a/README.md b/README.md index f319756..c967ac9 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ A desktop window for Windows, macOS and Linux, for people who would rather not use a terminal: your papers, search, the citation map, the Reader with highlights, notes and several papers open in tabs, and connecting your AI assistant with one click. On Windows it keeps itself up to date. -The app arrives in the next release. Until then it builds from source: see [the desktop app](desktop/README.md). +On Windows, [download the installer](https://codevector-2003.github.io/filiation/docs/install/): no administrator rights needed. On macOS and Linux the app builds from source for now: see [the desktop app](desktop/README.md). @@ -136,6 +136,10 @@ Other assistants, all nine tools, and troubleshooting: **[AI assistants](docs/MC Issues and pull requests are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) first: how to build and test, the rules every change keeps, commit style, and the rules for AI-assisted work. A few rules are non-negotiable: no cgo in `fil` itself (the desktop shell is the one exception), no paywalled full text, no reference parsing, and no network in unit tests. +## Citing Filiation + +If Filiation helps your research, please cite it. GitHub's **Cite this repository** button, on the right of the repository page, gives APA and BibTeX from [`CITATION.cff`](CITATION.cff). + ## Why "Filiation"? In textual criticism, **filiation** is the work of establishing which manuscript was copied from which: reconstructing the lines of descent between surviving texts. Filiation does the same for research papers. Start from one paper, follow its citations back, and see the literature it grew out of. diff --git a/paper/paper.bib b/paper/paper.bib new file mode 100644 index 0000000..0d43ec3 --- /dev/null +++ b/paper/paper.bib @@ -0,0 +1,133 @@ +@misc{priem2022openalex, + author = {Priem, Jason and Piwowar, Heather and Orr, Richard}, + title = {{OpenAlex}: A fully-open index of scholarly works, authors, venues, institutions, and concepts}, + year = {2022}, + eprint = {2205.01833}, + archivePrefix = {arXiv}, + doi = {10.48550/arXiv.2205.01833} +} + +@misc{mcp2024spec, + author = {{Model Context Protocol}}, + title = {Model Context Protocol specification}, + year = {2024}, + howpublished = {\url{https://modelcontextprotocol.io/specification}} +} + +@article{garfield1955citation, + author = {Garfield, Eugene}, + title = {Citation indexes for science: A new dimension in documentation through association of ideas}, + journal = {Science}, + volume = {122}, + number = {3159}, + pages = {108--111}, + year = {1955}, + doi = {10.1126/science.122.3159.108} +} + +@misc{zotero, + author = {{Corporation for Digital Scholarship}}, + title = {Zotero}, + howpublished = {\url{https://www.zotero.org}} +} + +@misc{connectedpapers, + title = {Connected Papers}, + howpublished = {\url{https://www.connectedpapers.com}} +} + +@misc{litmaps, + title = {Litmaps}, + howpublished = {\url{https://www.litmaps.com}} +} + +@misc{researchrabbit, + title = {ResearchRabbit}, + howpublished = {\url{https://www.researchrabbit.ai}} +} + +@article{walters2023fabrication, + author = {Walters, William H. and Wilder, Esther Isabelle}, + title = {Fabrication and errors in the bibliographic citations generated by {ChatGPT}}, + journal = {Scientific Reports}, + volume = {13}, + pages = {14045}, + year = {2023}, + doi = {10.1038/s41598-023-41032-5} +} + +@inproceedings{lewis2020rag, + author = {Lewis, Patrick and Perez, Ethan and Piktus, Aleksandra and Petroni, Fabio and Karpukhin, Vladimir and Goyal, Naman and K{\"u}ttler, Heinrich and Lewis, Mike and Yih, Wen-tau and Rockt{\"a}schel, Tim and Riedel, Sebastian and Kiela, Douwe}, + title = {Retrieval-augmented generation for knowledge-intensive {NLP} tasks}, + booktitle = {Advances in Neural Information Processing Systems}, + volume = {33}, + pages = {9459--9474}, + year = {2020}, + doi = {10.48550/arXiv.2005.11401} +} + +@article{chen2006citespace, + author = {Chen, Chaomei}, + title = {{CiteSpace II}: Detecting and visualizing emerging trends and transient patterns in scientific literature}, + journal = {Journal of the American Society for Information Science and Technology}, + volume = {57}, + number = {3}, + pages = {359--377}, + year = {2006}, + doi = {10.1002/asi.20317} +} + +@article{vaneck2010vosviewer, + author = {van Eck, Nees Jan and Waltman, Ludo}, + title = {Software survey: {VOSviewer}, a computer program for bibliometric mapping}, + journal = {Scientometrics}, + volume = {84}, + number = {2}, + pages = {523--538}, + year = {2010}, + doi = {10.1007/s11192-009-0146-3} +} + +@article{aria2017bibliometrix, + author = {Aria, Massimo and Cuccurullo, Corrado}, + title = {bibliometrix: An {R}-tool for comprehensive science mapping analysis}, + journal = {Journal of Informetrics}, + volume = {11}, + number = {4}, + pages = {959--975}, + year = {2017}, + doi = {10.1016/j.joi.2017.08.007} +} + +@inproceedings{bastian2009gephi, + author = {Bastian, Mathieu and Heymann, Sebastien and Jacomy, Mathieu}, + title = {Gephi: An open source software for exploring and manipulating networks}, + booktitle = {Proceedings of the International AAAI Conference on Web and Social Media}, + volume = {3}, + number = {1}, + pages = {361--362}, + year = {2009}, + doi = {10.1609/icwsm.v3i1.13937} +} + +@article{robertson2009bm25, + author = {Robertson, Stephen and Zaragoza, Hugo}, + title = {The probabilistic relevance framework: {BM25} and beyond}, + journal = {Foundations and Trends in Information Retrieval}, + volume = {3}, + number = {4}, + pages = {333--389}, + year = {2009}, + doi = {10.1561/1500000019} +} + +@article{blondel2008louvain, + author = {Blondel, Vincent D. and Guillaume, Jean-Loup and Lambiotte, Renaud and Lefebvre, Etienne}, + title = {Fast unfolding of communities in large networks}, + journal = {Journal of Statistical Mechanics: Theory and Experiment}, + volume = {2008}, + number = {10}, + pages = {P10008}, + year = {2008}, + doi = {10.1088/1742-5468/2008/10/P10008} +} diff --git a/paper/paper.md b/paper/paper.md new file mode 100644 index 0000000..51fbec4 --- /dev/null +++ b/paper/paper.md @@ -0,0 +1,146 @@ +--- +title: 'Filiation: a citation graph and research library that runs on your own computer' +tags: + - Go + - citation analysis + - literature review + - bibliometrics + - OpenAlex + - open access + - Model Context Protocol +authors: + - given-names: Haren + surname: Daishika + orcid: 0000-0000-0000-0000 # TODO: replace with your ORCID iD before submitting + affiliation: '1' +affiliations: + - name: Department of Computer Science and Engineering, University of Moratuwa, Sri Lanka + index: 1 +date: 24 November 2026 # TODO: set to the submission date +bibliography: paper.bib +--- + + + +# Summary + +Filiation builds a research library from one paper. Given a DOI, an arXiv +identifier, a link or a title, it follows the paper's reference list through +OpenAlex [@priem2022openalex], most-cited first and within a budget the +researcher sets, and records every citation as an edge between two works. It +downloads the legal open-access PDFs of the papers it finds, extracts their +text, and finds passages by keyword with the page they are on. Where the text +allows, it records the sentence in which one paper cites another. The library +is served to AI assistants over the Model Context Protocol (MCP) +[@mcp2024spec], so that an assistant's answer can quote passages, with their +pages, from papers the researcher actually holds. Filiation runs on the +researcher's own computer as a desktop app and as a command-line tool, `fil`, +with no account and no server. + +# Statement of need + +A literature review starts from a few papers and works outward through their +references, the practice that citation indexes were invented to support +[@garfield1955citation]. Researchers do this today with several tools that do +not share data. Reference managers such as Zotero [@zotero] keep references +and PDFs but do not follow citations. Citation-map websites such as Connected +Papers [@connectedpapers], Litmaps [@litmaps] and ResearchRabbit +[@researchrabbit] draw the neighbourhood of a paper, but hold the map on their +servers and do not keep the papers or their text. General-purpose AI +assistants write fluent summaries, but invent or misattribute references +[@walters2023fabrication], and they cannot see the papers on the researcher's +disk. + +Filiation joins these steps in one local tool. The citation graph decides what +enters the library; the PDFs and their text make it searchable to the page; +and the MCP server lets an assistant search that library instead of its +memory, in the manner of retrieval-augmented generation [@lewis2020rag], while +Filiation itself writes no prose. Its users are researchers and students +conducting literature reviews, including those who never use a terminal, and +developers who want a citation graph they can script or export. + +# State of the field + +Bibliometric software such as CiteSpace [@chen2006citespace], VOSviewer +[@vaneck2010vosviewer] and bibliometrix [@aria2017bibliometrix] analyses and +maps a corpus that the user has already exported from an index. Filiation +differs in building the corpus itself by following references from a seed, +and in keeping the documents, not only their metadata. Citation-map websites +build the corpus automatically but are hosted services without full text. +Filiation's graph exports as GraphML for Gephi [@bastian2009gephi] and +NetworkX, so it complements these tools rather than replacing them. + +# Software design + +Filiation is written in Go and distributed as one static binary per platform, +with no runtime to install. Two decisions follow from that. SQLite is used +through a WebAssembly build of the driver, so no C toolchain is needed, with +FTS5 for keyword search; and PDF text is extracted by PDFium compiled to +WebAssembly, which matched `pdftotext` at a word-level F1 of 0.985 in our +measurements. + +Every work receives a permanent local identifier, and works are deduplicated +on their OpenAlex identifier, which a unique index enforces, because the same +paper often exists as preprint, conference paper and journal article. Graph +traversal is a breadth-first search with one set-based query per step: a +recursive SQL query produced 20.8 million intermediate rows and took 125 +seconds to depth five on a library of 10,000 citations. Expansion always takes +a node budget, because papers in science and engineering cite 70 to 100 works +each, and a library grows to several thousand works within two steps. + +Coverage depends on the field, and Filiation reports it rather than hiding it. +In our measurements, works with no reference list at the edge of the graph +ranged from 6% in medicine to 84% in the arts and humanities, and roughly one +work in eight had a legal open-access PDF, from 46% in physics to under 1% in +the humanities. Filiation never downloads a paywalled PDF. + +Search ranks papers by their best passages, fused with the title and +abstract, using BM25 [@robertson2009bm25]. Communities in the citation graph +are found with the Louvain method [@blondel2008louvain] and offered as +collections. The command line, the MCP server and the desktop app are thin +layers over one library package, and all storage sits behind one package so +the backend can be replaced. + +# Research impact statement + + + +Filiation has been validated across five fields. Twenty seed papers, four each +in medicine, physics, computer science, the social sciences and the arts and +humanities, each built a library, fetched its open-access PDFs, extracted +their text and exported the graph without error, 20 of 20. Searching each +paper's own title found it among the first five results in 211 of 219 papers +with text, and searches over 38,730 passages took under a third of a second. +The software has had public releases since September 2026, each with +binaries for Windows, macOS and Linux, and since November 2026 a Windows +installer for the desktop app, which keeps itself up to date. + +# AI usage disclosure + + + +Generative AI was used in building this software and preparing this paper. +Claude Code, Anthropic's coding assistant, running Claude models +[TODO: list the models and versions used], was used to write and revise code, +tests and documentation, to run validation and measurement scripts, and to +draft this paper. The author set the project's scope and made its design +decisions, which are recorded with their reasons and measurements in the +repository's decision log; reviewed, edited and tested the changes; and ran +the validation reported above. Every claim in this paper was checked against +the repository's measurements. + +# Acknowledgements + +Filiation's bibliographic data comes from OpenAlex, which publishes it under +CC0. + +# References