Skip to content
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

Definition of yaml-ld namespace documents #77

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
# YAML-LD

This repository describes the [YAML][] serialization of [JSON-LD 1.1][]
as developed by the [JSON for Linking Data Community Group](https://www.w3.org/community/json-ld/). The editors’ draft of the Note can also be [read directly](https://json-ld.github.io/yaml-ld/spec/).
as developed by the [JSON for Linking Data Community Group](https://www.w3.org/community/json-ld/).
The editors’ draft of the Note can also be [read directly](https://json-ld.github.io/yaml-ld/spec/).

The Use Cases and Requirements document can also be read [read directly](https://json-ld.github.io/yaml-ld/UCR/).

The YAML-LD Namespace contains a [convenience context](https://www.w3.org/ns/yaml-ld/v1)
which can also be [read directly](https://json-ld.github.io/yaml-ld/ns/v1.html).

## Disclaimer

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
Expand Down
87 changes: 87 additions & 0 deletions ns/v1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<html lang='en'>
<head>
<meta charset='utf-8'>
<title>The JSON-LD Vocabulary</title>
<link href='http://www.w3.org/StyleSheets/TR/W3C-ED' rel='stylesheet'>
<style>
dl.terms dt {
float: left;
clear: left;
width: 17vw;
}
dl.terms dd:after {
content: '';
display: block;
clear: both;
margin-bottom: 5px;
}
body script {
display: block;
font-family: monospace;
position: fixed;
white-space: pre;
}
</style>
</head>
<body>
<h1>The YAML-LD Convenience Context</h1>
<p><a href='http://www.w3.org/'><img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'></a></p>
<p>
Alternate versions of the vocabulary definition exist in
<a href='v1.jsonld' rel='alternate'>JSON-LD</a>.
</p>
<dl>
<dt>Published:</dt>
<dd><time>2022-09-01</time></dd>
</dl>
<section>
<h2>Introduction</h2>
<p>
This document, and the associated documents in alternative formats, defines the YAML-LD Convenience Context.
This context defines terms that can be used in place of JSON-LD keywords
to simplify serialization of documents in YAML-LD, within the limitations
on using aliases of keywords in JSON-LD algorithms.
</p>

<section>
<h2>Context Definition</h2>
</section>
<script type="application/ld+json">
{
"@context": {
"$always": "@always",
"$base": "@base",
"$container": "@container",
"$direction": "@direction",
"$embed": "@embed",
"$explicit": "@explicit",
"$graph": "@graph",
"$id": "@id",
"$import": "@import",
"$included": "@included",
"$index": "@index",
"$json": "@json",
"$language": "@language",
"$list": "@list",
"$nest": "@nest",
"$never": "@never",
"$none": "@none",
"$null": "@null",
"$omitDefault": "@omitDefault",
"$once": "@once",
"$prefix": "@prefix",
"$propagate": "@propagate",
"$protected": "@protected",
"$requireAll": "@requireAll",
"$reverse": "@reverse",
"$set": "@set",
"$type": "@type",
"$value": "@value",
"$version": "@version",
"$vocab": "@vocab"
}
}
</script>
</section>
</body>
</html>
34 changes: 34 additions & 0 deletions ns/v1.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"@context": {
"$always": "@always",
"$base": "@base",
"$container": "@container",
"$direction": "@direction",
"$embed": "@embed",
"$explicit": "@explicit",
"$graph": "@graph",
"$id": "@id",
"$import": "@import",
"$included": "@included",
"$index": "@index",
"$json": "@json",
"$language": "@language",
"$list": "@list",
"$nest": "@nest",
"$never": "@never",
"$none": "@none",
"$null": "@null",
"$omitDefault": "@omitDefault",
"$once": "@once",
"$prefix": "@prefix",
"$propagate": "@propagate",
"$protected": "@protected",
"$requireAll": "@requireAll",
"$reverse": "@reverse",
"$set": "@set",
"$type": "@type",
"$value": "@value",
"$version": "@version",
"$vocab": "@vocab"
}
}
Loading