Get Help

Feed ""

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("") sparql.setQuery(""" PREFIX dbpedia0: <> PREFIX dbpedia2: <

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: <> SELECT ?song ?artist ?genre WHERE { ?song a dbpedia0...

May 21, 2018

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

prefix dbo: <> 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

SELECT DISTINCT ?resource ?label ?location WHERE { <> 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: <> PREFIX rdfs: <> 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: <> PREFIX dbo: <> 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 { <> skos:broader{0,4} ?value }

This does not work for Science( since...