-
Notifications
You must be signed in to change notification settings - Fork 5
/
abox.ttl
60 lines (57 loc) · 2.59 KB
/
abox.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
@prefix ex: <https://sandbox-graphdb.interactions.ics.unisg.ch/was-exercise-3-danai#> .
@prefix was: <https://was-course.interactions.ics.unisg.ch/farm-ontology#> .
@prefix hmas: <https://purl.org/hmas/> .
@prefix td: <https://www.w3.org/2019/wot/td#> .
@prefix wotsec: <https://www.w3.org/2019/wot/security#> .
@prefix htv: <http://www.w3.org/2011/http#> .
@prefix hctl: <https://www.w3.org/2019/wot/hypermedia#> .
@prefix js: <https://www.w3.org/2019/wot/json-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:farm-17c04810-567a-4236-b310-611bb4fd2a8c a was:Farm;
hmas:contains ex:tractor-34541705-7798-4a16-b76b-5fec2861e077,
ex:tractor-ae039570-396e-424f-9008-2142c3201b73 .
ex:tractor-34541705-7798-4a16-b76b-5fec2861e077 a td:Thing, was:Tractor;
hmas:hasProfile <https://raw.githubusercontent.com/Interactions-HSG/example-tds/was/tds/tractor1.ttl> ;
td:title "A tractor that can be used for monitoring the moisture level of soil in a farm.";
td:hasSecurityConfiguration [ a wotsec:NoSecurityScheme];
td:hasBase <http://localhost:1080/api/tractors/1/>;
td:hasActionAffordance [ a td:ActionAffordance, was:ReadSoilMoistureAffordance;
td:name "Read Moisture Level";
td:hasForm [
htv:methodName "GET";
hctl:hasTarget <http://localhost:1080/api/tractors/1/moisture>;
hctl:forContentType "application/json";
hctl:hasOperationType td:invokeAction
];
td:hasInputSchema [ a js:ArraySchema, was:Coordinates;
js:minItems "4"^^xsd:int;
js:maxItems "4"^^xsd:int;
js:items [ a js:IntegerSchema;
js:minimum "0"^^xsd:int;
js:maximum "2"^^xsd:int
]
];
td:hasOutputSchema [ a js:IntegerSchema, was:SoilMoisture ]
] .
ex:tractor-ae039570-396e-424f-9008-2142c3201b73 a td:Thing, was:Tractor;
hmas:hasProfile <https://raw.githubusercontent.com/Interactions-HSG/example-tds/was/tds/tractor2.ttl> ;
td:title "A tractor that can be used for irrigating sections in a farm.";
td:hasSecurityConfiguration [ a wotsec:NoSecurityScheme ];
td:hasBase <http://localhost:1080/api/tractors/2/>;
td:hasActionAffordance [ a td:ActionAffordance, was:IrrigateAffordance;
td:name "Irrigate";
td:hasForm [
htv:methodName "PUT";
hctl:hasTarget <http://localhost:1080/api/tractors/2/sprayer>;
hctl:forContentType "application/json";
hctl:hasOperationType td:invokeAction
];
td:hasInputSchema [ a js:ArraySchema, was:Coordinates;
js:minItems "4"^^xsd:int;
js:maxItems "4"^^xsd:int;
js:items [ a js:IntegerSchema;
js:minimum "0"^^xsd:int;
js:maximum "2"^^xsd:int
]
]
] .