Skip to main content

Module resource_import

Module resource_import 

Source
Expand description

Catalog ontology download → .q42 import pipeline (in-process, no subprocess).

Mirrors qualia-cli resources import-ontology but writes under {storage}/Index/. After a successful compile the raw RDF/OWL source file is removed by default so only {ontology_id}.q42 (+ .q42.meta.json sidecar) remain under Index/.

Structs§

ImportProgressCtx
Optional download/import progress sink (shared with LLM Hub via get_active_downloads).
OntologyImportResult

Enums§

ImportError

Functions§

import_catalog_ontology
Download a catalog ontology and compile it to .q42 under {storage}/Index/.
import_catalog_ontology_with_options
Download + compile with optional progress reporting and post-ingest source cleanup.
index_dir
ingest_local_rdf
Ingest a local RDF file into {storage}/Index/{ontology_id}.q42.
stream_download
stream_download_with_progress