Questions tagged [sparqlwrapper]

SPARQL Wrapper is a SPARQL Endpoint interface to Python

SPARQLWrapper is a SPARQL Endpoint interface to Python

158 questions
0
votes
1 answer

Comma error while searching on SPARQL, DBpedia

While performing the query giving error, syntax error at ',' before '_New_South_Wales'. PREFIX dbo: PREFIX dbp: PREFIX dbr: PREFIX grs:…
Billi
  • 336
  • 1
  • 5
0
votes
0 answers

Python 3.6: [SSL: CERTIFICATE_VERIFY_FAILED] using SPARQL endpoint. Didn't happen before

I have a script that gets results from a SPARQL, using the library SPARQLWrapper. It's been working perfectly well for the last 3 months, and now that I tried to run it again after a month break, it doesn't seem to work. I get the following…
0
votes
1 answer

Get movie(s) based on book(s) from DBpedia

I am new to SPARQL and trying to fetch a movie adapted from specific book from dbpedia. This is what I have so far: PREFIX onto: SELECT * WHERE { a ?type. ?type…
Hala Ba
  • 249
  • 3
  • 21
0
votes
1 answer

How to iterate and write a list as the CSV header?

I have a use case, where I pull the data from a SPARQL endpoint as follows: SPARQL = SPARQLWrapper(endpointURL) SPARQL.setQuery(queryString) SPARQL.setReturnFormat(JSON) results = SPARQL.query().convert() The 'results' variable holds the data…
Martin
  • 117
  • 6
0
votes
0 answers

Get information using python, SPARQL ,DBpedia and Wikidata

I have a CSV file with a list of names in English and Hebrew, I need to get some information on. The data I need is "name-Hebrew name-English DBpedia-URL date birth place birth dateDeath placeDeath entry_where_found" for each person, the…
Daniel
  • 21
  • 1
  • 8
0
votes
1 answer

SPARQL query to search by name for a person

I need some help in a query. I have a list of names and I want to write a program in python that will send a query for each person on the list and it will look for his information in dbpedia and in wikidata and will return some of it. Can someone…
Daniel
  • 21
  • 1
  • 8
0
votes
1 answer

Finding Date Range from String Values in SPARQL

I have triples that organized like following. "201701" "201703" "201705" "201706" "201606" Here object part of the…
Beautiful Mind
  • 5,828
  • 4
  • 23
  • 42
0
votes
0 answers

Python: why do I get certifcate error running a Sparql query?

I have to run the following query query = """ PREFIX schema: PREFIX gn: select ?Municipality ?Name ?Population where { ?Municipality a gn:A.ADM3 . ?Municipality schema:name ?Name…
emax
  • 6,965
  • 19
  • 74
  • 141
0
votes
1 answer

Jena/Fuseki: SPARQL DELETE operation not effective

i am developing a server that uses a Jena triple store. The server is developed in Python, and I am using the SPARQLWrapper library to handle the different operations to be performed. I had no problems in querying the store (SELECT operation) and to…
0
votes
0 answers

Load OpenStreetMap data into Virtuoso

How can I load data from OpenStreetMap of a particulat area (e.g. Berlin) into the (open source) Virtuoso triple store which runs on my local computer (Ubuntu)? I tried to download the particular OSM file and access it with sparqlify in order to…
Mr M
  • 69
  • 8
0
votes
1 answer

Star subgraph pattern finding in SPARQL

I have a collection of RDF triples like following. id#7289587 ex:getInfectedBy id#7748320 id#7694711 ex:getInfectedBy id#7748320 id#7748322 ex:getInfectedBy id#7748320 id#7748887 ex:getInfectedBy id#7748320 id#7746679 …
Beautiful Mind
  • 5,828
  • 4
  • 23
  • 42
0
votes
1 answer

Federated queries on dbpedia and linkedmdb

I am writing a federated query to get the books based on films in dbpedia and in turn using the film name from dbpedia to retrieve the corresponding imdblink link for the same. I am getting an empty set when I add the service of linkedmdb. Here is…
VKB
  • 65
  • 1
  • 7
0
votes
2 answers

Parse error while using filter in linkedmdb SPARQL

I am trying to query 2 specific movies and their imdb pages with linkedmdb and it throws a parse error. I get a list of all movies when I remove the below line. How do I get links of a specific set. FILTER (str(?title) IN ("The Magician","Royal…
VKB
  • 65
  • 1
  • 7
0
votes
1 answer

How to query DBPEDIA SPARQL to include the desired values while using LIMIT

I am trying to populate my local ontology with 10 random books. I would like to include 2 known books in the list for testing purpose.i.e out of the 10 I want to specify the names of 2 books and the remaining 8 can be random. I do not know how to…
VKB
  • 65
  • 1
  • 7
0
votes
2 answers

How to query for publication date of books using SPARQL in DBPEDIA

I am trying to retrieve the publication date and the no.of pages for books in DBpedia. I tried the following query and it gives empty results. I see that these are properties under book(http://mappings.dbpedia.org/server/ontology/classes/Book) but…
VKB
  • 65
  • 1
  • 7