270
Internet of Things (IoT)

< https://w3id.org/saref#:Energy>.
Often the same subject part in an RDF triple will be related with more than one predicate and object in RDF triple. Hence, when the predicate and the object vary for the same
subject of triples, a “;” can be used to repeat the subject. The following two examples are
logically equivalent:



.

.

.
When the object varies with the same subject and predicate, a “,” can be used to repeat the
subject part and predicate part of the triple. The following examples are logically equivalent ways of writing the unit measurement in two different languages.

“meter”@en, “метр”@ru.

“meter”@en.

“метр”@ru.
(b) N-Triples
N-Triples are a sequence of RDF terms representing the subject, predicate, and object. Each
RDF term in the sequence of N-Triples may be separated by space. This sequence ends by a
“.”, and it is optional to the last triple in the document. It is a subset of Turtle and Notation 3.

.

.
(c) RDF/JSON
RDF/JSON serialization format represents a set of RDF triples as a series of nested data
structures.
A single JSON object in an RDF/JSON document is called the root object. Subject of the
RDF triple will be key in the root object. Key may appear only once in the root object. Each
root object’s key value is a JSON object, whose keys are the URIs of the properties associated with each subject in a triple. These keys are called predicate keys. The predicate keys
Précédent

- 295/358

Suivant