RDFSharp NuGet
The Model layer

Model at a glance

Describe the data, exchange it, check it

The Model layer is where RDF data takes shape: resources, literals and triples gathered in graphs, written in the standard formats and validated against SHACL shapes. Everything else in RDFSharp builds on it.

What you find here

Everything in this layer lives in the RDFSharp.Model namespace.

using RDFSharp.Model;

The chapters follow the life of the catalog. First the building blocks: what a resource, a literal and a triple are, how triples gather in a graph and how a graph is written to a file and read back. Then the vocabulary around the data: namespaces, datatypes, lists and claims. Last, the rules: SHACL shapes that describe a correct catalog entry and a validator that reports every entry that breaks them.

Where the data comes from

The examples load vallerosa-catalog.ttl or build pieces of it by hand. Meet Vallerosa describes what is inside.

Improve this page