Get Help

Feed "stackoverflow.com"

July 13, 2018

I'm working on a SPARQL query to be run against the public DBPedia endpoint http://dbpedia.org/sparql and although results are being returned, the query is taking a long time to execute. I am not an expert in SPARQL and was hoping someone could help me optimise the query if possible.

The query retrieves the following:...

July 13, 2018

I'm doing a small task on Sparql. I don't have a query but I just want to know is there a way to write a sparql query to 'Get the list of Dataset'? I'm using DBpedia Endpoint.

July 13, 2018

I'm doing small task on Sparql Query. I want to get the number of entities and number of instances. I have basic knowledge of Sparql and rdf. So I wrote sparql query to get the number of entities but i'm not 100% sure it's right. The endpoint i'm using is Dbpedia. Here's the query.

#Number of Entities SELECT (count(?entity) AS ?Entities) WHERE{ ?entity rdf:...

July 11, 2018

I am new to RDF and SPARQL and am struggling with what syntax is correct. When I look up examples on the web, it looks fairly easy, but when I try to apply it and do exercises, it simply doesn't work.

Currently I have to make a list with three columns, containing the European Union countries, population size (ranked from big to small), and the type of government the country has.

...

July 11, 2018

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 ?o} ------------------------------------------------------- OUTPUT: ( ?Triples = 1625382483 )

Just wondering are the query and the result right? Is this how you get...

July 05, 2018

I have a list of places in the UK. I want to get their latitude and longitude information from the http://dbpedia.org. I have just started to learn SPARQL, and I am not very familiar with the DBpedia. Currently, I am trying to retrieve at least one place, but so far no success. If I manage to get one place, then I will try to get all...

July 02, 2018

Any ideas on how to save the results of this SPARQL query into a TURTLE format?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dbo: <http://dbpedia.org/ontology/> select distinct ?city ?labelEn{ ?city a dbo:City. ?city rdfs:label ?labelEn. filter(lang(?labelEn) = 'en'). } LIMIT 10

June 29, 2018

I want to use freetext search against the dbpedia and I'm trying the query I found on the W3C website: https://www.w3.org/2009/Talks/0615-qbe/

If I try the query WITHOUT the bif: prefix by commenting it out I get the error shown below the query:

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>...

June 20, 2018

I'm a bit confused, why I cannot retrieve members of following Wikipedia Category:

http://dbpedia.org/page/List_of_members_of_the_17th_Bundestag

My query, which is easy and absolutely basic:

prefix dbc: <http://dbpedia.org/resource/Category:> prefix dcterms: <http://purl.org/dc/terms/> select ?member { ?member dcterms:subject dbc:List_of_members_of_the_17th_Bundestag...

June 14, 2018

I am trying to write a sparql query to get latitude and longtitude of a city based on its name, the query I found is this

PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> PREFIX dbo: <http://dbpedia.org/ontology/> SELECT * WHERE { ?s a dbo:Place . ?s geo:lat ?lat . ?s geo:long ?long . }

but it outputs all the places. I want to type in name of a city in a...