Get Help

Feed "stackoverflow.com"

May 25, 2018

This is my first time playing with Sparql. I have created a query below but only getting the first 10000 results. How can I get all results from dbpedia?

from SPARQLWrapper import SPARQLWrapper, JSON sparql = SPARQLWrapper("http://dbpedia.org/sparql") sparql.setQuery(""" PREFIX dbpedia0: <http://dbpedia.org/ontology/> PREFIX dbpedia2: <http://dbpedia.org/property/...

May 25, 2018

I am just delving into DBpedia and want to get all the songs along with their genres. What is the best way to interact with DBpedia? Using API or downloading ttl files?

May 22, 2018

I have been playing with sparql queries and this is my first time. I am noticing that when I query although I am getting a link instead of a String. I am trying to get the songs, genres and artists of every single. How can I change the output to a String?

This is my query:

PREFIX dbpedia0: <http://dbpedia.org/ontology/> SELECT ?song ?artist ?genre WHERE { ?song a dbpedia0...

May 21, 2018

The following snippet retrieves all artists (names) from around the world using the dbpedia.org database.

prefix dbo: <http://dbpedia.org/ontology/> select distinct (str(?name_) as ?name) { ?artist a dbo:Artist ; rdfs:label ?name_ . }

What I would like to do next, is extend this snippet so that a) I filter by a certain city and b) present the...

May 21, 2018

When i run this query on dbpedia.org

SELECT DISTINCT ?resource ?label ?location WHERE { <http://dbpedia.org/resource/New_York_City> geo:geometry ?sourcegeo . ?resource geo:geometry ?location ; rdfs:label ?label . FILTER( bif:st_intersects( ?location, ?sourcegeo, 20 ) ) . FILTER( lang( ?label ) = "en" ) }

it is...

May 21, 2018

I am trying to figure out what is wrong with the following sparql spatial query?

PREFIX spatial: <http://jena.apache.org/spatial#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?placeName { ?place spatial:nearby (40.7128 74.0060 1000 'km') . ?place rdfs:label ?placeName }

Coordinates inside are coordinates of New York and it is supposed to find...

May 18, 2018

I am having a project, it is built on Angular and is actually a Search Engine. It currently uses DBpedia API to get results about any query being made from the Search bar. Earlier everything was working fine when we were on HTTP server as a response from DBpedia is an HTTP response, but now we have shifted to HTTPS and DBpedia do not offer its API to an HTTPS server. This creates a problem of...

May 17, 2018

I'm new to semantic web and trying to figure out a way to get some data about persons in the format as it is presented in attached image. If anybody could help i'll be thankful. Image

May 10, 2018

I want to get provenance data in DBpedia and here's the sample query:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dbo: <http://dbpedia.org/ontology/> SELECT DISTINCT ?novel WHERE { ?novel rdf:type dbo:Novel } LIMIT 1000 OFFSET 0

This query returns list of novels' resource. How can I get...

May 10, 2018

I need to get related topics for a wikipedia page say upto 5 levels. For a page Mathematics, I get this using:

select ?value where { <http://dbpedia.org/resource/Category:Mathematics> skos:broader{0,4} ?value }

This does not work for Science(http://dbpedia.org/page/Category:Science) since...