I would like to know how to query Wikidata by using the alias ("also known as").
Right now I am trying
SELECT ?item
WHERE
{
?item rdfs:aliases ?alias.
FILTER(CONTAINS(?alias, "Angela Kasner"@en))
}
LIMIT 5
This is simply a query that works if I…
I am using SPARQLWrapper to send SPARQL queries to Wikidata.
At the moment I am trying to find all properties for an entity. Eg. with a simple tuple such as: wd:Q11663 ?a ?b. This in itself works, but I am trying to find human readable labels for…
Although I have gone through lot of examples on the web explaining the use of python SPARQLWrapper using SELECT statements for fetching data from sesame triple store, but not sure how can we INSERT/DELETE/UPDATE statements in sesame using it. Can…
I am using the following sparql query using SPARQLWrapper as follows.
from SPARQLWrapper import SPARQLWrapper, JSON
sparql = SPARQLWrapper("http://live.dbpedia.org/sparql")
sparql.setReturnFormat(JSON)
sparql.setQuery(" ASK {…
I've been trying to get SPARQLWrapper to insert a simple triple into GraphDB with no success. I have no trouble with select queries. Here's Python test code that fails:
db = sparqlw.SPARQLWrapper(endpoint)
query = '''
INSERT…
I have some entities in a specific language and I am trying to retrieve the possible IDs from Wikidata that match those names.
For example, I have some German name, let's say "Ministerium für Auswärtige Angelegenheiten" and I can get the top N…
Is there a limit on the size of the query you can use with with a SELECT query? I have a long SELECT query (posted below) that keeps throwing a QueryBadFormed error. I have validated the query on sparql.org and I have ran the query on the triple…
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 =…
I am using Virtuoso. It is installed on a server machine. I am trying to remove a large RDF graph from my Virtuoso. It contains 2,590,994,053 triples. I was trying to delete the graph with the following command.
SPARQL DROP SILENT GRAPH…
I am creating an RDF graph by using SPARQL CONSTRUCT statement. Following is my query:
prefix map: <#>
prefix db: <>
prefix vocab:
prefix rdf:
prefix rdfs:…
I am new to python as well as new to the world of querying the semantic web.
I am using SPARQLWrapper library to query dbpedia, I searched the library documentation but failed to find 'timeout' for a query fired to dbpedia from…
I am in a learning phase of SPARQL so excuse if the question sounds basic. I am exploring SPARQLWrapper to connect to a SPARQL endpoint to fetch some data. Below is the query.
sparql = SPARQLWrapper("http://patho.phenomebrowser.net/sparql/")…
I want to use python string variables in my SPARQL query without an IRI (for the sake of looping through a list of variables etc. I tried the code below but it doesn't seem to work.
Please ignore the prefixes etc. I just changed them for the sake of…