RDFSharp NuGet
The Store layer

Store at a glance

Remember where every fact came from

A graph knows what is said, a store also knows who said it. The Store layer adds a context to every triple, keeps many sources side by side and moves them from memory to a database when they grow.

What you find here

Everything in this layer lives in the RDFSharp.Store namespace, on top of RDFSharp.Model.

using RDFSharp.Model;
using RDFSharp.Store;

A quadruple is a triple with a fourth element, its context: the name of the source it comes from. A store holds quadruples, so the same statement told by two guides stays two statements. The chapters go from the quadruple to the store, then to the formats that carry contexts and last to the databases that can hold a store.

Where the data comes from

The examples load vallerosa-guides.trig, with one named graph per guide. The catalog goes into its own context next to them.

Improve this page