Resource Description Framework (RDF)
Generating an RDF Dataset
tldrc -i input1 ... -i inputN rdfbase <https://example.com/>;
use <http://www.w3.org/2001/XMLSchema#> as xs;
/// An example.
type Example {
/// A property.
property: xs:string
}tldrc -i example/basic_post.tldr -i example/schema.org.tldr rdf_:6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://treeldr.org/Layout> .
_:6 <https://treeldr.org/name> "example_property" .
_:6 <https://treeldr.org/option> <http://www.w3.org/2001/XMLSchema#string> .
<https://example.com/Example> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<https://example.com/Example> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://treeldr.org/Layout> .
<https://example.com/Example> <https://treeldr.org/layoutFor> <https://example.com/Example> .
<https://example.com/Example> <https://treeldr.org/name> "Example" .
_:7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://treeldr.org/Field> .
_:7 <https://treeldr.org/fieldFor> <https://example.com/Example/property> .
_:7 <https://treeldr.org/format> _:6 .
_:7 <https://treeldr.org/name> "property" .
_:7 <http://www.w3.org/2000/01/rdf-schema#label> "A property." .
_:8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#List> .
_:8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:7 .
_:8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
<https://example.com/Example> <https://treeldr.org/fields> _:8 .
<https://example.com/Example> <http://www.w3.org/2000/01/rdf-schema#label> "An example." .
<https://example.com/Example/property> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
<https://example.com/Example/property> <http://www.w3.org/2000/01/rdf-schema#domain> <https://example.com/Example> .
<https://example.com/Example/property> <http://www.w3.org/2000/01/rdf-schema#range> <http://www.w3.org/2001/XMLSchema#string> .
<https://example.com/Example/property> <http://www.w3.org/2000/01/rdf-schema#label> "A property." .
_:2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://treeldr.org/Layout> .
_:2 <https://treeldr.org/name> "resource_id" .
_:2 <https://treeldr.org/option> _:1 .
_:5 <http://www.w3.org/2000/01/rdf-schema#label> "A property." .
_:1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://treeldr.org/Layout> .
_:1 <https://treeldr.org/layoutFor> <http://www.w3.org/2000/01/rdf-schema#Resource> .
_:1 <https://treeldr.org/reference> <https://treeldr.org/IRI> .Importing an RDF Dataset
Last updated
Was this helpful?