Skip to content

Release a CSV table of AgrO terms (AgriculturalSemantics/agro#73) - #50

Open
KrishnaTO wants to merge 1 commit into
masterfrom
feat-73-terms-csv
Open

KrishnaTO wants to merge 1 commit into
masterfrom
feat-73-terms-csv

Conversation

@KrishnaTO

Copy link
Copy Markdown
Owner

Adds agro-terms.csv as a release file: a flat table of AgrO terms for agronomists and fieldbook developers who don't use OWL tools.

Columns: id (CURIE), label, definition, parents (labels), synonyms (exact). Multiple parents or synonyms are separated by |.

How it's built

  • src/sparql/agro-terms-table.sparql selects every non-obsolete AGRO_ class. Imported upper-level classes (BFO, OBI, …) aren't rows, which addresses the issue's request to leave out "top level classes that can be confusing for agronomists". They can still appear as parent labels.
  • It runs on the reasoned full release (agro.owl), so parents include inferred superclasses.
  • agro.Makefile adds an agro-terms.csv rule and appends it to ASSETS and RELEASE_ASSETS. make prepare_release therefore builds it and copies it to the repository root next to agro.owl. I used agro.Makefile because ODK regenerates Makefile.
  • .gitignore ignores the build copy in src/ontology. README.md lists the new file and the command to rebuild it.

Tested locally: sh run.sh make agro-terms.csv IMP=false PAT=false MIR=false produced 888 rows and no duplicate IDs. 2 terms have no definition and 5 have no labelled parent. Sample:

id,label,definition,parents,synonyms
AGRO:00000004,land levelling process,A planned process in which the agricultural field surface is shaped …,agricultural process|environmental system process,land levelling

The CSV isn't committed. It first appears at the repository root with the next release.

Requested in AgriculturalSemantics#73 (AgriculturalSemantics#73). Subset exports (AgriculturalSemantics#10) could reuse this mechanism. That issue is in the upstream repo, so this PR won't auto-close it.

🤖 Generated with Claude Code

Adds agro-terms.csv as a release asset: one row per non-obsolete AGRO_
class with ID, label, definition, parent labels and exact synonyms, built
from the reasoned full release. It is meant for agronomists and fieldbook
developers who don't use OWL tools, and leaves out imported upper-level
classes. Requested in AgriculturalSemantics#73.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant