Expand description
Resource Catalog — canonical types, Quin encoding, and CapabilityProfile binding.
This module defines the authoritative Rust types for the YAML-backed resource
catalog (resources/*.yaml). It is the single source of truth — the Flutter
bridge and CLI both reference these types, not their own copies.
§Quin encoding
Each catalog entry can be encoded as a set of NQuins for first-class
graph membership. Predicate convention:
| Predicate string | Meaning |
|---|---|
llm:hasFormat | Model file format (e.g. gguf) |
llm:hasQuantization | Quantization level |
llm:hasSizeMb | File size (inline integer) |
llm:hasRamEstimateMb | Peak RAM needed (inline int) |
llm:hasSourceRepo | Source repo hash |
llm:hasLicense | License identifier hash |
ont:hasFormat | Ontology serialisation format |
ont:hasDomain | Domain tag hash |
prov:wasGeneratedBy | Provenance: download event |
prov:atPath | Local file path hash |
prov:atTimestamp | Unix timestamp (inline int) |
Structs§
- Download
Info - Where and how to fetch a resource.
- Example
Query - LLMResource
- A downloadable LLM / model package (primarily GGUF).
- Ontology
Resource - A downloadable ontology (OWL, SKOS, RDF/Turtle, etc.).
- Resource
Catalog - The complete in-memory resource catalog, loaded from
resources/*.yaml. - SPARQL
Resource - A public SPARQL endpoint.
Enums§
- Catalog
Error - Errors loading
resources/*.yaml.
Functions§
- load_
default - Load from
resolve_resources_dir(). - load_
from_ dir - Load the full catalog from
dir/catalog.yamland referenced child YAML files. - resolve_
resources_ dir - Resolve the resources directory for desktop / dev builds.