-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConstructionQueries.SPARQL
90 lines (75 loc) · 1.99 KB
/
ConstructionQueries.SPARQL
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#ThreatenComms
CONSTRUCT{
?Persona privacy:threatens privacy:CommunicationPrivacy
}
WHERE{
?Device sense:deviceUser ?UID .
?Persona privacy:personaID ?UID .
?Device sense:hearsWho ?Persona .
?Device sense:hearsWhat ?Persona .
?Device sense:occursWhen ?Persona
}
#Threaten Association
CONSTRUCT{
?Persona privacy:threatens privacy:AssociatonPrivacy
}
WHERE{
?Device sense:deviceUser ?UID .
?Persona privacy:personaID ?UID .
?Device sense:locatesWhere ?Persona .
?Device sense:occursWhen ?Persona .
{?Device sense:hearsWho ?Persona}
UNION
{?Device sense:seesWho ?Persona}
}
# Threaten Behaviour and Action
CONSTRUCT{
?Persona privacy:threatens privacy:BehaviourAndActionPrivacy
}
WHERE{
?Device sense:deviceUser ?UID .
?Persona privacy:personaID ?UID .
?Device sense:seesWho ?Persona .
?Device sense:seesWhat ?Persona .
}
# Threaten Personal privacy
CONSTRUCT{
?Persona privacy:threatens privacy:PersonalPrivacy
}
WHERE{
?Device sense:deviceUser ?UID .
?Persona privacy:personaID ?UID .
?Device sense:seesWho ?Persona .
?Device sense:hearsWho ?Persona}
#Threaten Data and Image
#Skiiiiiiped
# Threaten Thoughts and Feelings
CONSTRUCT{
?Persona privacy:threatens privacy:ThoughtAndFeelingPrivacy
}
WHERE{
?Device sense:deviceUser ?UID .
?Persona privacy:personaID ?UID .
?Device sense:seesWhat ?Persona .
?Device sense:hearsWhat ?Persona .
{?Device sense:seesWho ?Persona}
UNION
{?Device sense:seesWhy ?Persona}
UNION
{?Device sense:hearsWho ?Persona}
UNION
{?Device sense:hearsWhy ?Persona}
}
# Threaten Location and space
CONSTRUCT{
?Persona privacy:threatens privacy:LocationAndSpacePrivacy
}
WHERE{
?Device sense:deviceUser ?UID .
?Persona privacy:personaID ?UID .
?Device sense:occursWhen ?Persona .
?Device sense:locatesWhere ?Persona .
{?Device sense:seesWho ?Persona}
UNION
{?Device sense:hearsWho ?Persona}
}