Ontology Grounding
Ontology Grounding subpackage. Contains modules and utilities for grounding JSON Schema with QUDT Ontology Using Either Simple LLM Prompting or Agent-based Workflow
- schema_miner.ontology_grounding.agentic_qudt_grounding(process_schema: dict | Path, save_schema: bool = False) dict | None
Ground a process schema with QUDT (QuantityKind and Unit) ontology using an agentic workflow powered by an LLM.
- Parameters:
process_schema (dict | Path) – Path to the JSON process schema to be grounded.
save_schema (bool) – Whether to save the grounded schema to disk.
- Returns dict | None:
The modified (grounded) schema dictionary, or None if grounding fails.
- schema_miner.ontology_grounding.prompt_based_qudt_grounding(process_schema: dict | Path, save_schema: bool = False) dict | None
Ground a process schema with QUDT (QuantityKind and Unit) ontology using a direct prompt-based approach.
- Parameters:
process_schema (dict | Path) – Path to the JSON process schema to be grounded.
save_schema (bool) – Whether to save the grounded schema to disk.
- Returns dict | None:
The modified (grounded) schema dictionary, or None if grounding fails.