-
Notifications
You must be signed in to change notification settings - Fork 0
/
ldf-tessel.rml.ttl
65 lines (51 loc) · 1.85 KB
/
ldf-tessel.rml.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@prefix ex: <http://www.example.com/> .
@prefix rr: <http://www.w3.org/ns/r2rml#>.
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix map: <http://www.example.com/pieter/> .
@prefix dbpedia-owl: <http://dbpedia.org/ontology/> .
@prefix datex: <http://vocab.datex.org/terms#> .
@prefix saref: <https://w3id.org/saref#> .
@prefix dicom: <http://purl.org/healthcarevocab/v1#> .
map:ClimateMapping
ex:useWithTesselModule "climate-si7020";
rml:logicalSource [
rml:source "***INPUT***";
rml:referenceFormulation ql:JSONPath;
rml:iterator "$" ];
rr:subjectMap [
rr:template "http://www.example.com/{device}";
rr:class saref:Sensor ];
rr:predicateObjectMap [
rr:predicate dbpedia-owl:temperature;
rr:objectMap [ rml:reference "temperature.value" ] ] ;
rr:predicateObjectMap [
rr:predicate datex:humidity;
rr:objectMap [ rml:reference "humidity.value" ] ] .
map:AmbientMapping
ex:useWithTesselModule "ambient";
rml:logicalSource [
rml:source "/home/pieter/Developer/tessel-local/ambient.json";
rml:referenceFormulation ql:JSONPath;
rml:iterator "$" ];
rr:subjectMap [
rr:template "http://www.example.com/{device}";
rr:class saref:Sensor ];
rr:predicateObjectMap [
rr:predicate dicom:ReflectedAmbientLight;
rr:objectMap [ rml:reference "light.value" ] ] ;
rr:predicateObjectMap [
rr:predicate ex:sound;
rr:objectMap [ rml:reference "sound.value" ] ] .
map:RFIDMapping
ex:useWithTesselModule "rfid-pn532";
rml:logicalSource [
rml:source "***INPUT***";
rml:referenceFormulation ql:JSONPath;
rml:iterator "$" ];
rr:subjectMap [
rr:template "http://www.example.com/{device}";
rr:class saref:Sensor ];
rr:predicateObjectMap [
rr:predicate ex:accessedBy;
rr:objectMap [ rml:reference "uid" ] ] .