Night 7k to 12k Call Girls Service In Navi Mumbai 👉 BOOK NOW 9833363713 👈 ♀️...
Stad Gent & OSLO²
1. Stad Gent linkt Dataimage: beeldbank.stad.gent
Thimo Thoeye
Stad Gent
Dienst Data en Informatie
thimo.thoeye@stad.gent
OSLO²
31 maart 2017
VAC Lovelinggebouw
7. The Semantic Web
A new form of Web content that is
meaningful to computers will unleash
a revolution of new possibilities
by TIM BERNERS-LEE, JAMES
HENDLER and ORA LASSILA
Scientifc American, May 2001
http://www-sop.inria.fr/acacia/cours/essi2006/Scientific%20American_%20Feature%20Article_%20The%20Semantic%20Web_%20May%202001.pdf
8. Vendor lock-in
1. data eigenaarschap
2. structuur data begrijpen
3. interfaces definiëren
4. data hergebruiken
16. Organisaties
FOAF
Gentse Stadsdiensten
Maar ook andere organisaties
En andere overheden (zie GitHub)
Op de website via http://schema.org/sourceOrganization
Inzicht in organigram
vocabularies: https://github.com/ghentlivinglab/Vocabularies
21. Examples
All places of Ghent
SELECT ?Thing
WHERE { ?Thing a <http://schema.org/Place> }
result
22. Examples
All places of Ghent
SELECT ?Thing
WHERE { ?Thing a <http://schema.org/Place> } LIMIT 100
Using LIMIT
result
23. Examples
All districts of Ghent
SELECT ?Thing
WHERE {
?Thing a <http://schema.org/Place> .
?Thing <http://stad.gent/data/internal/resourceType> "wijken" .
} LIMIT 100
result
24. Examples
All districts of Ghent
PREFIX schema: <http://schema.org/>
PREFIX gent: <http://stad.gent/data/internal/>
SELECT ?Thing
WHERE {
?Thing a schema:Place .
?Thing gent:resourceType "wijken" .
} LIMIT 100
Using PREFIX
result
25. Examples
All districts of Ghent
PREFIX schema: <http://schema.org/>
PREFIX gent: <http://stad.gent/data/internal/>
SELECT DISTINCT ?Thing
WHERE {
?Thing a schema:Place .
?Thing gent:resourceType "wijken" .
} LIMIT 100
Using DISTINCT
result
26. Examples
All districts of Ghent
PREFIX schema: <http://schema.org/>
PREFIX gent: <http://stad.gent/data/internal/>
SELECT count(distinct ?Thing) as ?aantal
WHERE {
?Thing a schema:Place .
?Thing gent:resourceType "wijken" .
}
Using COUNT
result
27. Examples
All districts of Ghent
PREFIX schema: <http://schema.org/>
PREFIX gent: <http://stad.gent/data/internal/>
SELECT DISTINCT ?name
WHERE {
?Thing a schema:Place .
?Thing gent:resourceType "wijken" .
?Thing schema:name ?name .
} LIMIT 100
By name
result
28. Examples
Products for ecological
companies:
PREFIX schema: <http://schema.org/>
PREFIX dct:<http://purl.org/dc/terms/>
SELECT ?product ?titel
WHERE {
?product a <http://purl.org/vocab/cpsv#PublicService>.
?product schema:audience <http://stad.gent/data/ns/gpdc/doelgroepen/onderneming>.
?product dct:subject <http://stad.gent/data/ns/themas/natuur-milieu>.
?product dct:title ?titel
}
result
30. SKOS: Example
Theme list
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
SELECT ?thema
WHERE {
?thema skos:inScheme <http://stad.gent/data/ns/themas/>
}
result
31. Examples
Recent news items related to
museums SMAK en Huis van Alijn
PREFIX schema:<http://schema.org/>
SELECT ?article ?titel ?published
WHERE {
VALUES ?org {
<https://stad.gent/id/agents/96677ab3-f689-e111-a140-0050569826fc>
<https://stad.gent/id/agents/ad7ccf21-61d8-e411-87b3-005056983224>
}.
?article a schema:NewsArticle.
?article schema:datePublished ?published.
?article <http://schema.org/sourceOrganization> ?org.
?article schema:headline ?titel
} ORDER BY DESC(?published) LIMIT 5
result