Jonathan Donais & Joshua Chittle
What is DBpedia?
Motivation
Wikipedia
Semantic Web
How does it work?
The Extraction Framework
The Extraction Framework
Extractors
abstract | article categories | disambig- uation | category label | personen- namendatei | external links |
geo coordinates | grammatical gender | homepage | image | infobox | inter- language |
label | lexicali- zations | page ID | persondata | category label | redirects |
revision ID | SKOS categories | thematic concept | topic signatures | wiki page | mapings |
Extractors
Infobox Extraction
Raw Extraction
{{Infobox automobile
| name = Ford GT40
| manufacturer = [[Ford Advanced Vehicles]]
| production = 1964-1969
| engine = 4181cc (...)}}
dbr:Ford_GT40 [
dbp:name "Ford GT40"@en;
dbp:manufacturer dbr:Ford_Advanced_Vehicles;
dbp:engine 4181;
dbp:production 1964; (...)] .
Mapping Extraction
Mapping Example
{{TemplateMapping |mapToClass = Automobile |mappings = {{PropertyMapping | templateProperty = name | ontologyProperty = foaf:name }} {{PropertyMapping | templateProperty = manufacturer | ontologyProperty = manufacturer }} {{DateIntervalMapping | templateProperty = production | startDateOntologyProperty = productionStartDate | endDateOntologyProperty = productionEndDate }} | {{IntermediateNodeMapping | nodeClass = AutomobileEngine | correspondingProperty = engine | mappings = {{PropertyMapping | templateProperty = engine | ontologyProperty = displacement | unit = Volume }} {{PropertyMapping | templateProperty = engine | ontologyProperty = powerOutput | unit = Power }} }} (...) }} |
Mapping Vs. Raw
Mapped
dbr:Ford_GT40 [
rdf:type dbo:Automobile;
rdfs:label "Ford GT40"@en;
dbo:manufacturer
dbr:Ford_Advanced_Vehicles;
dbo:productionStartYear
"1964"ˆˆxsd:gYear;
dbo:productionEndYear "1969"ˆˆxsd:gYear;
dbo:engine [
rdf:type AutomobileEngine;
dbo:displacement "0.004181";
]
(...)
] .
Raw
dbr:Ford_GT40 [
dbp:name "Ford GT40"@en;
dbp:manufacturer dbr:Ford_Advanced_Vehicles;
dbp:engine 4181;
dbp:production 1964; (...)] .
NLP Extraction
Current Dataset
Current Dataset
Ontology
Ontology
Ontology Status
Community
Open Data Cloud
Live Sync
Live Sync
SPARQL
SPARQL Example
@prefix foaf: <http://xmlns.com/foaf/0.1/> .� @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .�� <http://example.org/alice#me> a foaf:Person .� <http://example.org/alice#me> foaf:name "Alice" .� <http://example.org/alice#me> foaf:mbox <mailto:alice@example.org> .� <http://example.org/alice#me> foaf:knows <http://example.org/bob#me> .� <http://example.org/bob#me> foaf:knows <http://example.org/alice#me> .� <http://example.org/bob#me> foaf:name "Bob" .� <http://example.org/alice#me> foaf:knows <http://example.org/charlie#me> .� <http://example.org/charlie#me> foaf:knows <http://example.org/alice#me> .� <http://example.org/charlie#me> foaf:name "Charlie" .� <http://example.org/alice#me> foaf:knows <http://example.org/snoopy> .� <http://example.org/snoopy> foaf:name "Snoopy"@en .
PREFIX foaf: <http://xmlns.com/foaf/0.1/> �SELECT ?name (COUNT(?friend) AS ?count) �WHERE { � ?person foaf:name ?name . � ?person foaf:knows ?friend . �} GROUP BY ?person ?name
?name | ?count |
“Alice” | 3 |
“Bob” | 1 |
“Charlie” | 1 |
SPARQL
SPARQL
{ ?x foaf:name ?name .� FILTER regex(?name, "Smith")
OPTIONAL { ?x prop:height ?h .
FILTER ( ?h < 160 ) }}
SPARQL
select ?abstract ?grossing
where
{
<http://dbpedia.org/resource/Star_Wars_Episode_V:_The_Empire_Strikes_Back> <http://dbpedia.org/ontology/abstract> ?abstract .
FILTER langMatches( lang(?abstract),"en") .
<http://dbpedia.org/resource/Star_Wars_Episode_V:_The_Empire_Strikes_Back> <http://dbpedia.org/property/gross> ?grossing
}
?abstract | ?grossing |
"Star Wars Episode V: The Empire Strikes Back (also known as The Empire Strikes Back) is a 1980 American epic space opera film…” | "5.38375067E8"^^<http://dbpedia.org/datatype/usDollar> |
Uses
Faceted Browsing
NLP Services
Other Applications
Questions
Sources