Before you begin
Prerequisites
- No prior knowledge graph experience is required.
- Basic familiarity with research papers and tables is helpful. The optional runnable example uses Python.
Learning objectives
- Distinguish an entity from its identifier, label and class.
- Choose between a literal attribute and a relationship to another entity.
- Represent a research result without losing its experimental context or source.
- Read a small RDF graph and explain the result of a SPARQL query.
- Separate recorded assertions, logical consequences and externally verified evidence.
Overview
A useful knowledge graph begins with a deceptively simple question: what, exactly, are we saying about what? Consider a researcher who publishes a paper describing a method and reporting a result. A reading list can store the paper's title. A richer model can connect the paper to its author, connect the method to an evaluation, and preserve the conditions under which the reported result was obtained. These are different kinds of information, and treating them as interchangeable creates avoidable errors.
This article introduces four working terms. An entity is something we choose to describe; a relation connects things; an attribute supplies a descriptive value; and a statement expresses a claim using those pieces. The boundaries depend partly on the data model. RDF, for example, uses properties both for links to resources and for literal values. [1]
Our goal is to learn how to make a small model intelligible and answerable. We will use fictional scholarly data, write it in RDF, query it, and examine what the answer does and does not establish. We will also connect these fundamentals to current work on contextualized statements. A graph can record an assertion accurately while that assertion remains disputed, incomplete or wrong; recording and verification are separate responsibilities.
Historical and scientific foundations
The present lesson uses RDF as a concrete formalism, rather than attempting a complete history of graph-based knowledge representation. A relevant milestone is the W3C Recommendation Resource Description Framework (RDF) Model and Syntax Specification, dated 22 February 1999 and edited by Ora Lassila and Ralph R. Swick. It presented a framework for describing resources and exchanging metadata on the Web. This is a dated standardization milestone, not a claim that knowledge graphs began in 1999. [3]
RDF 1.1 subsequently specified the abstract graph model in a W3C Recommendation dated 25 February 2014, edited by Richard Cyganiak, David Wood and Markus Lanthaler. Keeping an abstract model separate from a file syntax matters: the same graph can be written in different serializations without changing the information it expresses. [2]
The scientific foundation is a separation between representation and interpretation. RDF semantics specifies how a graph is interpreted and when one graph entails another. An entailment is a consequence under the chosen semantics and assumptions; it does not independently establish that an input assertion agrees with an experiment or historical record. For a research wiki, both layers matter: a model must support coherent reasoning, while its factual content must remain traceable to evidence. [12]
Core explanation
Entities, identifiers and labels
A paper, researcher, institution, method or evaluation can each be treated as an entity in our example. An identifier lets the system refer to the chosen entity, while a label lets a person recognize it. The RDF primer distinguishes Internationalized Resource Identifiers (IRIs), literals and blank nodes: an IRI can identify a resource, while a literal represents a value such as a string or number. The resource itself need not be a Web page. [1]
Suppose two researchers share the name Amina Example. Merging their records merely because their labels match would combine different biographies. Conversely, a single researcher's spelling may vary across publications. In our proposed workflow, a label is therefore a display value, while an identity decision requires additional evidence. A stable identifier is useful only when the process assigning it has selected the right referent.
Relations and attributes
In the expression paper1 authoredBy amina, the relation connects a paper to a researcher. In paper1 publicationYear "2025", the value describes the paper. OWL 2 makes a corresponding formal distinction between object properties, which connect individuals, and datatype properties, which connect individuals to data values. This is useful terminology, but it should not be assumed to describe every graph technology. [5]
For comparison, Neo4j's property graph model gives nodes labels and gives relationships a direction and a type; both nodes and relationships can carry key–value properties. The same word property therefore needs its model context. A property on a relationship in that system is not the same storage construct as an RDF predicate. [6]
For our scholarly model, choose a literal when the value is mainly read, displayed or compared. Choose a linked entity when it has its own identity, descriptions or connections. A method named only by a string cannot directly share the richer description attached to our method1 entity. This is a modeling recommendation for the example, not a requirement to turn every value into a separate node.
| Element | Question | Example |
|---|---|---|
| Entity | What are we describing? | The paper identified as paper1 |
| Relation | How does it connect to something else? | paper1 authoredBy amina |
| Attribute | Which descriptive value does it have? | publicationYear 2025 |
| Statement | What claim do these pieces express? | The assertion that amina authored paper1 |
Triples and classes
In RDF 1.1, a triple has a subject, predicate and object. The subject is an IRI or blank node; the predicate is an IRI; the object is an IRI, blank node or literal. A graph is a set of these triples. A blank node can stand for an unnamed resource, but its serialization label is not a portable persistent identifier. Our examples use explicit IRIs to keep cross-references easy to inspect. [2]
A class describes a category; an instance is a member of that category. RDF Schema uses rdf:type to state class membership and rdfs:label for a human-readable name. Thus our paper can be an instance of Paper and still have its own title. Do not replace the paper with the class: a statement about one study is not automatically a statement about every study. [4]
Statements need context
Consider the proposed assertion “Method A achieves 0.82.” Before storing it, ask: 0.82 on which metric, dataset and split, and according to which paper? We will introduce an evaluation-result entity that holds those participants together. This follows the general intermediate-node pattern described by Natasha Noy and Alan Rector in the W3C note on n-ary relations: a relationship involving several participants or qualifications can be represented through an additional individual and its links. [7]
Source and processing history are another layer. PROV-O provides terms for entities, activities and agents, including derivation and attribution. For example, a record extracted from a paper may be described as derived from that paper, with the extraction process recorded separately. Provenance helps a reviewer investigate how information entered a graph; its presence does not guarantee that the extraction or original result is correct. [8]
Worked examples
Example 1: describe a paper and its researcher
All names, publications, methods, datasets and results in these examples are fictional teaching data. The example.org identifiers are illustrative and are not references to real studies. Our first question is: which researcher authored this paper, and which method does the paper study?
The following is Turtle, a concrete syntax for RDF. Prefix declarations abbreviate IRIs; a semicolon continues with another predicate for the same subject; and a abbreviates rdf:type. The @en suffix marks an English language-tagged string, while ^^xsd:gYear supplies the year datatype. [9]
@prefix ex: <https://example.org/academia/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:paper1 a ex:Paper ;
rdfs:label "A fictional study of research discovery"@en ;
ex:authoredBy ex:amina ;
ex:publicationYear "2025"^^xsd:gYear ;
ex:studiesMethod ex:method1 .
ex:amina a ex:Researcher ;
rdfs:label "Amina Example"@en .
ex:method1 a ex:Method ;
rdfs:label "Method A"@en .
Read the first group as five statements about one paper. The two links lead to reusable researcher and method records. The title and year remain values attached to the paper. Our graph does not say that the author invented the method, that the study was independently replicated, or that the method works well; none of those assertions has been supplied.
Notice a useful design choice: the paper identifier does not contain its title. If we correct a typo in the label, the links can stay attached to the same paper. If this were a production catalogue, we would also decide how preprints, accepted manuscripts and published versions relate. The current miniature model intentionally leaves that versioning question open.
Example 2: preserve the conditions of a reported result
Now imagine that our fictional paper reports a score of 0.82 for Method A on a named test split. Append this second block to the first. Here result1 identifies the result description, while reportedIn is our explicitly chosen link to its source paper. We are not treating this local predicate as a standardized provenance vocabulary.
# Append to the previous Turtle block; reuse its prefixes.
ex:result1 a ex:EvaluationResult ;
ex:method ex:method1 ;
ex:dataset ex:dataset1 ;
ex:metric ex:accuracy ;
ex:score "0.82"^^xsd:decimal ;
ex:reportedIn ex:paper1 ;
ex:split ex:testSplit1 .
ex:dataset1 a ex:Dataset ;
rdfs:label "Toy classification dataset"@en .
ex:accuracy a ex:Metric ;
rdfs:label "Accuracy"@en .
ex:testSplit1 a ex:DataSplit ;
rdfs:label "Fictional held-out test split"@en .
The score is attached to the evaluation result, not to Method A as a permanent universal characteristic. The metric, dataset and split travel with it through their shared result identifier. The same method could have other result records with different conditions. A reader can now ask a precise question about this one recorded setting.
This model is still deliberately incomplete. An actual comparative study may require dataset version, task definition, preprocessing, model settings, random seeds, sample size, uncertainty estimates and evaluation protocol. Add the conditions needed to interpret that study, rather than copying a short benchmark tuple and calling it complete evidence. Do not infer a ranking between methods unless their relevant evaluation conditions justify the comparison.
Practice and implementation
Save the two Turtle blocks together as academia.ttl. Save the query below as query.rq. It asks for results on our specific dataset, metric and split with a score of at least 0.80, and returns the source paper and method label.
PREFIX ex: <https://example.org/academia/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?paper ?methodLabel ?score
WHERE {
?result a ex:EvaluationResult ;
ex:method ?method ;
ex:dataset ex:dataset1 ;
ex:metric ex:accuracy ;
ex:split ex:testSplit1 ;
ex:score ?score ;
ex:reportedIn ?paper .
?method rdfs:label ?methodLabel .
FILTER (?score >= 0.80)
}
ORDER BY ?paper
SPARQL basic graph patterns match structures in an RDF graph. Shared variables join matching statements, SELECT chooses the returned bindings, and FILTER restricts them. This query does not train a model or verify a paper; it retrieves bindings that satisfy the stated pattern. [10]
The example was executed with Python and RDFLib 7.6.0. To use the same library version, run python -m pip install rdflib==7.6.0, then save this program as run_example.py in the same folder and run python run_example.py.
from pathlib import Path
from rdflib import Graph
graph = Graph().parse("academia.ttl", format="turtle")
print(f"Triples: {len(graph)}")
query = Path("query.rq").read_text(encoding="utf-8")
for row in graph.query(query):
print(f"{row.paper} | {row.methodLabel} | {row.score}")
The verified output is:
Triples: 22
https://example.org/academia/paper1 | Method A | 0.82
There is one returned row because this toy graph has one evaluation matching all the conditions. The comparison uses a decimal value, not a score stored as arbitrary text. No reasoning extension was enabled for this run. A successful execution verifies the syntax and demonstrated query behavior; it does not validate any real scientific result.
As a practical design exercise, write the question before adding data. Then identify which links and values are required to answer it. Our query needs the result-to-paper connection; without that connection, a numerical answer would lose the source a reader needs to inspect. This provides a concrete reason for including provenance-related information from the beginning.
Limitations and common mistakes
Missing information is not automatically a negative answer
OWL follows an open-world assumption: an assertion missing from a document may still be true. If our graph has no institution for Amina, it does not follow that she has no institution. OWL also does not automatically assume that differently named individuals are distinct. Identity and difference need careful treatment rather than a shortcut based solely on spelling. [5]
Types and constraints answer different questions
RDF Schema domain and range declarations support inferences about the types of resources using a property. They should not be read simply as form-validation rules that reject every unexpected input. For example, a domain declaration can support inferring a subject's class from a property's use. [4]
SHACL supplies a different tool: it validates a data graph against a shapes graph. A project could require its evaluation-result records to include a score, dataset and source link. Passing those shape checks would establish conformance to the chosen conditions, not that a reported score was reproduced or that a citation supports it. Structural validation and evidence review remain complementary. [11]
Attribution, assertion and truth must stay distinguishable
Describing a statement is not necessarily asserting it. In RDF 1.1, the conventional reification vocabulary can describe a triple without entailing that triple. This distinction is useful when a graph records a disputed claim or a source's wording. Our result example instead models an evaluation description directly; it does not use RDF reification syntax. [12]
Likewise, the RDF primer does not prescribe that a named graph's name identifies its source. Applications need explicit conventions or statements to establish source and attribution. [1]
For this wiki's research examples, keep a final practical distinction visible: an imported source claim, a curator's interpretation and a machine prediction may require different review. A prediction should not silently replace an observed result. If a system adds a confidence score, document what that score measures and how it was evaluated before presenting it as a probability of truth.
Recent advances and publications
This is a selection of developments directly relevant to statements and their context, researched through 9 October 2026. It is not an exhaustive publication inventory.
RDF 1.2: describing statements in the data model
The W3C RDF 1.2 Concepts and Abstract Data Model version dated 7 April 2026 is a Candidate Recommendation Snapshot, not a final W3C Recommendation. It adds triple terms in object position and describes reifiers connected to triple terms through rdf:reifies. The proposition represented by a triple term need not itself be asserted. Multiple reifiers can also support different contexts associated with the same triple term. [13]
For this lesson, the relevant advance is a more direct representation of information about statements. This does not settle which claims deserve belief or define one mandatory application meaning for every reifier. The runnable example above intentionally uses RDF 1.1 constructs; readers should check their tooling before adopting RDF 1.2 features. [13]
Hyper-relational learning: using qualifications in prediction
Jaejun Lee and Joyce Jiyoung Whang's ICML 2025 paper, Structure Is All You Need: Structural Representation Learning on Hyper-Relational Knowledge Graphs, presents MAYPL. Hyper-relational facts retain a main triple together with qualifiers. MAYPL initializes representations from graph structure and uses attentive message passing, including fact-level messages and aggregation around entities and relations. The authors evaluate link prediction in transductive settings with known entities and relations, and inductive settings involving previously unseen entities or relations. [14]
This is published proceedings research, and its reported benchmark performance concerns the evaluated prediction tasks. It does not demonstrate that a predicted relation is a verified scientific finding or that qualifiers automatically remove data bias. The contribution relevant here is that the arrangement of qualified statements can be used by a learning method, making careful representation useful beyond storage and display. We do not reproduce the paper's experiments in this article. [14]
Real-world applications
Wikidata: a value with qualifications and references
Wikidata's documented statement model combines a property and value, with optional qualifiers, references and ranks. Qualifiers can delimit what a statement means, while references identify supporting sources. Its guidance also allows multiple values and distinguishes statements from an unconditional declaration of a single ground truth. This is a working example of why a bare entity-to-value edge may not carry enough context. [15]
For a scholarly reading interface, the corresponding design lesson is to let users inspect the conditions and supporting source behind a displayed value. A compact answer card may be convenient, but the underlying model should retain the information needed to understand its scope. This is a proposed lesson for our interface, not a claim that the toy schema reproduces Wikidata's implementation.
OpenAlex: connecting scholarly records
Jason Priem, Heather Piwowar and Richard Orr's 2022 author preprint describes OpenAlex as an open index linking scholarly works, authors, venues, institutions and concepts, with access through an API and data dumps. We cite that dated description without treating its entity counts or terminology as a statement about today's complete service. The example illustrates a different layer of scholarly knowledge: connections among publications and their surrounding metadata. [16]
Such metadata can help a reader move between a work and related research activity. It does not, by itself, encode the precise claim, experimental conditions or evidence behind every conclusion in that work. In our example, the paper–author link serves this metadata layer; the separate evaluation-result record begins to address the content of the study.
Open Research Knowledge Graph: describing research contributions
The 2019 author preprint introducing the Open Research Knowledge Graph describes an infrastructure for machine-actionable scholarly knowledge and combines community contributions with automated acquisition. We cite the checked preprint version here. [17] NFDI4ING's current service description explains how ORKG represents research problems, methods, datasets and results and supports structured comparisons of contributions. [18]
This is close to the motivation for our evaluation-result entity: represent enough of a contribution to support comparison and inspection. Nevertheless, a comparison table requires compatible descriptions and adequate coverage. Our recommendation is to preserve links to the underlying papers and make missing conditions visible, so a reader can assess whether two displayed results should be compared at all.
Key lessons and practice question
- Identify the thing being described separately from its name and category.
- Use relationships when a value needs its own identity and connections; use literals when a descriptive value is sufficient.
- Keep a reported result connected to the conditions and source needed to interpret it.
- Distinguish recorded claims, logical inferences, structural validation and external verification.
- Test an example's behavior, then state exactly what that test establishes.
Practice question. A second fictional paper reports that Method A scores 0.91 on a different dataset. Should you replace the 0.82 value on result1?
Suggested answer. No. Create another result record linked to the second paper and its own dataset, metric and evaluation conditions. Retain the first record unless you are correcting that specific record based on evidence. The two scores alone do not establish improvement because the evaluation settings differ. To compare them responsibly, first determine whether their tasks, metrics and protocols support the comparison.
As a next exercise, sketch the additional result without changing the original. Then explain whether the existing query should return it. If its dataset is different from dataset1, it does not match the query as written. The question asked by the query is narrower than “find every high score.”
References
- Guus Schreiber and Yves Raimond (editors) (2014). RDF 1.1 Primer. W3C Working Group Note, 24 June 2014. official documentation. Accessed 2026-10-09.
- Richard Cyganiak, David Wood and Markus Lanthaler (editors) (2014). RDF 1.1 Concepts and Abstract Syntax. W3C Recommendation, 25 February 2014. standard. Accessed 2026-10-09.
- Ora Lassila and Ralph R. Swick (editors) (1999). Resource Description Framework (RDF) Model and Syntax Specification. W3C Recommendation, 22 February 1999; historical specification. historical source. Accessed 2026-10-09.
- Dan Brickley and R. V. Guha (editors) (2014). RDF Schema 1.1. W3C Recommendation, 25 February 2014. standard. Accessed 2026-10-09.
- Pascal Hitzler, Markus Krötzsch, Bijan Parsia, Peter F. Patel-Schneider and Sebastian Rudolph (editors) (2012). OWL 2 Web Ontology Language Primer (Second Edition). W3C Recommendation, 11 December 2012. standard. Accessed 2026-10-09.
- Neo4j (n.d.). Graph database concepts. Neo4j Getting Started documentation. official documentation. Accessed 2026-10-09.
- Natasha Noy and Alan Rector (editors) (2006). Defining N-ary Relations on the Semantic Web. W3C Working Group Note, 12 April 2006. official documentation. Accessed 2026-10-09.
- Timothy Lebo, Satya Sahoo and Deborah McGuinness (editors) (2013). PROV-O: The PROV Ontology. W3C Recommendation, 30 April 2013. standard. Accessed 2026-10-09.
- David Beckett, Tim Berners-Lee, Eric Prud’hommeaux and Gavin Carothers (2014). RDF 1.1 Turtle: Terse RDF Triple Language. W3C Recommendation, 25 February 2014. standard. Accessed 2026-10-09.
- Steve Harris and Andy Seaborne (editors) (2013). SPARQL 1.1 Query Language. W3C Recommendation, 21 March 2013. standard. Accessed 2026-10-09.
- Holger Knublauch and Dimitris Kontokostas (editors) (2017). Shapes Constraint Language (SHACL). W3C Recommendation, 20 July 2017. standard. Accessed 2026-10-09.
- Patrick J. Hayes and Peter F. Patel-Schneider (editors) (2014). RDF 1.1 Semantics. W3C Recommendation, 25 February 2014. standard. Accessed 2026-10-09.
- Olaf Hartig, Pierre-Antoine Champin and Andy Seaborne (editors); Gregg Kellogg (editor until 6 September 2025, in memoriam) (2026). RDF 1.2 Concepts and Abstract Data Model. W3C Candidate Recommendation Snapshot, 7 April 2026. official documentation. Accessed 2026-10-09.
- Jaejun Lee and Joyce Jiyoung Whang (2025). Structure Is All You Need: Structural Representation Learning on Hyper-Relational Knowledge Graphs. Proceedings of the 42nd International Conference on Machine Learning, PMLR 267:33765–33783. published. Accessed 2026-10-09.
- Wikidata contributors (n.d.). Help:Statements. Wikidata help documentation. official documentation. Accessed 2026-10-09.
- Jason Priem, Heather Piwowar and Richard Orr (2022). OpenAlex: A fully-open index of scholarly works, authors, venues, institutions, and concepts. arXiv:2205.01833, version 2, 17 June 2022. preprint. DOI: 10.48550/arXiv.2205.01833. Accessed 2026-10-09.
- Mohamad Yaser Jaradeh, Allard Oelen, Kheir Eddine Farfar, Manuel Prinz, Jennifer D’Souza, Gábor Kismihók, Markus Stocker and Sören Auer (2019). Open Research Knowledge Graph: Next Generation Infrastructure for Semantic Scholarly Knowledge. arXiv:1901.10816, version 3, 1 August 2019. preprint. DOI: 10.48550/arXiv.1901.10816. Accessed 2026-10-09.
- NFDI4ING (n.d.). ORKG — The Open Research Knowledge Graph. NFDI4ING service documentation. official documentation. Accessed 2026-10-09.