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: README.md
+46-15Lines changed: 46 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,33 +7,58 @@
7
7
## Introduction
8
8
This library is an implementation of the JSON-LD specification in C#.
9
9
10
-
JSON, as specified in RFC7159, is a simple language for representing objects on the Web. Linked Data is a way of describing content across different documents or Web sites. Web resources are described using IRIs, and typically are dereferencable entities that may be used to find more information, creating a "Web of Knowledge". JSON-LD is intended to be a simple publishing method for expressing not only Linked Data in JSON, but for adding semantics to existing JSON.
11
-
12
-
JSON-LD is designed as a light-weight syntax that can be used to express Linked Data. It is primarily intended to be a way to express Linked Data in JavaScript and other Web-based programming environments. It is also useful when building interoperable Web Services and when storing Linked Data in JSON-based document storage engines. It is practical and designed to be as simple as possible, utilizing the large number of JSON parsers and existing code that is in use today. It is designed to be able to express key-value pairs, RDF data, RDFa data, Microformats data, and Microdata. That is, it supports every major Web-based structured data model in use today.
13
-
14
-
The syntax does not require many applications to change their JSON, but easily add meaning by adding context in a way that is either in-band or out-of-band. The syntax is designed to not disturb already deployed systems running on JSON, but provide a smooth migration path from plain JSON to semantically enhanced JSON. Finally, the format is intended to be fast to parse, fast to generate, stream-based and document-based processing compatible, and require a very small memory footprint in order to operate.
10
+
JSON, as specified in RFC7159, is a simple language for representing objects on
11
+
the Web. Linked Data is a way of describing content across different documents
12
+
or Web sites. Web resources are described using IRIs, and typically are
13
+
dereferencable entities that may be used to find more information, creating a
14
+
"Web of Knowledge". JSON-LD is intended to be a simple publishing method for
15
+
expressing not only Linked Data in JSON, but for adding semantics to existing
16
+
JSON.
17
+
18
+
JSON-LD is designed as a light-weight syntax that can be used to express Linked
19
+
Data. It is primarily intended to be a way to express Linked Data in JavaScript
20
+
and other Web-based programming environments. It is also useful when building
21
+
interoperable Web Services and when storing Linked Data in JSON-based document
22
+
storage engines. It is practical and designed to be as simple as possible,
23
+
utilizing the large number of JSON parsers and existing code that is in use
24
+
today. It is designed to be able to express key-value pairs, RDF data, RDFa
25
+
data, Microformats data, and Microdata. That is, it supports every major
26
+
Web-based structured data model in use today.
27
+
28
+
The syntax does not require many applications to change their JSON, but easily
29
+
add meaning by adding context in a way that is either in-band or out-of-band.
30
+
The syntax is designed to not disturb already deployed systems running on JSON,
31
+
but provide a smooth migration path from plain JSON to semantically enhanced
32
+
JSON. Finally, the format is intended to be fast to parse, fast to generate,
33
+
stream-based and document-based processing compatible, and require a very small
34
+
memory footprint in order to operate.
15
35
16
36
You can read more about JSON-LD on the [JSON-LD website][jsonld].
17
37
18
38
## Conformance
19
39
20
40
This library aims to conform with the following:
21
41
22
-
*[JSON-LD 1.0][JSON-LD 1.0], W3C Recommendation, 2014-01-16, and any [errata][errata]
23
-
*[JSON-LD 1.0 Processing Algorithms and API][JSON-LD 1.0 API], W3C Recommendation, 2014-01-16, and any [errata][errata]
42
+
*[JSON-LD 1.0][JSON-LD 1.0], W3C Recommendation, 2014-01-16, and any
43
+
[errata][errata]
44
+
*[JSON-LD 1.0 Processing Algorithms and API][JSON-LD 1.0 API], W3C
45
+
Recommendation, 2014-01-16, and any [errata][errata]
The [JSON-LD Working Group][JSON-LD WG] is now developing JSON-LD 1.1. Library
28
50
updates to conform with newer specifications will happen as features stabilize
29
51
and development time and resources permit.
30
52
31
-
*[JSON-LD 1.1][JSON-LD WG 1.1], W3C Working Draft, 2018-12-14 or [newer][JSON-LD WG latest]
32
-
*[JSON-LD 1.1 Processing Algorithms and API][JSON-LD WG 1.1 API], W3C Working Draft, 2018-12-14 or [newer][JSON-LD WG API latest]
33
-
*[JSON-LD 1.1 Framing][JSON-LD WG 1.1 Framing], W3C Working Draft, 2018-12-14 or [newer][JSON-LD WG Framing latest]
53
+
*[JSON-LD 1.1][JSON-LD WG 1.1], W3C Working Draft, 2018-12-14 or
54
+
[newer][JSON-LD WG latest]
55
+
*[JSON-LD 1.1 Processing Algorithms and API][JSON-LD WG 1.1 API], W3C Working
56
+
Draft, 2018-12-14 or [newer][JSON-LD WG API latest]
57
+
*[JSON-LD 1.1 Framing][JSON-LD WG 1.1 Framing], W3C Working Draft, 2018-12-14
58
+
or [newer][JSON-LD WG Framing latest]
34
59
35
-
The [test runner][] is often updated to note or skip newer tests that are not
36
-
yet supported.
60
+
The [test runner][test runner] is often updated to note or skip newer tests that
61
+
are not yet supported.
37
62
38
63
## Supported frameworks
39
64
@@ -263,7 +288,10 @@ Output:
263
288
264
289
### Normalize
265
290
266
-
[Normalization](http://json-ld.github.io/normalization/spec/) (aka. canonicalization) converts the document into a graph of objects that is a canonical representation of the document that can be used for hashing, comparison, etc.
canonicalization) converts the document into a graph of objects that is a
293
+
canonical representation of the document that can be used for hashing,
294
+
comparison, etc.
267
295
268
296
```csharp
269
297
vardoc=JObject.Parse(_docJson);
@@ -559,7 +587,9 @@ public static void Run()
559
587
560
588
## Contributing
561
589
562
-
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc-faq] or contact [opencode@microsoft.com][ms-mail] with any additional questions or comments.
590
+
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
591
+
more information see the [Code of Conduct FAQ][coc-faq] or contact
592
+
[opencode@microsoft.com][ms-mail] with any additional questions or comments.
563
593
564
594
Pull requests for json-ld.net are welcome, to get started install the latest
565
595
tools for .NET Core:
@@ -582,7 +612,8 @@ On both Windows and all other supported operating systems, you can run
582
612
This project began life as a [Sharpen][sharpen]-based auto-port from
583
613
[jsonld-java][jsonld-java].
584
614
585
-
Documentation for this library is in part drawn from https://github.com/linked-data-dotnet/json-ld.net
615
+
Documentation for this library is in part drawn from
0 commit comments