Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/sparq-org/sparqnpx agentmods add skills/sparq-org/sparq/data-formatsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sparq-org/sparq/data-formats)<a href="https://agentmods.dev/skills/sparq-org/sparq/data-formats"><img src="https://agentmods.dev/badge/skills/sparq-org/sparq/data-formats.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00104 | $0.16463 |
| Opus 5 | $0.00052 | $0.08231 |
| Sonnet 5 | $0.00021 | $0.03293 |
| Haiku 4.5 | $0.00010 | $0.01646 |
Grade A, and why
data-formats scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 822 lines — stays where its author put it; the contents beside it link to each section on GitHub.
sparq data formats
How to get RDF into a sparq Graph and how to snapshot one cheaply. Text formats
(Turtle / N-Triples / N-Quads / TriG) and the in-memory + streaming + external-memory
loaders live in sparq-core; the binary HDT archive format (including content-sniffed
.hdt.gz / .hdt.zst / .hdt.bz2) lives in the opt-in sparq-hdt crate.
Direction note: these crates parse RDF in. To write RDF out, sparq-engine ships the RDF writer matrix behind its opt-in
serialize-rdffeature — Turtle / TriG / N-Quads / JSON-LD 1.1 writers (sparq_engine::serialize::*), plus deterministic pretty (indented) variants — Turtle / TriG (graph_to_turtle_pretty, the long-term engine home for the site formatter) and JSON-LD (graph_to_jsonld_pretty); the N-Triples writer (triples_to_ntriples) is always on. See recipe 6.
Quickstart
Add the dependency (HDT is a separate, native-only crate):
# Cargo.toml
[dependencies]
sparq-core = "0.1" # default features include `parallel` (native)
sparq-hdt = "0.1" # OPTIONAL — only if you load .hdt archives
# To filter an HDT during its SPO decode instead of building the full Graph:
# sparq-hdt = { version = "0.1", features = ["load-filter"] }
oxrdf = { version = "0.3", features = ["rdf-12"] } # for Term/NamedNode at call sites
use sparq_core::Graph;
// `format` (plus media-type aliases): "turtle"|"ttl"|"text/turtle"|"application/turtle" |
// "ntriples"|"n-triples"|"nt"|"application/n-triples" | "nquads"|"n-quads"|"nq"|"application/n-quads" |
// "trig"|"application/trig". An UNRECOGNISED format string is an `Err` — NOT silently
// parsed as Turtle (sq-m2pc). JSON-LD ("jsonld"/"json-ld"/"application/ld+json") needs the
// `jsonld` feature on the `sparq-core` LIBRARY dep (OFF by default — the library stays lean);
// without it those strings also error rather than mis-parsing. [OPUS-4.8] sq-oy1f.4: the
// `sparq-cli` and `sparq-server` BINARIES enable `jsonld` by DEFAULT (a maintainer-directed
// exception), so they read/write JSON-LD out of the box; a library embedder opts in explicitly.
// [OPUS-4.8] sq-f47w1 (survey §B1): RDF/XML ("rdfxml"/"rdf-xml"/"application/rdf+xml")
// likewise needs the OPT-IN `rdfxml` feature on `sparq-core` (OFF by default — it links
// `oxrdfxml`/`quick-xml`, kept off the lean wasm bundle); without it those strings error
// rather than mis-parsing. RDF/XML has no named-graph syntax, so it loads via `load_str` /
// `parse_to_triples` (not the dataset path), serial-only (XML is not line-delimited).
let ttl = r#"@prefix ex: <http://ex/> .
ex:alice ex:knows ex:bob ."#;
let g = Graph::load_str(ttl, "turtle").expect("parse");
assert_eq!(g.len(), 1);
// HDT archive (sniffs .hdt.gz/.hdt.zst/.hdt.bz2 by magic bytes, not file name):
// let g = sparq_hdt::load("dataset.hdt").unwrap();
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +2 lines 57beda200075
- 8d ago First seen · 820 lines · 104 tokens per session scan A f8b58cbffd71
data-formats is a skill published in the GitHub repository sparq-org/sparq (10 stars, last pushed yesterday), licensed MIT. It adds 104 tokens to every session and 16,463 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
agent-platform-rag-engine-management
Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…
agent-platform-model-registry
Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.
foundry-config-setup
Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.
google-cloud-solution-agentic-analytics-spark-knowledge-catalog
Discovers requirements and generates guidance to design and deploy a governed, secure agentic-analytics solution for data that's distributed across Google Cloud, other cloud providers, or on-premises. Data that's outside Google Cloud (such as data from Databricks, Snowflake, Salesforce, SAP, or Oracle systems) is…
training-check
Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.
nemo-automodel-launcher-config
Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.