Nettle (Nested Triple Trees Language) is a compact, human-friendly concrete syntax for RDF. It expresses triples as indented trees so that related resources may be visually grouped.
Refer to the Nettle 0.1.0 specification.
- Significant whitespace for readability
- Simplified syntax reduces the number of special characters
includedirective for modular compositionshapesdirective for validation hintingaliasdirective for identity management@inversepredicate annotation for materialising a triple in reverse- Named graphs
- Ordered lists (collections)
- Quoted triples (reification)
base http://example.org/
prefix owl http://www.w3.org/2002/07/owl#
prefix schema https://schema.org/
prefix wd http://www.wikidata.org/entity/
alias Brian wd:Q204943
alias date http://www.w3.org/2001/XMLSchema#date
Mick
a
schema:Person
schema:name
"Sir Michael Philip Jagger"@en
knows
Keith
schema:birthDate
"1943-12-18" date
Brian
schema:birthDate
"1942-02-28" date
[Bill]
schema:birthDate
"1936-10-24" date
https://viaf.org/viaf/102199951
schema:birthDate
"1941-06-02" date
owl:sameAs
wd:Q128121
@prefix ex: <http://example.org/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix schema: <https://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://example.org/Mick> a schema:Person ;
schema:name "Sir Michael Philip Jagger"@en ;
ex:knows <http://example.org/Keith> , <http://www.wikidata.org/entity/Q204943> , [
schema:birthDate "1936-10-24"^^xsd:date
] , <https://viaf.org/viaf/102199951> ;
owl:sameAs <http://www.wikidata.org/entity/Q128121> .
<http://www.wikidata.org/entity/Q204943> schema:birthDate "1942-02-28"^^xsd:date .
<http://example.org/Keith> schema:birthDate "1943-12-18"^^xsd:date .
<https://viaf.org/viaf/102199951> schema:birthDate "1941-06-02"^^xsd:date .CC-BY-4.0