-
Notifications
You must be signed in to change notification settings - Fork 23
JSON-LD in HTML #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
JSON-LD in HTML #68
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5160552
Update the JSON-LD in HTML section to be normative, describe dataset …
gkellogg 96f5ea5
Fix typo
BigBlueHat b4afae7
Update HTML examples per comment.
gkellogg c1cac18
Update extracted examples.
gkellogg 5516c21
Update HTML processing section to consider HTML base element, and not…
gkellogg 9f2ef52
Remove bits about resolving to HTML base element to be added in a sep…
gkellogg 87ab2ee
Add section on restrictions for JSON-LD script elements, which is mor…
gkellogg 557ea44
Use reference to `space characters` instead of undefined "white space".
gkellogg 55120d6
Update replacement for comments that should remain in the output.
gkellogg 472285a
More work at undoing comments that should be viewable in the HTML whe…
gkellogg 00c6ec6
Add at-risk note on commenting/escaping contents of HTML script tags.
gkellogg e7ae46f
Update issue list.
gkellogg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-expanded.jsonld
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[{ | ||
"@id": "http://dbpedia.org/resource/John_Lennon", | ||
"http://xmlns.com/foaf/0.1/name": [{"@value": "John Lennon"}], | ||
"http://schema.org/birthDate": [ | ||
{"@value": "1940-10-09", "@type": "http://www.w3.org/2001/XMLSchema#date"} | ||
], | ||
"http://schema.org/spouse": [ | ||
{"@id": "http://dbpedia.org/resource/Cynthia_Lennon"} | ||
] | ||
}] |
9 changes: 9 additions & 0 deletions
9
examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-original.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
{ | ||
"@context": "https://json-ld.org/contexts/person.jsonld", | ||
"@id": "John_Lennon", | ||
"name": "John Lennon", | ||
"born": "1940-10-09", | ||
"spouse": "Cynthia_Lennon" | ||
} | ||
|
28 changes: 28 additions & 0 deletions
28
examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-statements.table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<table class="statements" data-result-for="Using the document base URL to establish the default base IRI-expanded" data-to-rdf> | ||
<thead><tr> | ||
<th>Subject</th> | ||
<th>Property</th> | ||
<th>Value</th> | ||
<th>Value Type</th> | ||
</tr></thead> | ||
<tbody> | ||
<tr> | ||
<td>http://dbpedia.org/resource/John_Lennon</td> | ||
<td>foaf:name</td> | ||
<td>John Lennon</td> | ||
<td> </td> | ||
</tr> | ||
<tr> | ||
<td>http://dbpedia.org/resource/John_Lennon</td> | ||
<td>schema:birthDate</td> | ||
<td>1940-10-09</td> | ||
<td>xsd:date</td> | ||
</tr> | ||
<tr> | ||
<td>http://dbpedia.org/resource/John_Lennon</td> | ||
<td>schema:spouse</td> | ||
<td>http://dbpedia.org/resource/Cynthia_Lennon</td> | ||
<td> </td> | ||
</tr> | ||
</tbody> | ||
</table> |
7 changes: 7 additions & 0 deletions
7
examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-turtle.ttl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@base <http://dbpedia.org/resource/> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix schema: <http://schema.org/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
<John_Lennon> foaf:name "John Lennon"; | ||
schema:birthDate "1940-10-09"^^xsd:date; | ||
schema:spouse <Cynthia_Lennon> . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
yaml/JSON-LD-using-native-data-types-for-numbers-and-boolean-values.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
yaml/Same-description-in-JSON-LD-context-shared-among-node-objects-.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
yaml/Using-the-document-base-URL-to-establish-the-default-base-IRI-expanded.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Example 104: Using the document base URL to establish the default base IRI-expanded | ||
--- | ||
- "@id": http://dbpedia.org/resource/John_Lennon | ||
http://xmlns.com/foaf/0.1/name: | ||
- "@value": John Lennon | ||
http://schema.org/birthDate: | ||
- "@value": '1940-10-09' | ||
"@type": http://www.w3.org/2001/XMLSchema#date | ||
http://schema.org/spouse: | ||
- "@id": http://dbpedia.org/resource/Cynthia_Lennon |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.