California airports with scheduled service are counted by size in a public OurAirports dataset of more than 100,000 triples.
scheduled-airports-rq.rq · data/scheduled-airports-rq.ttl · output · proof · check · playground
The question
A transport analyst wants to compare how many California airports the OurAirports directory marks as having scheduled airline service. How are those airports distributed across the directory’s size categories?
Historical background
OurAirports was created by David Megginson as a public directory of airports. Its contributor-maintained records include a scheduled-service flag and airport categories. Keeping a dated local copy makes the answer reproducible even as the directory is edited. About OurAirports
What we tell eyemind
The local Turtle file has 112,899 triples about 16,131 U.S. airports.
It uses the small, medium and large airport records from the public-domain
OurAirports snapshot of 28 November 2026. Each airport has an IRI based on
its ident and six properties for its name, kind, region, scheduled-service
flag, latitude and longitude. The 16,113 records with a municipality add
one more triple each. The example runs entirely from the saved files.
OurAirports open data · Pinned airports.csv · Data dictionary
SELECT ?kind (COUNT(?airport) AS ?airports) WHERE {
?airport :scheduledService true ;
:region "US-CA" ;
:kind ?kind .
}
GROUP BY ?kind
ORDER BY DESC(?airports) ?kind
What eyemind concludes
| OurAirports category | Airports with scheduled service |
|---|---|
| Medium | 19 |
| Large | 13 |
There are 32 matches in the snapshot. GROUP BY produces one row for each
category present in those matches, so small airports have no row. The
check report records the ordered result as a Logic Script term.
sparql_select(['kind', 'airports'], [[literal('medium_airport', datatype('http://www.w3.org/2001/XMLSchema#string')), 19], [literal('large_airport', datatype('http://www.w3.org/2001/XMLSchema#string')), 13]])
What the proof establishes
The saved report ends with verdict('checked'). The checker verifies the
pattern matches against the snapshot and replays the grouping, counts and
order. Only the fields used by the query participate in that calculation.
Try it
Run these commands from the repository root.
node bin/eyemind.js examples/scheduled-airports-rq.rq examples/data/scheduled-airports-rq.ttl
node bin/eyemind.js --proof examples/scheduled-airports-rq.rq examples/data/scheduled-airports-rq.ttl
node bin/eyemind.js --check-proof examples/proof/scheduled-airports-rq.js examples/scheduled-airports-rq.rq examples/data/scheduled-airports-rq.ttl
