- Oct 2023
-
-
Federated SPARQL Query, incorporating data from both DBpedia & Wikidata
```sparql PREFIX wd: http://www.wikidata.org/entity/ PREFIX wdt: http://www.wikidata.org/prop/direct/ PREFIX wikibase: http://wikiba.se/ontology# PREFIX p: http://www.wikidata.org/prop/ PREFIX ps: http://www.wikidata.org/prop/statement/ PREFIX pq: http://www.wikidata.org/prop/qualifier/ PREFIX bd: http://www.bigdata.com/rdf# PREFIX owl: http://www.w3.org/2002/07/owl# PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema# PREFIX foaf: http://xmlns.com/foaf/0.1/ PREFIX dct: http://purl.org/dc/terms/SELECT DISTINCT ?dbpediaID AS ?href xsd:string(?label) AS ?name ?description ?subjectText ?item AS ?wikidataID ?dbpediaID ?image ?picture WHERE { SERVICE http://query.wikidata.org/sparql { SELECT DISTINCT ?item ?itemLabel ?numero ( SAMPLE(?pic) AS ?picture ) WHERE { ?item p:P528 ?catalogStatement . ?catalogStatement ps:P528 ?numero . ?catalogStatement pq:P972 wd:Q14530 . OPTIONAL { ?item wdt:P18 ?pic } . SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } GROUP BY ?item ?itemLabel ?numero ORDER BY ?numero }
SERVICE <http://dbpedia.org/sparql> { SELECT ?item ?dbpediaID ?label ?image ?description ?subjectText FROM <http://dbpedia.org> WHERE { ?dbpediaID owl:sameAs ?item ; rdfs:label ?label ; foaf:depiction ?image ; rdfs:comment ?description ; dct:subject [ rdfs:label ?subjectText ] . FILTER ( LANG(?label) = "en" ) FILTER ( LANG(?description) = "en" ) } }
} ```
-
-
stackoverflow.com stackoverflow.com
-
meta.wikimedia.org meta.wikimedia.org
- Jun 2023
-
graphdb.ontotext.com graphdb.ontotext.com
-
linkedwiki.com linkedwiki.com
-
```sparql PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema# PREFIX owl: http://www.w3.org/2002/07/owl#
SELECT ?superclass ?subclass FROM http://dbpedia.org WHERE {?superclass a owl:Class ; rdfs:subClassOf+ ?subclass }
LIMIT 100 ```
-
-
stackoverflow.com stackoverflow.com
-
stackoverflow.com stackoverflow.com
-
jakobib.github.io jakobib.github.io
-
link.springer.com link.springer.com
- May 2023
-
graphdb.ontotext.com graphdb.ontotext.com
-
For example, when merging four different datasets, you can use the following query on DBpedia to select everything about Sofia:
sparql SELECT * { { <http://dbpedia.org/resource/Sofia> ?p ?o . } UNION { <http://data.nytimes.com/nytimes:N82091399958465550531> ?p ?o . } UNION { <http://sws.geonames.org/727011/> ?p ?o . } UNION { <http://rdf.freebase.com/ns/m/0ftjx> ?p ?o . } }
sparql SELECT * { ?s ?p ?o FILTER (?s IN ( <http://dbpedia.org/resource/Sofia>, <http://data.nytimes.com/nytimes:N82091399958465550531>, <http://sws.geonames.org/727011/>, <http://rdf.freebase.com/ns/m/0ftjx>)) }
-
-
mementoweb.org mementoweb.org
Tags
Annotators
URL
-
-
dbpedia.org dbpedia.org
Tags
Annotators
URL
-
-
dbpedia.org dbpedia.org
Tags
Annotators
URL
-
-
www.sciencedirect.com www.sciencedirect.com
-
-
sparql SELECT ?type (COUNT(DISTINCT ?oeuvre) AS ?c) WHERE { VALUES ?type { <http://schema.org/CreativeWork> <http://schema.org/Painting> <http://dbpedia.org/ontology/Artwork> <http://dbpedia.org/ontology/Painting> } ?oeuvre a ?type . } GROUP BY ?type ORDER BY desc(?c)
-
-
databus.dbpedia.org databus.dbpedia.org
- Aug 2022
-
pats.cs.cf.ac.uk pats.cs.cf.ac.uk
Tags
Annotators
URL
-
-
pats.cs.cf.ac.uk pats.cs.cf.ac.uk
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
- May 2022
-
mappings.dbpedia.org mappings.dbpedia.org
Tags
Annotators
URL
-
-
mappings.dbpedia.org mappings.dbpedia.orgOntology1
Tags
Annotators
URL
-
- Jun 2019
-
Local file Local file
- Feb 2017
-
wiki.dbpedia.org wiki.dbpedia.orgDBpedia1
Tags
Annotators
URL
-
-
demo.dbpedia-spotlight.org demo.dbpedia-spotlight.org
- Feb 2016
-
blog.databaseanimals.com blog.databaseanimals.com
-
Wikidata, in some sense, turns DBpedia around, in that Wikidata is intended to be a data source to populate Wikipedia infoboxes than the other way around.
-