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

Support and behavior of MINUS in SparqlWrapper

I have a SPARQL query: SELECT DISTINCT ?chapter_name ?verse_index ?verseTextAr WHERE {{ ?word skos:prefLabel "جنة"@ar; dcterms:isPartOf ?verse. ?verse a qvoc:Verse; skos:prefLabel…
0
votes
1 answer

HTTP Error 414 with query to DBPedia endpoint using SPARQLwrapper

I made a function that executes a SPARQL query on the DBpedia SPARQL endpoint. This function takes an array of 15 elements, and each time it substitutes an element from the array into the query, then executes it to get result. The problem is that…
0
votes
1 answer

RDflib results printing error on windows7

I use SPARQLWrapper to create SPARQL queries, but I don't know how to debug the following error message: Warning (from warnings module): File "D:\Python27\lib\site-packages\sparqlwrapper-1.5.2-py2.7.egg\SPARQLWrapper\Wrapper.py", line…
-1
votes
1 answer

SPAQRL create exclusion query

I have this kind of structure Louvre
a.sarto
  • 73
  • 4
  • 12
-1
votes
1 answer

I want to pass pass a Python variable (filled by user input) into a Python string

This is my code below, I want to send python variable value in place of dbpedia:Imran_Khan. please provide me proper solution of this query Code: from SPARQLWrapper import SPARQLWrapper, JSON inputvar=input("enter name:") sparql =…
-1
votes
1 answer

How to extract all articles in subcategories recursively using dbPedia?

I need to extract information about articles (e.g., abstract, thumbnail) which located on the different nested subcategories of given category (e.g., History). How can I do that using SPARQL query? Or what is the optimal way to do that on python…
sermal
  • 93
  • 1
  • 6
-1
votes
1 answer

How to get the movies which are based on english novels using SPARQL in DBPEDIA

Using SPARQL, I am trying the get the list of all english novels and their properties. I would also like to find if a movie was taken based on that novel and get the movie name and its director, If a movie relationship exists. Code: SELECT ?movie…
VKB
  • 65
  • 1
  • 7
-2
votes
1 answer

SPARQL types convert uri to/from literal

I want to write a cross ontologies request, so it takes information from two ontologies per say onto1 and onto2: select x y z where { x onto1:hasY y y onto2:hasZ Z } the problem is that the y differs in term of uri, from onto1 you get this…
Oussama L.
  • 1,842
  • 6
  • 25
  • 31
1 2 3
10
11