-
Notifications
You must be signed in to change notification settings - Fork 2
/
Notes
186 lines (108 loc) · 2.95 KB
/
Notes
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
source: fr.dbpedia.org
reliability 0.3
freshness 0.2
source: www.ina.fr
reliability 0.7
freshness 0.4
source: www.okkam.org
reliability 0.5
freshness 0.5
CONSTRUCT {
?set ?prop ?val
}
WHERE {
select ?set ?prop ?val ?score {
?set ?prop ?val .
?val p:hasQualityScore ?score
{ select (max(?score_) as ?score) {
?val p:hasQualityScore ?score_
}
group by ?prop
}
}
}
///////////////
PREFIX p: <http://localhost/rdf/>
CONSTRUCT {
p:root p:hasSameAsSet ?saSet .
?saSet ?prop ?v .
?v p:hasQualityScore ?score
}
WHERE {
select ?saSet ?prop ?v ?score {
?saSet ?prop ?v .
?v p:hasQualityScore ?score
{ select ?prop (max(?score_) as ?score) {
?v ?p ?score_
}
group by ?prop
}
}
}
///
prefix p: <http://localhost/rdf/>
p:set p:hasTitle p:val1 .
p:set p:hasTitle p:val2 .
p:set p:hasAuthor p:val3 .
p:set p:hasAuthor p:val4 .
p:val1 p:hasValue "Harry Peter" .
p:val1 p:hasScore 0.30 .
p:val2 p:hasValue "Harry Potter" .
p:val2 p:hasScore 0.90 .
p:val3 p:hasValue "J. K. Rowling".
p:val3 p:hasScore 0.90 .
p:val4 p:hasValue "Joanne Rowling" .
p:val4 p:hasScore 0.50 .
prefix p: <http://localhost/rdf/>
p:set p:hasTitle p:val2 .
p:set p:hasAuthor p:val3 .
p:val2 p:hasValue "Harry Potter" .
p:val2 p:hasScore 0.90 .
p:val3 p:hasValue "J. K. Rowling" .
p:val3 p:hasScore 0.90 .
p:saSets p:hasSameAsSet ?saSet .
?saSet ?prop ?val .
?val p:hasQualityScore ?score
source: fr.dbpedia.org
reliability 0.5
freshness 0.4
source: www.ina.fr
reliability 0.2
freshness 0.7
CONSTRUCT { ?root ?p ?saSet .
?saSet ?prop ?val .
?val ?quality ?leaf }
WHERE { ?val path:hasQualityValue "excellent" }
SELECT ?workflow (AVG(?rating_score) AS ?avg_rating) (MAX(?rating_score) AS ?max_rating)
(MIN(?rating_score) AS ?min_rating)
WHERE {
?workflow rdf:type mecontrib:Workflow .
?rating rdf:type meannot:Rating ;
mebase:annotates ?workflow ;
meannot:rating-score ?rating_score
}
GROUP BY ?workflow
FILTER ( ?score >= 0.5 )
Describe ...
?saSet ?prop ?val2 .
?val2 path:hasQualityScore ?score2 .
FILTER ( ?score >= ?score2)
GROUP BY ?saSet
PREFIX path: <http://localhost/rdf/>
CONSTRUCT { path:saSets path:hasSameAsSet ?saSet .
?saSet ?prop ?val
}
WHERE { path:saSets path:hasSameAsSet ?saSet .
?saSet ?prop ?val .
?val path:hasQualityScore ?score
}
ORDER BY DESC (?score) LIMIT 10
PREFIX p: <http://localhost/rdf/>
CONSTRUCT { p:saSets p:hasSameAsSet ?saSet .
?saSet ?prop ?val .
}
WHERE { p:saSets p:hasSameAsSet ?saSet .
?saSet ?prop ?uri .
?uri p:isImplausible "false" .
?uri ?hasValue ?val
}