-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomeActivity.graphqls
60 lines (44 loc) · 1.98 KB
/
homeActivity.graphqls
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
schema {
query: Query
}
type Query {
activities(offset: Int = 0, limit: Int = 0): [LocationBasedActivity]
}
type Functional_Activity @resource(class : "http://sensormeasurement.appspot.com/ont/home/homeActivity#Functional_Activity"){
id: String!
type: String!
label: String @attribute(uri : "http://www.w3.org/2000/01/rdf-schema#label")
alternativeType: String @attribute(uri : "http://www.agtinternational.com/ontologies/ngsi-ld#alternativeType")
}
type LocationBasedActivity @resource(class : "http://sensormeasurement.appspot.com/ont/home/homeActivity#Location_based_Actvity", subClassOf: ["Functional_Activity"]){
location: String! @attribute(uri : "http://sensormeasurement.appspot.com/ont/home/homeActivity#has_location")
}
type ObjectBasedActivity @resource(class : "http://sensormeasurement.appspot.com/ont/home/homeActivity#Object_based_Actvity", subClassOf: ["Functional_Activity"]){
hasUse: Object! @attribute(uri : "http://sensormeasurement.appspot.com/ont/home/homeActivit#has_use")
}
type Working_on_computer @resource(class : "http://sensormeasurement.appspot.com/ont/home/homeActivity#Working_on_computer", subClassOf: ["ObjectBasedActivity"]){
#hasUse: Computer!
}
type Reading_A_Book @resource(class : "http://sensormeasurement.appspot.com/ont/home/homeActivity#Reading_a_book", subClassOf: ["ObjectBasedActivity"]){
hasUse: Book!
}
type Watching_TV @resource(class : "http://sensormeasurement.appspot.com/ont/home/homeActivity#Watching_TV", subClassOf:["ObjectBasedActivity"]){
#hasUse: TV!
}
type Object @resource(class : "http://sensormeasurement.appspot.com/ont/home/homeActivity#Object"){
id: String!
type: String!
isAttached: Sensor
location: String
}
type Book @resource(class : "http://sensormeasurement.appspot.com/ont/home/homeActivity#Book", subClassOf: ["Object"]){
id: String
}
input ActivityInput {
id: String
location: String
}
input ApplianceInput {
id: String
location: String
}