diff --git a/spec/data/json-vs-yaml.yaml b/spec/data/json-vs-yaml.yaml new file mode 100644 index 0000000..971a2c9 --- /dev/null +++ b/spec/data/json-vs-yaml.yaml @@ -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 diff --git a/spec/data/spec.yaml b/spec/data/spec.yaml new file mode 100644 index 0000000..06abb44 --- /dev/null +++ b/spec/data/spec.yaml @@ -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