Skip to content

RDF Primer

The Resource Description Framework is a way to describe graph data. RDF is not one specific technology, but an ecosystem of a number of complementary ways of working with data. It includes a variety of file formats, querying support, and patterns for describing data.

This document aims to cover the RDF fundamentals to start working with Knowboard. Users that wish to can incorporate more in-depth use of RDF, but the concepts described here form the core of Knowboard.

JSON Linked Data (JSON-LD) (.jsonld) defines an format RDF written in the JavaScript Object Notation.

YAML-LD (.yamlld) is based on JSON-LD, but uses the YAML format, aiming to be more “human-readable” by reducing the amount of puncutation and special characters needed.

Markdown has a convention for including metadata as a “frontmatter” block at the beginning of the file, delimited by --- markers:

---
meta: data
keys: and values
---

Many tools expect the frontmatter to contain YAML (though some tools support other formats). In Knowboard, the frontmatter is expected to be YAML, and is converted to RDF via the YAML-LD format described above.

Turtle (.ttl, “Terse RDF Triple Language”) is another file format for writing RDF. Turtle is designed to be a compact format and human-readable, so many RDF examples found online are provided in Turtle syntax.

SPARQL is the standard query language for RDF graphs.

https://www.w3.org/TR/shacl/ Shapes Constraint Language