Skip to content

Commit

Permalink
#94 JSON vs YAML comparison table → YAML-LD
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoly-scherbakov committed Jun 25, 2023
1 parent 1402740 commit 1e4633f
Showing 1 changed file with 101 additions and 0 deletions.
101 changes: 101 additions & 0 deletions spec/data/json-vs-yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,111 @@ $reverse:
yaml:
- prov:value: yes
prov:wasDerivedFrom: YAML#52-character-encodings

- rdfs:label: UTF-16
json:
- prov:value: no
prov:wasDerivedFrom: JSON#section-8.1
yaml:
- prov:value: yes
prov:wasDerivedFrom: YAML#52-character-encodings

- rdfs:label: UTF-32
json:
- prov:value: no
prov:wasDerivedFrom: JSON#section-8.1
yaml:
- prov:value: yes
prov:wasDerivedFrom: YAML#52-character-encodings

- rdfs:label: "<code>{}</code> object"
$type:
$id: native-data-types
rdfs:label: Native data types
json:
prov:value: yes
prov:wasDerivedFrom: JSON#section-4
yaml:
prov:value: yes
prov:wasDerivedFrom: YAML#3211-nodes

- rdfs:label: "<code>[]</code> array"
$type: native-data-types
json:
prov:value: yes
prov:wasDerivedFrom: JSON#section-5
yaml:
prov:value: yes
prov:wasDerivedFrom: YAML#3211-nodes

- rdfs:label: string
$type: native-data-types
json:
prov:value: yes
prov:wasDerivedFrom: JSON#section-7
yaml:
prov:value: yes
prov:wasDerivedFrom: YAML#3211-nodes

- rdfs:label: number
$type: native-data-types
json:
prov:value: yes
prov:wasDerivedFrom: JSON#section-6
yaml:
- prov:value: integer
prov:wasDerivedFrom: YAML#10213-integer
- prov:value: floating point
prov:wasDerivedFrom: YAML#10214-floating-point

- rdfs:label: bool
$type: native-data-types
json:
prov:value: yes
prov:wasDerivedFrom: JSON#section-3
yaml:
prov:value: yes
prov:wasDerivedFrom: YAML#10212-boolean

- rdfs:label: null
$type: native-data-types
json:
prov:value: yes
prov:wasDerivedFrom: JSON#section-3
yaml:
prov:value: yes
prov:wasDerivedFrom: YAML#10211-null

- rdfs:label: Custom types
$type:
$id: features
rdfs:label: Features
json: no
yaml:
prov:value: yes
prov:wasDerivedFrom: YAML#tags

- rdfs:label: Cycles
$type: features
json: no
yaml:
prov:value: yes
prov:wasDerivedFrom: YAML#321-representation-graph

- rdfs:label: Documents per file
json: 1
yaml:
prov:value: ⩾ 1
prov:wasDerivedFrom: YAML stream

- rdfs:label: Comments
json: no
yaml:
prov:value: yes
prov:wasDerivedFrom: YAML#3233-comments

- rdfs:label: Anchors & aliases
json: no
yaml:
prov:value: yes
prov:wasDerivedFrom: YAML#3222-anchors-and-aliases

0 comments on commit 1e4633f

Please sign in to comment.