From a498c70ac0e6d3c1828c90a2b497eeef28b8b922 Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Mon, 29 May 2023 00:49:46 +0400 Subject: [PATCH] #94 Standardize example a bit --- spec/data/spec.yaml | 2 +- spec/index.html | 246 ++++++++++++++++++++++++-------------------- 2 files changed, 134 insertions(+), 114 deletions(-) diff --git a/spec/data/spec.yaml b/spec/data/spec.yaml index 06abb44..eb5d795 100644 --- a/spec/data/spec.yaml +++ b/spec/data/spec.yaml @@ -20,7 +20,7 @@ schema:author: $id: https://github.com/ioggstream $type: schema:Person - - name: Benjamin … + - name: Benjamin BigBlueHat $id: https://github.com/BigBlueHat $type: schema:Person diff --git a/spec/index.html b/spec/index.html index 4f5cab9..e46928c 100644 --- a/spec/index.html +++ b/spec/index.html @@ -665,10 +665,15 @@

JSON vs YAML comparison

title="Basic JSON-LD document"> @@ -686,12 +691,14 @@

JSON vs YAML comparison

data-content-type="application/ld+yaml" title="Basic YAML-LD document"> @@ -758,28 +765,32 @@

Anchors and aliases

The YAML-LD document in the following example - contains alias nodes for the `{"@id": "countries:ITA"}` object: + contains alias nodes for the `{"@id": "countries:US"}` object:

-       
     
@@ -797,31 +808,39 @@

Anchors and aliases

data-content-type="application/ld+json" title="JSON-LD resulting from YAML with node anchors"> @@ -841,15 +860,15 @@

Streams

data-content-type="application/ld+json" title="YAML-LD with several documents in one file"> @@ -1042,7 +1061,7 @@

FAQ

title="YAML-LD with comments"> @@ -1181,18 +1200,9 @@

Best Practices

data-content-type="application/ld+yaml" title="Example YAML-LD document without Convenience Context"> @@ -1214,7 +1224,7 @@

Best Practices