. It is the foundation of and for this reason, the foundation of TreeLDR. Every TreeLDR set of documents is fundamentally an RDF dataset. TreeLDR builds upon the by using the same vocabulary and semantics, extended with its own vocabulary to define layouts.
Generating an RDF Dataset
Generating a JSON-LD context is done by using the rdf subcommand of the command line utility after the list of inputs. No need to specify what to export: everything will be exported in RDF.
tldrc -i input1 ... -i inputN rdf
For instance, consider the following layout for the schema:BlogPosting type:
base <https://example.com/>;
use <http://www.w3.org/2001/XMLSchema#> as xs;
/// An example.
type Example {
/// A property.
property: xs:string
}
The TreeLDR compiler (tldrc) can import an RDF dataset like any other input document using the -i option. For instance, we can import and export back the previously generated RDF dataset above, and we will get back the same document: