AdvancedAbout 16 min

    Ontology & Knowledge Graph

    Read the full article on Substack

    6 min read.

    Represent facts as RDF triples over a typed graph, then run a reasoner to derive a new implicit relationship — the structured, connected knowledge behind GraphRAG.

    Think of it this way: The ontology is the rulebook of a family tree (what a "parent" or "sibling" means); the knowledge graph is your actual family filled in. A reasoner can then deduce "grandparent" even though nobody wrote that edge.

    5 stored facts. Each edge is one triple: subject, predicate, object.

    worksAtlocatedInworksAtlocatedInknowsAdaPersonGracePersonAcmeCorpCompanyTechCoCompanyParisCityLondonCity

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Build a triple

    Schematic

    Complete the RDF-style statement.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    subject
    predicate
    object
    3 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    What is an RDF triple?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going