Graph of school and program node pairs joined by one to three curved edges, each edge carrying its own count, with one pair in front showing three award levels between the same two nodes.

Where does the number go? RDF vs. property graphs

In 2023-24, Arizona State University Campus Immersion conferred 701 bachelor’s degrees in Computer Science. Where does that 701 belong in a knowledge graph?

Not on the school. ASU awards degrees in hundreds of programs. Not on the program either, since dozens of schools teach Computer Science. The number belongs to the relationship between them, and only at one award level. The same school and program also produced 842 master’s degrees and 18 research doctorates that year.

This is the third 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 1 wrote the same facts in six syntaxes. Experiment 2 asked one question in four query languages. This one asks where a fact about a relationship lives. The code, data and results are all on GitHub.

Why this is harder than it looks

A property graph has an obvious answer: put the count on the edge. Edges carry properties, so ASU gets three edges to Computer Science, one per award level, each with its own count.

RDF can’t do that directly. A triple is just subject, predicate and object, with nowhere to hang a fourth value. Over the years, the RDF world has come up with several workarounds, and they don’t all behave the same way.

So we tested them. We wrote all 8,034 program rows from IPEDS in five models, loaded each into a real engine and asked every model the same two questions:

  • Q1: How many bachelor’s degrees did ASU confer in Computer Science (CIP 11.0701)? IPEDS says 701.
  • Q2: How many completions were there across all 8,034 rows? IPEDS says 451,677.

See it: one relationship, six ways

The visualization below draws the same relationship in every model, with the answer each engine returned. Switch between programs with one, two and three award levels, or try the slip button to see a common naming mistake.

Open the visualization in a new tab

The five models

Here is ASU’s bachelor’s-level row in each model. Each heading links to a full example on GitHub with all three award levels.

Property graph: the count on the edge

We ran this one in Kรนzu, an embedded Cypher database. Three award levels mean three CONFERRED edges between the same two nodes.

(i:Institution {unitid: '104151'})-[:CONFERRED {awardLevelCode: 5, completions: 701}]->(c:Cip {code: '11.0701'})

RDF with an intermediate node

This is the classic RDF answer: turn the relationship into a node. Each row becomes an “offering” that points to the school and the program. It’s also the model Experiment 2 used.

offering:104151-11.0701-5 a schema:EducationalOccupationalProgram ;
    schema:provider ipeds:104151 ;
    kgn:cip cip:11.0701 ;
    kgn:awardLevelCode 5 ; kgn:completions 701 .

RDF 1.1 standard reification

The school-to-program triple is stated once. Each row becomes an rdf:Statement that repeats the triple’s subject, predicate and object, then carries the count.

ipeds:104151 kgn:conferredIn cip:11.0701 .
offering:104151-11.0701-5 a rdf:Statement ;
    rdf:subject ipeds:104151 ; rdf:predicate kgn:conferredIn ; rdf:object cip:11.0701 ;
    kgn:awardLevelCode 5 ; kgn:completions 701 .

RDF 1.2 with a named reifier

RDF 1.2 adds reifiers: a name for one occurrence of a triple that can carry its own properties. The triple is stated once, and each row gets a reifier named for that row.

ipeds:104151 kgn:conferredIn cip:11.0701 ~ offering:104151-11.0701-5
    {| kgn:awardLevelCode 5 ; kgn:completions 701 |} .

RDF-star annotation syntax

The shortest version. The triple is stated once, and each row annotates << subject predicate object >> directly.

ipeds:104151 kgn:conferredIn cip:11.0701 .
<< ipeds:104151 kgn:conferredIn cip:11.0701 >> kgn:awardLevelCode 5 ; kgn:completions 701 .
<< ipeds:104151 kgn:conferredIn cip:11.0701 >> kgn:awardLevelCode 7 ; kgn:completions 842 .

That last file is where things get interesting.

Results: one file, two answers

We ran the RDF models in Oxigraph. Version 0.5 implements RDF 1.2. Version 0.3 implements the 2021 RDF-star Community Group report, which several triplestores adopted. So we loaded the same << >> file into both.

ModelGraph sizeQ1 (IPEDS: 701)Q2 (IPEDS: 451,677)
Property graph (Kรนzu)1,110 nodes, 8,034 edges701451,677
RDF: intermediate node43,455 triples701451,677
RDF 1.1: standard reification56,438 triples701451,677
RDF 1.2: named reifier per row32,336 triples701451,677
<< >> file, read as RDF 1.232,336 triples701451,677
Same file, read as RDF-star 202123,949 triples18, 701, 8421,061,729
Slip: RDF 1.2 reifier named for the pair28,898 triples18, 701, 8421,061,729

Every model that gave each row its own edge, node or reifier got both questions right. The two that hung several rows on one shared term didn’t.

The 2021 reading. The RDF-star report treats << s p o >> as a single term, identified only by its subject, predicate and object. All three ASU rows annotate that one term, so it ends up holding three award levels and three counts with nothing pairing them up. Ask for the bachelor’s count and you get all three numbers. RDF 1.2 reads the same << >> as “a new, unnamed reifier,” so each row keeps its own pairing.

It’s not a corner case. In this sample, 43% of school-program pairs (2,130 of 4,949) have more than one award level. Under the 2021 reading, total completions more than doubled, to 1,061,729. Research doctorates went from 5,298 to 81,129, because each doctorate row picked up its program’s bachelor’s and master’s counts.

RDF 1.2 doesn’t make you immune. A reifier is just a name. Name it for the row (offering:104151-11.0701-5) and everything works. Name it for the school-program pair, which looks reasonable if you think of the reifier as “the relationship,” and every row lands on it again. The results match the 2021 reading exactly.

This is easy to miss in testing. When a school offers a program at only one award level, every model returns the right answer, including the two broken ones. ASU’s Finance program (427 bachelor’s degrees, no other levels) passes everywhere. If your test data happens to be simple, you won’t see the problem until the real data arrives.

What each model costs

None of the working models is free.

  • The property graph is the most direct. The count sits where it belongs, and the query reads like the question. The trade-off is everything outside the graph. Property graphs have no standard way to share identifiers or vocabularies across systems, which is the job RDF was built for.
  • The intermediate node works everywhere. It costs a node per row and drops the direct school-to-program link, so “which programs does ASU offer?” becomes a two-hop query.
  • Standard reification works, but it’s heavy. It’s the largest graph in the test, at 56,438 triples, and every query has to restate subject, predicate and object.
  • RDF 1.2 reifiers combine the two. The direct triple stays, and each row gets its own node. A named reifier is essentially the intermediate node with a pointer back to the triple it describes.

A note on timing: RDF 1.2 was still a W3C Candidate Recommendation as of its April 2026 snapshot, not a final standard. Triplestores implemented RDF-star on their own schedules, so check how yours reads << >> before you rely on it.

What this means for your structured data

In my experience, most structured data problems aren’t syntax errors. They’re modeling decisions nobody wrote down. This experiment is a clean example. Every file here parses and every query runs. Two of them still return the wrong number.

A few practical takeaways:

  • Give every fact its own identity. If a value depends on context, such as an award level, a year or a location, that context belongs in the identifier of whatever holds the value.
  • Test with messy data. Single-level programs passed in every model. The failures only showed up on the 43% of programs with several award levels.
  • Know your engine’s version of RDF-star. The same Turtle file and the same SPARQL query gave different answers in two releases of the same database.

Pro tip: When you load a graph, check one aggregate against the source data, such as a total count. That one check caught every broken model in this experiment.

Simply put, a number in a knowledge graph is only as trustworthy as the thing it’s attached to. That matters more as LLMs start reading graphs and repeating the totals they find.

Run it yourself

Everything behind this post is in the Experiment 3 folder on GitHub. That includes the script that writes all five models from the IPEDS CSVs, the Cypher and SPARQL queries, the full results and the visualization. The main run takes about two seconds. The RDF-star 2021 comparison needs an older Oxigraph in a second Python environment, and the README covers the setup.

Next in the series: the same data in three worldviews, modeled with schema.org, Wikidata and a custom OWL ontology.