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.
Resources
Name things with IRIs, state facts about them as triples, choose between resources and literals.
2Graphs
Collect triples in a graph, select and remove them, merge graphs from different producers.
3RDF formats
Write and read Turtle, N-Triples, TriX and RDF/XML.
4Namespaces and vocabularies
Short prefixes for long IRIs and the standard vocabularies built into the library.
5Datatypes and facets
Typed values, invalid values refused, custom datatypes with facets.
6Containers and collections
Bags, sequences and ordered lists: the blend of a wine, the awards it won.
7Reification
Record who said something instead of stating it as a fact.
8SHACL shapes
Write down what a correct catalog entry looks like.
9SHACL validation
Check data against the shapes and read the report.
Where the data comes from
The examples load vallerosa-catalog.ttl or build pieces of it by hand. Meet Vallerosa describes what is inside.