Incite
Incite is a program that when given a directory containing docx files will extract distinct citations embedded within those files (as zotero items) to produce a bibtex file at its output.
Install
hg clone https://hg.kewl.org/pub/incite cd incite make venv make install source ~/.venvs/incite/bin/activate
Usage
usage: bibtex [-h] -d DIR [-s SQL] [-l LIMIT] [file] positional arguments: file BIBTEX file name (Default:incite.bib) options: -h, --help show this help message and exit -d, --dir DIR data directory (Required) -s, --sql SQL SQLITE file name (Default:incite.db) -l, --limit LIMIT limit for author, editor & contributor (Default:unlimited)
The SQLITE file contains a running log of citations found.
Example
bibtex -d etc/100826 -l 3
head -32 etc/100826/incite.bib
@misc{644VJW4Y,
author = {Lee, Hoesung and Calvin, Katherine and Dasgupta, Dipak and others},
title = {IPCC, 2023: Climate Change 2023: Synthesis Report. Contribution of Working Groups I, II and III to the Sixth Assessment Report of the Intergovernmental Panel on Climate Change [Core Writing Team, H. Lee and J. Romero (eds.)]. IPCC, Geneva, Switzerland.},
year = {2023},
abstract = {The Synthesis Report (SYR) is a stand-alone synthesis of the most policy-relevant evidence from the scientific, technical, and socio-economic literature assessed in the Sixth Assessment Report (AR6) of the Intergovernmental Panel on Climate Change (IPCC). The SYR distils and integrates the main findings of the three reports of the Working Groups of the IPCC during the AR6, and the three AR6 Special Reports into a concise document. It consists of a Summary for Policymakers and a longer report.},
publisher = {Intergovernmental Panel on Climate Change (IPCC)},
doi = {10.59327/IPCC/AR6-9789291691647},
url = {https://www.ipcc.ch/report/ar6/syr/},
urldate = {2026-03-16},
shorttitle = {IPCC, 2023},
note = {Edition: First; Source: DOI.org (Crossref)},
}
@misc{7JARUNSA,
author = {Shimizu, Cogan and Hitzler, Pascal and Gonzalez-Estrecha, Seila and others},
title = {The Wikibase Approach to the Enslaved.Org Hub Knowledge Graph},
year = {2023},
abstract = {Many methodologies and platforms for creating, deploying, and defining the manner of knowledge graphs are available. For this paper, we single out the platform, Wikibase. Using Wikibase comes with many advantages: out-of-the-box software for de-referencing, a convenient user interface, a consistent way to track and record provenance and lineage, and the ability to execute SPARQL queries against an RDF representation of the knowledge graph. However, the provenance mechanism and the exact nature of the structure of the Wikibase representation can complicate developing a principled schema for knowledge graphs, as well as the approach to the materialization of the data for upload to the platform. In this paper, we detail the methodology used to design, implement, and deploy the Enslaved.Org Hub, a nationally recognized knowledge graph for documenting the peoples of the historical slave trade.},
publisher = {Springer Nature Switzerland},
doi = {10.1007/978-3-031-47243-5\_23},
url = {https://link.springer.com/10.1007/978-3-031-47243-5\_23},
isbn = {978-3-031-47242-8 978-3-031-47243-5},
urldate = {2025-12-29},
address = {Cham},
journal = {The Semantic Web {\textendash} ISWC 2023},
volume = {14266},
pages = {419-434},
note = {Series Title: Lecture Notes in Computer Science; Source: DOI.org (Crossref)},
editor = {Payne, Terry R. and Presutti, Valentina and Qi, Guilin and others},
}
Query
A tool to query the SQLITE database can view the JSON data generated by zotero.
citation -d etc/100826/ XX9RZTVH
{
"DOI": "10.1145/800193.1971922",
"ISBN": "978-1-4503-7491-0",
"URL": "https://dl.acm.org/doi/10.1145/800193.1971922",
"abstract": "This note speculates about the emergence of personal, portable information manipulators and their effects when used by both children and adults. Although it should be read as science fiction, current trends in miniaturization and price reduction almost guarantee that many of the notions discussed will actually happen in the near future.",
"accessed": {
"date-parts": [
[
"2024",
11,
14
]
]
},
"author": [
{
"family": "Kay",
"given": "Alan C."
}
],
"collection-title": "ACM '72",
"container-title": "Proceedings of the ACM annual conference - Volume 1",
"custom": {
"groupID": "6250885"
},
"event-place": "New York, NY, USA",
"id": "XX9RZTVH",
"issued": {
"date-parts": [
[
"1972"
]
]
},
"publisher": "Association for Computing Machinery",
"publisher-place": "New York, NY, USA",
"source": "ACM Digital Library",
"title": "A Personal Computer for Children of All Ages",
"type": "paper-conference",
"version": 25,
"volume": "1"
}

