Linking with OpenRefine
Transcript of Linking with OpenRefine
LD4SC Summer School7th - 12th June, Cercedilla, Spain
LD4SC Summer School7th - 12th June, Cercedilla, Spain
1st Summer School on Smart Cities and Linked Open Data (LD4SC-15)
Leeds City Council - Linking
Raúl García-Castro, Filip Radulovic
LD4SC Summer School7th - 12th June, Cercedilla, Spain
Data linking
• Classes with linkable instances: City, District, CivicStructure
• Data sets to link to: DBpedia
• Tool to use: OpenRefine
3
LD4SC Summer School7th - 12th June, Cercedilla, Spain
Linking goal
4
schema:Place
rdf:type
lcc:Leeds
schema:Placedbpedia-owl:Place
owl:sameAsdbpedia:Leeds
rdf:type
rdfs:label“Leeds”
dbpedia-owl:areaTotal
“551667467.501568”^^xsd:double
dbpedia-owl:country
dbpedia:United_Kingdom
dbpedia-owl:abstract
“Leeds es una ciudad…”@es
dbpprop:timezone
dbpedia:Greenwich_Mean_Time
owl:sameAs
http://ja.dbpedia.org/resource/リーズ
geo:lat
“53.799721”^^xsd:float
LD4SC Summer School7th - 12th June, Cercedilla, Spain
Reconciling values
6
Reconcile à Start reconciling...
LD4SC Summer School7th - 12th June, Cercedilla, Spain
Seeing reconciliation result
8
Edit column Add column based on this column...
LD4SC Summer School7th - 12th June, Cercedilla, Spain
Linking individuals
9
rdf:type
schema:Place
schema:CivicStructure
dbpedia-owl:Place
lcc:LeisureCentreWetJohnCharlesCentreforSport
owl:sameAs
dbpedia:John_Charles_Centre_for_Sport
rdf:type
schema:Place
schema:containedIn
rdf:typelcc:Leed
s
schema:Place
dbpedia-owl:Place
owl:sameAsdbpedia:Leeds
rdf:type
schema:containedIn
LD4SC Summer School7th - 12th June, Cercedilla, Spain
Reconciling location names
10
Reconcile Start reconciling...
LD4SC Summer School7th - 12th June, Cercedilla, Spain
Plenty of potential matches
11
1. Facet your results
2. Review matches
3. Find new matches
LD4SC Summer School7th - 12th June, Cercedilla, Spain
Output RDF
12
@prefix schema: <http://schema.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix lcc: <http://smartcity.linkeddata.es/lcc/ontology/EnergyConsumption#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<http://smartcity.linkeddata.es/lcc/resource/CivicStructure/CouncilOfficesBelgraveHouse>
a schema:CivicStructure ;
rdfs:label "Belgrave House" .
<http://smartcity.linkeddata.es/lcc/resource/Place/Leeds> a schema:Place ;
rdfs:label "Leeds" ;
owl:sameAs <http://dbpedia.org/resource/Leeds> .
<http://smartcity.linkeddata.es/lcc/resource/CivicStructure/LeisureCentreWetJohnCharlesCentreforSport>
a schema:CivicStructure ;
rdfs:label "John Charles Centre for Sport" ;
owl:sameAs <http://dbpedia.org/resource/John_Charles_Centre_for_Sport> .
<http://smartcity.linkeddata.es/lcc/resource/CivicStructure/CommunityCentreTunstallRoad>
a schema:CivicStructure ;
rdfs:label "Tunstall Road" .
...