Programs as a taxonomy: CIP codes in SKOS

Is a nursing degree a kind of health professions program, or is it filed under health professions?

It sounds like the same thing. In a knowledge graph, it’s two different modeling choices, and one of them breaks when the classification changes.

Every U.S. academic program is classified with a CIP code. There’s a two-digit family (51, Health Professions), a four-digit series (51.38, Registered Nursing and related programs) and a six-digit code (51.3801, Registered Nursing/Registered Nurse). This is the fifth 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 4 swapped the vocabulary around the same numbers. This one models the classification itself. The code, data and results are all on GitHub.

What we built

SKOS is the W3C vocabulary for taxonomies, thesauri and classification schemes. It describes how concepts are organized, with labels, definitions and broader/narrower links. It doesn’t claim anything about what things are.

We converted the official NCES CIP 2020 file into a SKOS concept scheme:

  • 2,687 concepts: 50 families, 464 series and 2,173 six-digit codes, in 27,154 triples.
  • Labels and definitions for each one, plus 1,039 examples and 588 cross-references from the source file.
  • 161 retired CIP 2010 codes in a separate scheme, each mapped to its 2020 replacement.
  • A second, flat scheme for the 12 IPEDS award levels.

Here is one concept:

cip:51.3801 a skos:Concept ;
    skos:inScheme scheme:cip2020 ;
    skos:notation "51.3801" ;
    skos:prefLabel "Registered Nursing/Registered Nurse"@en ;
    skos:broader cip:51.38 ;
    skos:example "Nursing (BSN, BScN)"@en, "Registered Nurse (RN)"@en .

Then we joined the dataset’s 8,034 program offerings to the scheme and rolled completions up the hierarchy.

See it: every program, sized by degrees conferred

The visualization below is a zoomable sunburst. Zoom from family to series to code, read each concept’s definition and Turtle, and switch the sizing between completions and offerings.

Open the visualization in a new tab

Results: CIP converts cleanly

All 1,065 CIP codes in the dataset are live CIP 2020 codes. None is retired or missing.

Rolling up is one SPARQL property path. This query finds everything under Health Professions:

SELECT (COUNT(?o) AS ?offerings) (COUNT(DISTINCT ?code) AS ?codes) (SUM(?n) AS ?completions)
WHERE {
  ?o kgn:cip ?code ;
     kgn:completions ?n .
  ?code skos:broader+ cip:51 .
}

It returns 979 offerings in 155 codes, with 88,661 completions. Rolled up the same way for every family and series, the SPARQL totals match the CSV exactly.

FamilyOfferingsCompletionsShare
52 Business, Management, Marketing79993,12320.6%
51 Health Professions97988,66119.6%
11 Computer and Information Sciences41836,8068.1%
13 Education77332,6277.2%
24 Liberal Arts and Sciences, General Studies8729,1666.5%

Health Professions has the most offerings. By completions, Business is first.

We also ran ten integrity checks on the scheme. Nine came back with zero problems: no missing labels, no cycles, no orphans, no duplicate codes.

The tenth is worth knowing about. 869 pairs of concepts share a preferred label. Most are placeholders titled “Reserved,” or a series and one of its own codes with the same title. Four pairs are unrelated concepts. “Music” is both 36.0115 (leisure and recreational activities) and 50.09 (visual and performing arts). The code tells them apart. The label doesn’t.

Where subClassOf goes wrong

CIP classifies programs, so it’s tempting to write the hierarchy as OWL classes: cip:51.3801 rdfs:subClassOf cip:51.38, with each offering typed by its code. On its own, that works. After reasoning, family 51 has the same 979 offerings.

The trouble starts when two editions meet. Codes outlive editions, and older files and many program pages still use CIP 2010 codes. CIP 2020 moved Veterinary Medicine from 51.2401 (Health Professions) to 01.8001 (Agriculture).

A class model says “same thing” with owl:equivalentClass. SKOS says it with skos:exactMatch. We wrote the moves both ways and ran both through the same OWL RL reasoner:

SKOS (broader + exactMatch)Classes (subClassOf + equivalentClass)
Offerings under family 51979986
Completions under family 5188,66188,919
Offerings placed in two families07
Inconsistencies once families are declared disjointnot applicable7

Equivalent classes share all their superclasses. So the new veterinary code inherits Health Professions from its 2010 twin, and Ohio State’s professional doctorate in Veterinary Medicine becomes a kind of Health Professions program and a kind of Agriculture program. Six more offerings follow it. Declare the families disjoint, which is a natural rule since every code belongs to one family, and the reasoner reports seven inconsistencies.

The SKOS version doesn’t move. skos:exactMatch says two concepts can be used interchangeably for retrieval, and nothing more. It doesn’t carry the hierarchy across the mapping.

The underlying error is treating a code as a class of programs. A CIP code is a concept with a notation, a label, a definition and a history. It gets moved, merged and retitled. SKOS is built for that kind of object.

What SKOS costs

SKOS isn’t free either.

  • skos:broader isn’t transitive. Queries walk the tree with a property path (skos:broader+). That’s by design.
  • There’s no type inference. An offering points at a concept. It isn’t an instance of one. “Is this a health program?” is a path query, not a type check.
  • Labels need care. Nothing stops two concepts from sharing a label. Use the notation and the IRI to identify a concept.

What this means for your structured data

Most sites have a taxonomy somewhere: program categories, product types, topic tags, service areas. In my experience, those lists change more often than the pages they organize. The lesson from CIP applies to all of them.

  • Model categories as concepts, not as types. A category is a way of organizing things. It changes when the organization changes.
  • Identify by code, not by label. 869 shared labels in one official federal classification is a good reason not to join on names.
  • Plan for the next edition. Keep retired codes, mark them deprecated and map them to their replacements. Don’t overwrite them.

Pro tip: After any taxonomy change, check that every item still rolls up to exactly one top-level category. That one query caught the seven double-counted offerings here.

Simply put, a taxonomy is a filing system, not a statement about what things are. Model it that way and it survives its own revisions.

Run it yourself

Everything behind this post is in the Experiment 5 folder on GitHub. That includes the build script, a sample of the scheme, the integrity queries, the full results and a CIP title for each of the dataset’s 1,065 codes. The full run takes one to three minutes, nearly all of it in the reasoner.

Next in the series: the 26 rules that picked this dataset’s 45 schools, written as OWL classes, and how much of the sample a reasoner can rebuild from them.