Starting another example authored by Daniel Hernandez's avatar Daniel Hernandez
# Introduction to JSON-LD
JSON-LD (JavaScript Object Notation for Linked Data) is a standard to serialize RDF graphs using JSON. This serialisation format is convenient to the project because JSON is widely used, and many tools and programming languages already include functions to create files in JSON format. In this guide, we show how to define JSON-LD documents.
JSON-LD (JavaScript Object Notation for Linked Data) is a standard to serialize RDF graphs using JSON. This serialisation format is convenient to the Circular Factory project because JSON is widely used, and many tools and programming languages already include functions to create files in JSON format. In this guide, we show how to define JSON-LD documents.
## Basic structure of JSON-LD
The next example describes how an RDF graph representing a property definition in an ontology can be serialised using JSON-LD. Specifically, it shows the `:contains` property which defines a relationship between Assemblies (domain) and Components (range).
**Example:** The following data define an assembly `:u1` that consists on two components, namely `:u2` and `:u3`.
```turtle
@prefix core: <https://sp1575.kit.edu/voc/core#> .
@prefix : <https://sp1575.kit.edu/data/example#> .
:u1 a core:Assembly ;
core:hasComponent :u2 , :u3 .
```
The same data can be codified in JSON-LD as follows:
```json
{
}
```
**Example**: Ontology **`:contains`** property:
```
......
......