-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbundles.sparql
52 lines (44 loc) · 1.39 KB
/
bundles.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
http://role-widgetstore.eu/simplerdf/sparql
# get list of bundles
prefix dc: <http://purl.org/dc/terms/>
prefix role: <http://purl.org/role/terms/>
prefix foaf: <http://xmlns.com/foaf/0.1/>
select *
WHERE {
?bundle a role:bundle .
?bundle dc:title ?title .
OPTIONAL {?bundle dc:description ?description .}
OPTIONAL {?bundle foaf:depicts ?thumbnail .}
}
# get list of screenshots
prefix role: <http://purl.org/role/terms/>
prefix foaf: <http://xmlns.com/foaf/0.1/>
select *
WHERE {
?bundle a role:bundle .
?bundle foaf:img ?screenshot .
}
# get only sources of widgets in a bundle
prefix dcterms: <http://purl.org/dc/terms/>
prefix role: <http://purl.org/role/terms/>
SELECT ?bundle ?src
WHERE {
?bundle rdf:type role:bundle .
?bundle role:toolConfiguration ?configuration .
?configuration role:tool ?tool .
?tool dcterms:source ?src .
}
# get widgets in a bundle
prefix dcterms: <http://purl.org/dc/terms/>
prefix role: <http://purl.org/role/terms/>
prefix foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?bundle ?tool ?toolTitle ?toolConfigurationDescription ?src
WHERE {
?bundle rdf:type role:bundle.
?bundle role:toolConfiguration ?configuration.
?configuration role:tool ?tool.
?configuration dcterms:description ?toolConfigurationDescription.
?tool dcterms:title ?toolTitle.
?tool dcterms:source ?src.
FILTER(?bundle = <http://role-widgetstore.eu/bundle/learn-foreign-language-reading-text>)
}