You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UCR/index.html
+35-16
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
<!DOCTYPE html>
2
-
<html>
2
+
<htmllang="en">
3
3
<head>
4
4
<metacharset='utf-8'>
5
5
<title>YAML-LD Use Cases and Requirements</title>
@@ -47,20 +47,20 @@ <h2>Introduction</h2>
47
47
and <ahref="https://github.com/json-ld/yaml-ld/issues?q=is%3Aissue+is%3Aopen+label%3Aucr">issues</a>
48
48
of the community's GitHub repository.
49
49
50
-
<section>
51
-
<h2>Contributing Use Cases and Requirements</h2>
52
-
<p>
53
-
<ahref="https://github.com/json-ld/yaml-ld/issues/new?template=use-case.md">Create a GitHub issue following the dedicated template</a>. The suggested form is:
54
-
</p>
55
-
<pre>
56
-
WHO: As an <actor>
57
-
WHAT: I want a <feature>
58
-
WHY: So that <benefit>
59
-
</pre>
60
-
<p>
61
-
This is not mandatory.
62
-
</p>
63
-
</section>
50
+
<section>
51
+
<h2>Contributing Use Cases and Requirements</h2>
52
+
<p>
53
+
<ahref="https://github.com/json-ld/yaml-ld/issues/new?template=use-case.md">Create a GitHub issue following the dedicated template</a>. The suggested form is:
54
+
</p>
55
+
<pre>
56
+
WHO: As an <actor>
57
+
WHAT: I want a <feature>
58
+
WHY: So that <benefit>
59
+
</pre>
60
+
<p>
61
+
This is not mandatory.
62
+
</p>
63
+
</section>
64
64
</section>
65
65
66
66
<section>
@@ -70,12 +70,31 @@ <h2>Submitted Use Cases</h2>
70
70
<h4>Compatibility with existing libraries</h4>
71
71
<p><ahref="https://github.com/json-ld/yaml-ld/issues/5">Submitted Use Case</a></p>
72
72
<p>
73
-
As a developer of YAML-LD processors. I want to be able to use off-the-shelf libraries for converting between JSON-LD and YAML-LD serialization formats. So that data produced in JSON-LD can be easily represented in YAML-LD and visa-versa.
73
+
As a developer of YAML-LD processors, I want to be able to use off-the-shelf libraries for converting between JSON-LD and YAML-LD serialization formats. So that data produced in JSON-LD can be easily represented in YAML-LD and visa-versa.
74
74
</p>
75
75
<pclass="note">
76
76
There seems to be general compatibility between YAML libraries that produce equivalent results when serializing data originally parsed from JSON. This should be verified, but indicates an easy way of providing a YAML-LD serialization fully round-trippable with JSON-LD.
77
77
</p>
78
78
</section>
79
+
80
+
<section>
81
+
<h4>Distinguish "plain" YAML-LD from "ideomatic" YAML-LD</h4>
82
+
<p><ahref="https://github.com/json-ld/yaml-ld/issues/6">Submitted Use Case</a></p>
83
+
<p>As a processor. I want to easily distinguish between "plain" YAML-LD and "ideomatic" YAML-LD based on the use of local tags (or similar) which may require post-parsing processing to be interpreted using the JSON-LD processig algorithms. So that more complicated processing steps can be avoided.</p>
84
+
<preclass="example">
85
+
!yaml-ld
86
+
$context: http://schema.org/
87
+
$type: Person
88
+
name: Pierre-Antoine Champin
89
+
</pre>
90
+
<divclass="note">
91
+
<p>The previous example uses two such mechanisms:</p>
92
+
<ul>
93
+
<li>The use of `$` instead of `@` to denote JSON-LD keywords. (Note, other than for `@context`, this could be done using a standardized context defining appropriate keyword aliases).</li>
0 commit comments