Beruflich Dokumente
Kultur Dokumente
rdf
Query 1 : A FOAF query that finds all people with a name and an IRC nick
Data: http://www.dajobe.org/foaf.rdf
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?nick, ?name
WHERE { ?x rdf:type foaf:Person . ?x foaf:nick ?nick . ?x foaf:name ?name }
Results
ount
nick
name
emiller
Eric Miller
em
Eric Miller
jang
Jan Grant
DanC
Dan Connolly
shellac
Damian Steer
zool
Jo Walsh
mortenf
Morten Frederiksen
ndw
Norm Walsh
sbp
Sean B. Palmer
10
libby
Libby Miller
11
danbri
Dan Brickley
1. A FOAF query that finds all people with a name and an IRC nick
Data: http://www.dajobe.org/foaf.rdf
Query:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?nick, ?name
WHERE { ?x rdf:type foaf:Person . ?x foaf:nick ?nick . ?x foaf:name ?name }
ount
nick
name
emiller
Eric Miller
em
Eric Miller
jang
Jan Grant
DanC
Dan Connolly
shellac
Damian Steer
zool
Jo Walsh
mortenf
Morten Frederiksen
ndw
Norm Walsh
sbp
Sean B. Palmer
10
libby
Libby Miller
11
danbri
Dan Brickley
2. An RSS 1.0 query that finds all the items in the feed
Data: http://www.w3.org/2000/08/w3c-synd/home.rss
Query:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX doap: <http://usefulinc.com/ns/doap#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT $description $maintainerName
WHERE {
$project rdf:type doap:Project .
$project doap:description $description .
$project doap:maintainer $m .
$m foaf:name $maintainerName
}
Results
Variable bindings result format
Count
description
maintainerName
Results
Variable bindings result format
Count
description
maintainerName
Results
Variable bindings result format
Count
name
nick
Phil McCarthy
Eric Miller
emiller
Eric Miller
em
Jan Grant
jang
Dan Connolly
DanC
Damian Steer
shellac
Jo Walsh
zool
Morten Frederiksen
mortenf
Norm Walsh
ndw
10
Sean B. Palmer
sbp
11
Jim Hendler
12
Bijan Parsia
13
Matt Biddulph
14
Libby Miller
libby
15
Dan Brickley
danbri
16
Tim Berners-Lee
17
Edd Dumbill
18
Dave Beckett
Found 18 results
5. What are the Noble Gases?
Data: http://www.daml.org/2003/01/periodictable/PeriodicTable.owl
Query:
PREFIX table: <http://www.daml.org/2003/01/periodictable/PeriodicTable#>
PREFIX xsd:
<http://www.w3.org/2001/XMLSchema#>
SELECT ?name ?symbol ?weight ?number
WHERE {
?element table:group ?group .
?group table:name "Noble gas"^^xsd:string .
?element table:name ?name .
?element table:symbol ?symbol .
?element table:atomicWeight ?weight .
?element table:atomicNumber ?number
}
ORDER BY ASC(?name)
Results
Variable bindings result format
C
ou
nt
name
symbol
weight
number
ema#string>
ema#string>
a#float>
ma#integer>
Results
item
title
date
The
Fixing2016-08https://www.tbray.org/ongoing/When/201x/2016/08/2
JSON
26T08:27:
2/Fixing-JSON-Redux
Conversat 04-07:00
ion
https://www.tbray.org/ongoing/When/201x/2016/08/2 Fixing
0/Fixing-JSON
JSON
Things
2016-08https://www.tbray.org/ongoing/When/201x/2016/08/1
About No 14T21:26:
3/Ten-Zen-No-Mans-Sky-Things
Mans Sky 42-07:00
Light
2016-08https://www.tbray.org/ongoing/When/201x/2016/08/1
Transmiss 13T12:51:
3/Light-Transmission
ion
53-07:00
Home
2016-07https://www.tbray.org/ongoing/When/201x/2016/07/2
Computer 21T22:36:
1/Home-Computer
?
30-07:00
2016-0820T11:04:
38-07:00
Susan
https://www.tbray.org/ongoing/When/201x/2016/07/1 and her
4/Melissa-and-SQL
SQL
Problem
2016-07https://www.tbray.org/ongoing/When/201x/2016/07/1 Corporate
13T23:38:
3/Easy-Pride
Pride
31-07:00
2016-07https://www.tbray.org/ongoing/When/201x/2016/07/1 Vegetable
10T21:48:
0/Farmers-Market
s!
11-07:00
10
2016-0716T11:34:
05-07:00
Found 10 results
7. Find the most recent 10 news items about Redland from multiple RSS 1.0 feeds
Data: http://librdf.org/NEWS.rdf http://librdf.org/raptor/NEWS.rdf
http://librdf.org/rasqal/NEWS.rdf http://librdf.org/bindings/NEWS.rdf
Query:
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX rss: <http://purl.org/rss/1.0/>
SELECT ?item ?title ?date
WHERE {
?item a rss:item ;
rss:title ?title ;
dc:date ?date
}
ORDER BY DESC(?date)
LIMIT 10