Skip to content

Gen queries from contacts and audit wd lexemes - #717

Draft
andrewtavis wants to merge 13 commits into
mainfrom
617-669-gen-queries-from-contracts-and-audit-wd
Draft

andrewtavis wants to merge 13 commits into
mainfrom
617-669-gen-queries-from-contracts-and-audit-wd

Conversation

@andrewtavis

@andrewtavis andrewtavis commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Contributor checklist


Description

This PR is being opened as a draft as I have way too many changes locally :)

Scribe-Data needs to shift in perspective towards first and foremost providing the data that Scribe needs. It was a poor decision on my end to push the project towards providing all the data, as this is causing maintainability issues. The goal for the scope is that it provides the data that Scribe applications need through generating queries from data contracts, and if the user wants to get all data, then it can audit Wikidata, create a simple contract for all the data, and then this contract can be used to generate the queries for all data. This functionality also means that for us it's dramatically easier to maintain the project as it's written in a way that the CLI itself can be used as a tool to expand its functionalities.

We'll thus be able to pass an argument to get for which query directory to use, with the default being the one within Scribe-Data that will have our queries. This PR also adds the functionality to generate queries from contracts and audit Wikidata for available lexemes for a language and data type. At time of opening the queries directory is being removed as I've deleted all queries, but I'll use the generation process to create them again before this PR is finalized.

Related issue

@andrewtavis

Copy link
Copy Markdown
Member Author

Note: Tests expected to fail as I haven't been updating them.

@andrewtavis andrewtavis changed the title Gen queeres from contacts and audit wd lexemes Gen queries from contacts and audit wd lexemes Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate queries from contracts Query generation is including the same query form in more than one query

1 participant