Commit 883b92d0 authored by Marco Cavalli's avatar Marco Cavalli
Browse files

Merge remote-tracking branch 'origin/html-specification-manual' into html-specification-manual

parents 9c3b232c e64e45db
Loading
Loading
Loading
Loading
Loading
+36 −1
Original line number Diff line number Diff line
Go to a certain [point](README.md#explanation-of-lua-scripts).

+--------------------------------------------+--------------------------------------------------+
| []{.media}                                 | ![](media/image11.png)                           |
|                                            |                                                  |
| **Figure 5: Standard RDF reification**     | **Figure 6: Singleton property reification**     |
+============================================+==================================================+
| **JSON-LD Format:**                        | **JSON-LD Format:**                              |
|                                            |                                                  |
| ``` json                                   | ``` json                                         |
| [                                          | [                                                |
| {"@id": "CameraA",                         | {"@id": "CameraA",                               |
| "monitors": {"@id": "StreetA"}}            | "monitors#id1":                                  |
| {"@id": "Statement_1",                     | {"@id": "StreetA}}                               |
| "subject":                                 | {"@id": "monitors#id1",                          |
| {"@id": "CameraA"},                        | "singletonPropertyOf":                           |
| "predicate":                               | {"@id": "monitors"},                             |
| {"@id": "monitors"},                       | "hasCoverage":  "90%" }                          |
| "object":                                  | ]                                                |
| {"@id": "StreetA"},                        | ```                                              |
| "hasCoverage": "70%" }                     |                                                  |
| ]                                          |                                                  |
| ```                                        |                                                  |
+--------------------------------------------+--------------------------------------------------+
| **SPARQL Query:**                          | **SPARQL Query:**                                |
|                                            |                                                  |
| ``` json                                   | ``` json                                         |
| SELECT ?R WHERE {                          | SELECT ?R WHERE {                                |
| ?st rdf:subject :CameraA.                  | :CameraA ?p :StreetA.                            |
| ?st rdf:predicate                          | ?p :singletonPropertyOf                          |
| :monitors.                                 | :monitors.                                       |
| ?st rdf:object StreetA.                    | ?p :hasCoverage ?R                               |
| ?st :hasCoverage ?R                        | }                                                |
| }                                          | ```                                              |
| ```                                        |                                                  |
+--------------------------------------------+--------------------------------------------------+
 No newline at end of file