Graphs

Search

Search IconIcon to open search

RDF

Last updated Aug 12, 2023

The Resource Description Framework ( RDF) is a framework for representing information in the Web. RDF “graph” is a set of RDF triples.

# RDF triple

An RDF triple consists of three components:

subjectpredicateobject
IRIyesyesyes
blank nodeyesyes
literalyes
1
(subject, predicate, object)

# RDF nodes

Nodes can be of 3 types:

IRI prefixvalue suffix
IRIyes
literalyesyes
blank nodeyes

It helps me to think about IRIs as global identifiers and blank nodes as local identifiers. Or you can think about IRIs as bounded variables and blank nodes as free variables in lambda calculus.

# RDF notation

I will use following notation:

Example of RDF triple (as tuple):

1
(:Alice, foaf:knows, :Bob)

or as graph:

1
:Alice → foaf:knows → :Bob

See RDF vs Graphs.