Skip to content

Commit

Permalink
#94 Draft examples
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoly-scherbakov committed May 28, 2023
1 parent 8f193bb commit 2c12b9a
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/data/json-vs-yaml.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$id: JSONOrYAMLFeature
$reverse:
$type:
- rdfs:label: UTF-8
$type: Encoding
json:
- prov:value: yes
prov:wasDerivedFrom: JSON#section-8.1
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
78 changes: 78 additions & 0 deletions spec/data/spec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
"@context":
"@base": https://json-ld.github.io/yaml-ld/spec/
rdfs: http://www.w3.org/2000/01/rdf-schema#
schema: https://schema.org/

$id: "@id"
$type: "@type"

$id: https://json-ld.github.io/yaml-ld/spec/
schema:author:
- name: Gregg Kellogg
$id: https://github.com/gkellogg
$type: schema:Person

- name: Pierre-Antoine Champin
$id: https://github.com/pchampin
$type: schema:Person

- name: Roberto Polli
$id: https://github.com/ioggstream
$type: schema:Person

- name: Benjamin …
$id: https://github.com/BigBlueHat
$type: schema:Person

- name: Ted Thibodeau Jr
$id: https://github.com/TallTed
$type: schema:Person

- name: Vladimir Alexiev
$id: https://github.com/VladimirAlexiev
$type: Person

- name: Anatoly Scherbakov
country: am
$id: https://github.com/anatoly-scherbakov
$type: schema:Person

license:

schema:hasPart:
- rdfs:label: Introduction
schema:hasPart:
- rdfs:label: How to read this document
- rdfs:label: Terminology
- rdfs:label: Namespace prefixes
- rdfs:label: Conformance
- rdfs:label: Basic concepts
schema:hasPart:
- rdfs:label: JSON vs YAML comparison
- rdfs:label: Core requirements
$type: NormativeSection
schema:hasPart:
- rdfs:label: Encoding
- rdfs:label: Comments
- rdfs:label: Anchors and aliases
- rdfs:label: Streams

- rdfs:label: Security Considerations
- rdfs:label: Interoperability Considerations

- rdfs:label: IANA Considerations
$type: NormativeSection
schema:hasPart:
- rdfs:label: application/ld+yaml
- rdfs:label: Fragment identifiers
- rdfs:label: Examples

- rdfs:label: FAQ
schema:hasPart:
- rdfs:label: Why does YAML-LD not preserve comments?
- rdfs:label: Why does YAML-LD not extend the JSON-LD data model?

- rdfs:label: Best Practices

- rdfs:label: Extended YAML-LD Profile
- rdfs:label: References

0 comments on commit 2c12b9a

Please sign in to comment.