Vocabularies
Contents
Vocabularies#
Module: spp_farmer_registry_vocabularies
Overview#
FAO-aligned vocabularies for farmer registry (crops, livestock, aquaculture)
Purpose#
This module is designed to:
Provide FAO-aligned vocabularies: Install pre-configured vocabulary codes for farm type, land tenure, land use, cultivation method, activity purpose, holder type, data source, and irrigation asset types.
Supply species vocabularies: Provide default crop, livestock, and aquaculture species codes aligned with FAO classification systems (ICC, FAO Livestock, ASFIS).
Import AGROVOC data: Enable bulk import of AGROVOC RDF vocabulary data with filtering, hierarchy preservation, and multilingual label extraction.
Module Dependencies#
Dependency |
Purpose |
|---|---|
|
OpenSPP: Vocabulary |
|
Background job worker |
Key Features#
Pre-installed Vocabularies#
The module installs vocabulary codes via XML data files:
Vocabulary |
Namespace URI |
Description |
|---|---|---|
Farm Type |
|
Crop, livestock, aquaculture, mixed |
Land Tenure |
|
Ownership and use rights |
Land Use |
|
Land use classification |
Cultivation Method |
|
Irrigated, rainfed |
Activity Purpose |
|
Subsistence, commercial, both |
Holder Type |
|
Individual, joint, institutional (FAO WCA 2020) |
Data Source |
|
Census, self-registration, field visit |
Irrigation Asset Type |
|
Types of irrigation infrastructure |
Species Vocabularies#
Default species codes for the three activity types:
Vocabulary |
Namespace URI |
Source Standard |
|---|---|---|
Crops |
|
FAO Indicative Crop Classification |
Livestock |
|
FAO Livestock Classification |
Aquaculture |
|
FAO ASFIS Species List |
AGROVOC Import#
The AGROVOC import system (spp.agrovoc.import) supports batch import from RDF N-Triples files:
Filtering modes: Import all concepts, filter by root concept hierarchy (e.g., only cereals), or import a specific list of concept codes
Hierarchy support: Extracts parent-child relationships from SKOS broader/narrower relations with configurable maximum depth
Multilingual labels: Extracts labels in a primary language plus configurable additional languages
Background processing: Uses
job_workerfor scalable processing of large datasetsPreview mode: Preview what would be imported before executing
A wizard (spp.agrovoc.import.wizard) provides a user-friendly interface for uploading files, selecting the target vocabulary type, and previewing results before import.
Integration#
spp_vocabulary: All vocabulary codes are stored in
spp.vocabulary.coderecords and referenced byspp_farmer_registryfor farm classification and species selection.job_worker: AGROVOC import processing runs as background jobs for handling large RDF datasets without blocking the UI.
openspp.org