Vitrify

vitrify turns a mutable SPARQL response into a durable, inspectable local file with its query and retrieval evidence.
-
SPARQL endpoint
Send the exact query to Wikidata's mutable endpoint.
https://query.wikidata.org/sparql -
Vitrify command
Capture EU-capital labels in a local RO-Crate.
printf '%s' 'PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?label WHERE { ?country wdt:P463 wd:Q458 ; wdt:P36 ?capital . ?capital rdfs:label ?label . FILTER(LANG(?label) = "en") } ORDER BY ?label ' | vitrify sparql --endpoint https://query.wikidata.org/sparql \ --query - \ --format csv \ --to eu-capitals -
RO-Crate directory
The ordinary response file is kept with the exact query and RO-Crate evidence.
eu-capitals/
├──results.csv
├──ro-crate-metadata.json
└──query.rq
Inspect the capture
Success0.65 s260 bytes
Response bytes
Showing 5 of 28 rows.
| label |
|---|
| Amsterdam |
| Athens |
| Berlin |
| Bratislava |
| Brussels |
{
"@context": "https://w3id.org/ro/crate/1.3/context",
"@graph": [
{
"@id": "ro-crate-metadata.json",
"@type": "CreativeWork",
"conformsTo": {
"@id": "https://w3id.org/ro/crate/1.3"
},
"about": {
"@id": "./"
}
},
{
"@id": "./",
"@type": "Dataset",
"name": "results.csv",
"description": "SPARQL retrieval materialized by Vitrify.",
"datePublished": "2026-11-28T12:37:05.680952403+00:00",
"additionalProperty": [
{
"@id": "#retrieval-duration"
}
],
"license": "No license asserted by Vitrify; consult the source endpoint's terms of use.",
"hasPart": [
{
"@id": "results.csv"
},
{
"@id": "query.rq"
}
],
"publisher": {
"@id": "https://query.wikidata.org/sparql"
},
"author": {
"@id": "https://vitrify.iolanta.tech"
}
},
{
"@id": "results.csv",
"@type": "File",
"contentSize": "260",
"sha256": "ef2ee61293f2313df947c2caf33d7587b8bf31b8d4e057caf0583a2a37c6a100",
"encodingFormat": "text/csv"
},
{
"@id": "query.rq",
"@type": "File",
"contentSize": "311",
"encodingFormat": "application/sparql-query",
"sha256": "d08b3aa60646c5fdfa5af1ba9495879d23a7ad54822914195865f927cc81703a"
},
{
"@id": "https://vitrify.iolanta.tech",
"@type": "SoftwareApplication",
"name": "Vitrify",
"url": "https://vitrify.iolanta.tech",
"version": "0.1.4"
},
{
"@id": "https://query.wikidata.org/sparql",
"@type": "Organization"
},
{
"@id": "#retrieval",
"@type": "CreateAction",
"actionStatus": {
"@id": "http://schema.org/CompletedActionStatus"
},
"startTime": "2026-11-28T12:37:05.025477125+00:00",
"endTime": "2026-11-28T12:37:05.680952403+00:00",
"instrument": {
"@id": "https://vitrify.iolanta.tech"
},
"agent": {
"@id": "https://vitrify.iolanta.tech"
},
"object": [
{
"@id": "https://query.wikidata.org/sparql"
},
{
"@id": "query.rq"
}
],
"result": {
"@id": "results.csv"
},
"identifier": "https://query.wikidata.org/sparql",
"description": "HTTP 200; Accept: text/csv"
},
{
"@id": "#retrieval-duration",
"@type": "PropertyValue",
"propertyID": "retrieval-duration",
"name": "Retrieval duration",
"value": 0.654026578,
"unitCode": "SEC"
}
]
}
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?label
WHERE {
?country wdt:P463 wd:Q458 ;
wdt:P36 ?capital .
?capital rdfs:label ?label .
FILTER(LANG(?label) = "en")
}
ORDER BY ?label
What is vitrification?
To vitrify is to turn something into glass. See also: Stanislaw Lem Fiasco.
Install
cargo install vitrify
See Installation for the Rust version this command needs.