I'm quite puzzled by the behavior of my endpoint, nor by the processing of the request. The basic RDFS namespace seems to clash with another definition while querying, resulting in an error when declaring the prefix and a normal output when omitting…
I have files stored in EFS. I want to upload the files to Neptune. I came across many references where files are uploaded to Neptune from S3. But in my use case i am having files in EFS. Is it possible to upload from efs to Neptune through…
I want to write a sparql query to return the WikiPageRedirects attribute for a given dbpedia resource.
For example: MongoDB has 3 as depicted here https://dbpedia.org/page/MongoDB
I write this query to get them:
PREFIX dbo:…
I am trying to run following query on dbpedia approximately 1500 times in a loop with different parameters but it gives me URLError: urlopen error [WinError 10060] error. Sometimes it gives me error after processing 15 records and sometimes it gives…
I've often seen a SPARQL query starting with this prefix:
PREFIX :
But what exactly does it mean to use only a colon ":" in a prefix? I usually know it as putting another abbreviation in front of it. Like for example…
From SPARQLwrapper I can successfully query and return results using SPARQL select. When I try to use the CONSTRUCT example from the website I get and error "ExpatError: no element found: line 1, column 0"
I've tested my code with a dbpedia…
How to get the results related to dates from Sparql queries in wikidata in JSON through Python codes in the same format they appear when I query directly through the web?
When I query in Wikidata Query Portal (Try it), some dates appear formatted…
I am using python to insert data into blazegraph. I want to specify the named graph to which the data gets inserted, but the code I am using is triggering the error:
SPARQLWrapper.SPARQLExceptions.QueryBadFormed: QueryBadFormed: a bad request has…
I could not find any help for my problem that I encounter when I am trying to get list of all basketball players from Wikidata. First I get the number of players (it is someting around 130k). Then I am creating query with specific offset and limit…
I'm trying to run a simple query:
"""
PREFIX rdfs:
SELECT ?label
WHERE { ?a rdfs:label ?label }
""")
Over my GraphDB repository, but from Python. After some searching I found that SPARQL wrapper…
I'm using SPARQLWrapper to query a local SPARQL endpoint (using apache-jena-fuseki), and some of my queries are CONSTRUCT queries.
The query will give me valid results on web-based SPARQL interface, e.g. yasgui.
When using SPARQLWrapper, the default…
I am iterating through a list users of approximately 1000 entries, like so:
def wikidata_user_lookup(id_str):
q = f'''
SELECT ?item ?itemLabel ?kind ?kindLabel
WHERE
{{
?item p:P2002 ?twitter .
…
I have a small graph in a Jena/Fuseki store that I query using rdflib/SPARQLWrapper via CONSTRUCT to build a smaller graph that contains all the info I need.
The resulting graph is a RDFLib Graph with 56 triples in total. Looking at the Jena logs…
I would like to write a Sparql query to obtain information about particular wikipedia articles. I'm a sparql newbie and could use some insights on using zlist as a parameter and passing it a list of articles, as .format would do in python.
SELECT…