src/ontology/SKILL.md
GNN Active Inference ontology processing and validation. Use when working with ActInfOntologyAnnotation sections, mapping GNN variables to ontology terms, validating semantic annotations, or exploring Active Inference concept hierarchies.
npx skillsauth add activeinferenceinstitute/generalizednotationnotation gnn-ontologyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Processes Active Inference ontology annotations in GNN models. Maps GNN variables to standardized Active Inference concepts and validates semantic consistency.
# Run ontology processing
python src/10_ontology.py --target-dir input/gnn_files --output-dir output --verbose
# As part of pipeline
python src/main.py --only-steps 10 --verbose
| GNN Annotation | Ontology Concept | Description |
| ---------------- | ------------------ | ------------- |
| LikelihoodMatrix | A matrix | Observation model |
| TransitionMatrix | B matrix | State dynamics |
| HiddenState | s vector | Latent state beliefs |
| Observation | o vector | Sensory observations |
| Policy | π | Action sequences |
| Preference | C matrix | Preferred observations |
from ontology import (
process_ontology, parse_gnn_ontology_section, process_gnn_ontology,
load_defined_ontology_terms, validate_annotations,
generate_ontology_report_for_file, parse_annotation,
OntologyProcessor, OntologyValidator
)
# Process ontology section from GNN content
parsed = parse_gnn_ontology_section(gnn_content)
# Load defined ontology terms
terms = load_defined_ontology_terms()
# Validate annotations against defined terms
result = validate_annotations(annotations_list, terms)
# Use OntologyProcessor class
processor = OntologyProcessor()
result = processor.process_ontology(data)
# Use OntologyValidator class
validator = OntologyValidator()
is_valid = validator.validate_ontology(content)
process_ontology — main pipeline processing functionparse_gnn_ontology_section — extract ontology from GNN contentvalidate_annotations — validate against known termsOntologyProcessor — class with process_ontology(), validate_terms()OntologyValidator — class with validate_ontology(), check_consistency()output/10_ontology_output/This module registers tools with the GNN MCP server (see mcp.py):
process_ontologyvalidate_ontology_termsextract_ontology_annotationsdevelopment
GNN static HTML website generation from pipeline artifacts. Use when generating browsable documentation websites, creating HTML galleries of model visualizations, or publishing pipeline results as a static site.
data-ai
GNN graph and matrix visualization generation. Use when creating network graph plots, matrix heatmaps, state space diagrams, or other visual representations of GNN models.
testing
GNN advanced validation and consistency checking. Use when performing deep validation of GNN models, checking cross-model consistency, verifying structural integrity, or running validation reports.
tools
GNN shared utility functions and helper modules. Use when working with common pipeline utilities, logging helpers, file I/O wrappers, path management, or pipeline template infrastructure.