Arizona State University Campus Immersion charged out-of-state undergraduates $33,139 in tuition and required fees for 2024-25. Of its 2018 bachelor’s-seeking cohort, 68% graduated within six years.
Both numbers come with context: which students, which residency, which cohort, which year, which survey file. So where does that context go?
That depends on the ontology. This is the fourth experiment in a series that uses one public dataset, NCES IPEDS 2024, to show how languages and models change what a knowledge graph says. Experiment 3 asked where a number about a relationship lives. This one keeps the data fixed and swaps the vocabulary. The code, data and results are all on GitHub.
The setup: 808 values, three models, six questions
We took 24 IPEDS measures for 45 institutions: tuition at three residency levels, applicants, admit rate, enrollment, retention and graduation rates. That’s 808 non-blank values. We wrote them three ways:
- schema.org as JSON-LD. The vocabulary search engines read.
- A Wikidata-style statement model. Each value is a statement with qualifiers and a reference.
- A small custom OWL ontology. 281 triples, built for this data.
Then we asked all three the same six competency questions in SPARQL, ran every query in Oxigraph and checked every answer row against the CSVs.
One note before the examples: the Wikidata-style model is not Wikidata. It copies the Wikibase pattern under our own namespace and reuses seven real Wikidata property IDs. Everything else is minted locally.
See it: one school in three views
Pick any of the 45 schools in the visualization below, switch between the three views of its tuition and graduation rate, and see which view answers which question.
Open the visualization in a new tab
The three models
Here is how each model writes ASU’s numbers. Each heading links to the full ASU example on GitHub.
schema.org: context as words
schema.org has no property for an institution’s graduation rate, admit rate or retention. It has no slot for a cohort, and no residency or student level on a price. So the markup has to make choices. Tuition becomes an Offer with a free-text category. Everything else becomes a PropertyValue with the IPEDS file and variable packed into propertyID.
{ "@type": "Offer", "name": "UG published tuition + required fees, out-of-state, 2024-25",
"category": "Undergraduate", "price": 33139, "priceCurrency": "USD",
"ineligibleRegion": { "@type": "State", "name": "AZ" } }
{ "@type": "PropertyValue", "name": "Bachelor's-seeking graduation rate within 150% (6 yrs)",
"propertyID": "GR2024 GRTYPE 9/8", "value": 68, "unitText": "percent",
"description": "GR2024: 4-yr institutions 2018 entering cohort; 2-yr 2021 cohort (status as of Aug 31, 2024)" }
The 2018 cohort lives only inside that description, which names a 2021 cohort too.
Wikidata-style statements: context as qualifiers
Each value is a statement node. Qualifiers carry the student group, residency and academic year, and a reference points to the IPEDS file. The school also gets a short “truthy” wdt: triple for quick lookups.
ipeds:104151 p:tuitionAndFees kws:104151-ug_tuition_fees_out_of_state ;
wdt:tuitionAndFees 33139 .
kws:104151-ug_tuition_fees_out_of_state a wikibase:Statement ;
ps:tuitionAndFees 33139 ;
pq:appliesToPart kwd:undergraduate ; pq:residency kwd:outOfState ;
pq:academicYear "2024-25" ; pq:unit kwd:USD ;
prov:wasDerivedFrom kwr:COST1_2024-CHG3AY3 .
Custom OWL: context as classes
The custom ontology defines what the data actually contains: a TuitionCharge, a CohortRate, a Cohort. A graduation rate points to a cohort node, and the cohort’s size and other rates point to the same one.
obs:104151-gr4_rate_150_bach_pct a kgn:CohortRate ;
kgn:institution ipeds:104151 ; kgn:measure measure:graduation-rate ;
kgn:value "68"^^xsd:decimal ; kgn:unit kgn:Percent ; kgn:normalTimePercent 150 ;
kgn:cohort cohort:104151-bach-2018 ;
kgn:fromSurvey survey:GR2024 ; kgn:ipedsVariable "GRTYPE 9/8" .
cohort:104151-bach-2018 a kgn:Cohort ;
kgn:cohortType kgn:BachelorsSeeking ; kgn:entryYear "2018"^^xsd:gYear .
Results: all three get the numbers, but not the same way
“Correct” counts answer rows that match the CSV exactly.
| Competency question | schema.org | Wikidata-style | Custom OWL |
|---|---|---|---|
| CQ1. Out-of-state undergraduate tuition and fees, 2024-25 | By convention, 41/41 | Direct, 41/41 | Direct, 41/41 |
| CQ2. Six-year graduation rate, 2018 bachelor’s cohort | Text match, 33/33 | Direct, 33/33 | Direct, 33/33 |
| CQ3. Admit rate below 50%, fall 2024 | By convention, 11/11 | Direct, 11/11 | Direct, 11/11 |
| CQ4. Out-of-state minus in-state tuition and fees | By convention, 41/41 | Direct, 41/41 | Direct, 41/41 |
| CQ5. Survey file, variable and year behind every figure | Partial, 0/808 | Direct, 808/808 | Direct, 808/808 |
| CQ6. 2018 bachelor’s cohort: size and 4-, 5- and 6-year rates | By convention, 33/33 | Direct, 33/33 | Direct, 33/33 |
The labels matter more than the scores:
- Direct means every condition in the query matches a term the vocabulary defines.
- By convention means the query depends on strings or codes the vocabulary doesn’t define. Another publisher’s markup would need a different query.
- Text match means the query depends on words in human-readable names and descriptions.
- Partial means part of the answer isn’t in the graph.
The Wikidata-style and OWL models answered all six questions directly. schema.org answered four through conventions this markup invented and one by matching words. It couldn’t answer the sixth at all.
The models also differ in size. schema.org is the smallest at 6,717 triples (8.3 per value). The OWL model takes 8,952 and the Wikidata-style model 10,329 (12.8 per value). More context costs more triples.
Where each worldview strains
schema.org flattens context into words. Nothing in schema.org says “out-of-state,” “2018 cohort” or “within 150% of normal time.” The graduation-rate query finds the right number for all 33 schools only because the label happens to say “Bachelor’s” and “150%” and the description happens to say “2018.” Drop the year test and 32 schools return two rates. ASU’s are 68% and 67%, one for the 2018 cohort and one for 2016.
schema.org has nowhere to put a source on a price. Offer has no propertyID, so the 225 tuition values carry no IPEDS file. No figure has a year as data either. That’s why the provenance question scores 0 of 808.
The Wikidata-style shortcut loses the qualifiers. The wdt: triple is the short, fast way to query a Wikibase. It works for admit rate, with one statement per school. For tuition it returns every residency level with nothing to tell them apart, so 18 schools get two or three numbers. For graduation rates it returns up to six values per school, mixing cohorts, years and timeframes.
The statement model has no cohort. Answering CQ6 means linking four statements by repeating the same two qualifiers on each. At 19 triple patterns, it’s the longest query in the test. The OWL model has a Cohort node they all share.
The custom ontology is precise and private. It answers everything directly, and its restrictions say what a complete record looks like. But no search engine, LLM crawler or public knowledge base knows what kgn:TuitionCharge means.
What this means for your structured data
There’s no winner here. Each vocabulary is built for a different job, and most real projects end up using all three: a purpose-built model inside, schema.org on the web pages and Wikidata-style IDs for linking out.
A few practical takeaways:
- Treat schema.org as the publishing layer. It’s what search engines and LLMs read, so it belongs on the page. It isn’t built to be the system of record for numbers that depend on a cohort, a year or a residency.
- Write down your conventions. Four of schema.org’s six answers relied on choices this markup made, such as
category: "Undergraduate". Schema.org leaves those choices to each publisher, so two schools can publish the same fact two different ways. - Be careful with shortcuts. The truthy triple returned the right tuition for every school, along with 19 extra rows nobody asked for.
Pro tip: When a number depends on a year or a population, put that context in a field, not in a label. A query can filter a field. It can only guess at a label.
Simply put, a vocabulary decides which questions your data can answer without guessing. Choose it for the questions you expect, not for the data you have.
Run it yourself
Everything behind this post is in the Experiment 4 folder on GitHub. That includes the script that writes all three models from the IPEDS CSVs, the ontology, the SPARQL queries for each question and model, the full results and the visualization. The run takes about a second.
Next in the series: the CIP program codes as a SKOS taxonomy, and what happens when the same hierarchy is written as OWL classes.
