Questions tagged [dbpedia]

DBpedia is a community project focused on transforming Wikipedia content in structured data represented using RDF Language statements. In addition to Wikipedia content transformation, it also publishes said content into the World Wide Web, as Linked Open Data, by adhering Linked Data principles. If you are completely new to SPARQL, please consider to ask your question on opendata.stackexchange.com.

DBpedia is a community effort focused on transforming Wikipedia article content into structured data which is then published to the Web, as Linked Open Data, in conformance with Linked Data publishing principles. In addition, this project also includes a Query Services endpoint that allows both humans and/or machines to perform powerful ad-hoc queries using the W3C's SPARQL Query Language.

Finally, DBpedia also have a Live Edition that provides all the aforementioned functonality, but with the addition of being up to date with Wikipedia article changes, as they arise.

1334 questions
8
votes
2 answers

simple sparql query from dbpedia

I have a question about a SPARQL query that I'm trying to build from a tutorial. I want to generate triples that return a list of band members and the bands that they are in using a DBPedia endpoint. my query PREFIX dbo:…
Sara Lafia
  • 135
  • 1
  • 1
  • 8
8
votes
1 answer

Order SPARQL query results by length of a string?

I'm trying to autocomplete what the user writes in an input, with terms in DBpedia, similar to this jsFiddle example. Try writing dog in the input of that jsFiddle, and you will see the 'Dog' term in the suggestions. I have the following code, and…
gal007
  • 6,911
  • 8
  • 47
  • 70
8
votes
2 answers

is there any API to get image from wiki page

I want to get main image from wikipedia page, I have all wikipedia entity name from which I create wiki link and getting main image from that page. I tried with https://github.com/richardasaurus/wiki-api, https://github.com/goldsmith/Wikipedia But…
nlper
  • 2,297
  • 7
  • 27
  • 37
8
votes
5 answers

How to run a sparQL query?

I discovered the SparQL syntax at the Mozilla Festival 12. The demonstrator was using a proprietary web-based interface and I was wondering if there is open services or maybe (cross-platform) GUI application ? In order to : write your query…
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
8
votes
2 answers

Union of two selects in a SPARQL query

I'd like to do something like { SELECT ?page, "A" AS ?type WHERE { ?s rdfs:label "Microsoft"@en; foaf:page ?page } } UNION { SELECT ?page, "B" AS ?type WHERE { ?s rdfs:label "Apple"@en; …
Timm
  • 12,553
  • 4
  • 31
  • 43
7
votes
1 answer

How do I consume a sparql endpoint - such as DBPedia in an iphone app

I am looking for tutorials on how to consume and parse data from a sparql endpoint such as DBPedia. I am new to semantic web and rdf and sparql. Would I just treat the response as XML and use one of the many third party xml parsers to read rdf…
Antonio de Perio
  • 343
  • 5
  • 13
7
votes
7 answers

How to select random DBPedia nodes from SPARQL?

How can I select random sample from DBpedia using the sparql endpoint? This query SELECT ?s WHERE { ?s ?p ?o . FILTER ( 1 > bif:rnd (10, ?s, ?p, ?o) ) } LIMIT 10 (found here) seems to work ok on most SPARQL endpoints, but on…
Mulone
  • 3,603
  • 9
  • 47
  • 69
7
votes
4 answers

Getting DBPedia Infobox categories

I'm currently looking for a way to query DBPedia's Infobox Onyology database via the SPARQL endpoint to get a list of the classes, the subclasses of a selected class, and the properties of a given class. As far as I've been able to find, you either…
Paul
  • 10,381
  • 13
  • 48
  • 86
7
votes
1 answer

Sparql- how to get number of triples?

I'm doing a small exercise on sparql. Using Dbpedia Endpoint, I need to count number of triples. This is my query // Get the number of triples // SELECT (COUNT(*) as ?Triples) WHERE { ?s ?p…
Aziz Mumtaz
  • 95
  • 1
  • 6
7
votes
2 answers

how to remove duplicates in sparql query

I wrote this query and return list of couples and particular condition. ( in http://live.dbpedia.org/sparql) SELECT DISTINCT ?actor ?person2 ?cnt WHERE { { select DISTINCT ?actor ?person2 (count (?film) as ?cnt) where { ?film …
NASRIN
  • 475
  • 7
  • 22
7
votes
1 answer

SPARQL queries with relational operator

I want to use relational AND/OR operator onto SPARQL queries. Here query : SELECT DISTINCT ?dbpedia_link str(?name) as ?label str(?label1) as ?label1 ?freebase_link WHERE { ?dbpedia_link rdfs:label ?label1 . ?dbpedia_link…
iNikkz
  • 3,729
  • 5
  • 29
  • 59
7
votes
1 answer

Named entity recognition using freebase

I understand DBPedia spotlight does Named Entity recognition on a given document. To do that it uses the downloaded DBPedia files that are stored in the file system.Refer the…
Vinodh
  • 896
  • 1
  • 15
  • 28
7
votes
1 answer

path between two resources

Is it possible to count the number of the edges that connect two instance with a SPARQL query? I want to find a path.
user2837896
  • 271
  • 3
  • 11
7
votes
1 answer

How to query dbpedia resource ontology 'wikiPageExternalLink'

Using sparql\sparqlwrapper in python, how will I be able to query for the values of a certain dbpedia resource? For example, how will I be able to get the dbpedia-owl:wikiPageExternalLink values of http://dbpedia.org/page/Asturias? Here's a…
jaysonpryde
  • 2,733
  • 11
  • 44
  • 61
7
votes
4 answers

using dbpedia spotlight in java or scala

Does anyone know where to find a little how to on using dbpedia spotlight in java or scala? Or could anyone explain how it's done? I can't find any information on this...
fliege
  • 71
  • 1
  • 2
1 2
3
88 89