Skip to content

Commit

Permalink
#136 Mention both spouses of John Lennon
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoly-scherbakov committed Apr 9, 2024
1 parent 244effa commit 2c79970
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 27 deletions.
20 changes: 14 additions & 6 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1023,10 +1023,12 @@ <h2>Embedding YAML-LD in HTML Documents</h2>
<!--
<script type="application/ld+yaml">
"@context": https://json-ld.org/contexts/person.jsonld
"@id": http://dbpedia.org/resource/John_Lennon
"@id": https://dbpedia.org/resource/John_Lennon
name: John Lennon
born: 1933-02-18
spouse: http://dbpedia.org/resource/Yoko_Ono
born: 1940-10-09
spouse:
- https://dbpedia.org/resource/Yoko_Ono
- https://dbpedia.org/resource/Cynthia_Lennon
</script>
-->
</pre>
Expand Down Expand Up @@ -1334,14 +1336,20 @@ <h2>Best Practices</h2>
<!--
<script type="application/ld+yaml">
"@context": https://json-ld.org/contexts/person.jsonld
"@id": http://dbpedia.org/resource/John_Lennon
"@id": https://dbpedia.org/resource/John_Lennon
name: John Lennon
born: 1940-10-09
spouse: http://dbpedia.org/resource/Yoko_Ono
spouse:
- https://dbpedia.org/resource/Yoko_Ono
- https://dbpedia.org/resource/Cynthia_Lennon
---
"@context": https://json-ld.org/contexts/person.jsonld
"@id": http://dbpedia.org/resource/Yoko_Ono
"@id": https://dbpedia.org/resource/Yoko_Ono
born: 1933-02-18
---
"@context": https://json-ld.org/contexts/person.jsonld
"@id": https://dbpedia.org/resource/Cynthia_Lennon
born: 1939-09-10
</script>
-->
</pre>
Expand Down
24 changes: 15 additions & 9 deletions tests/cases/html/dedent-needed.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
<html>
<head>
<script type="application/ld+yaml">
"@context": https://json-ld.org/contexts/person.jsonld
"@id": http://dbpedia.org/resource/John_Lennon
name: John Lennon
born: 1940-10-09
spouse: http://dbpedia.org/resource/Yoko_Ono
---
"@context": https://json-ld.org/contexts/person.jsonld
"@id": http://dbpedia.org/resource/Yoko_Ono
born: 1933-02-18
"@context": https://json-ld.org/contexts/person.jsonld
"@id": https://dbpedia.org/resource/John_Lennon
name: John Lennon
born: 1940-10-09
spouse:
- https://dbpedia.org/resource/Yoko_Ono
- https://dbpedia.org/resource/Cynthia_Lennon
---
"@context": https://json-ld.org/contexts/person.jsonld
"@id": https://dbpedia.org/resource/Yoko_Ono
born: 1933-02-18
---
"@context": https://json-ld.org/contexts/person.jsonld
"@id": https://dbpedia.org/resource/Cynthia_Lennon
born: 1939-09-10
</script>
</head>
<body>
Expand Down
12 changes: 9 additions & 3 deletions tests/cases/html/dedent-not-needed.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
<head>
<script type="application/ld+yaml">
"@context": https://json-ld.org/contexts/person.jsonld
"@id": http://dbpedia.org/resource/John_Lennon
"@id": https://dbpedia.org/resource/John_Lennon
name: John Lennon
born: 1940-10-09
spouse: http://dbpedia.org/resource/Yoko_Ono
spouse:
- https://dbpedia.org/resource/Yoko_Ono
- https://dbpedia.org/resource/Cynthia_Lennon
---
"@context": https://json-ld.org/contexts/person.jsonld
"@id": http://dbpedia.org/resource/Yoko_Ono
"@id": https://dbpedia.org/resource/Yoko_Ono
born: 1933-02-18
---
"@context": https://json-ld.org/contexts/person.jsonld
"@id": https://dbpedia.org/resource/Cynthia_Lennon
born: 1939-09-10
</script>
</head>
<body>
Expand Down
24 changes: 15 additions & 9 deletions tests/cases/html/stream.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
<html>
<head>
<script type="application/ld+yaml">
"@context": https://json-ld.org/contexts/person.jsonld
"@id": http://dbpedia.org/resource/John_Lennon
name: John Lennon
born: 1940-10-09
spouse: http://dbpedia.org/resource/Yoko_Ono
---
"@context": https://json-ld.org/contexts/person.jsonld
"@id": http://dbpedia.org/resource/Yoko_Ono
born: 1933-02-18
"@context": https://json-ld.org/contexts/person.jsonld
"@id": https://dbpedia.org/resource/John_Lennon
name: John Lennon
born: 1940-10-09
spouse:
- https://dbpedia.org/resource/Yoko_Ono
- https://dbpedia.org/resource/Cynthia_Lennon
---
"@context": https://json-ld.org/contexts/person.jsonld
"@id": https://dbpedia.org/resource/Yoko_Ono
born: 1933-02-18
---
"@context": https://json-ld.org/contexts/person.jsonld
"@id": https://dbpedia.org/resource/Cynthia_Lennon
born: 1939-09-10
</script>
</head>
<body>
Expand Down
5 changes: 5 additions & 0 deletions tests/cases/html/stream.yamlld
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
- "@value": John Lennon
http://schema.org/spouse:
- "@id": http://dbpedia.org/resource/Yoko_Ono
- "@id": http://dbpedia.org/resource/Cynthia_Lennon
- "@id": http://dbpedia.org/resource/Yoko_Ono
http://schema.org/birthDate:
- "@type": http://www.w3.org/2001/XMLSchema#date
"@value": 1933-02-18
- "@id": http://dbpedia.org/resource/Cynthia_Lennon
http://schema.org/birthDate:
- "@type": http://www.w3.org/2001/XMLSchema#date
"@value": 1939-09-10

0 comments on commit 2c79970

Please sign in to comment.