So I recently started using a project that had this SPARQL query. But it wasn't working anymore, can someone please tell me what changes are required. I am using SPARQLWrapper with this endpoint This is the query:
SELECT ?label ?property ?thumbnail WHERE
{
?entity rdfs:label ?label .
?entity wdt:""" + property_code[0] + """ ?property_id .
?property_id rdfs:label ?property .
OPTIONAL { ?property_id wdt:P18 ?thumbnail .}
FILTER (STR(?label) = '""" + named_entity[0] + """') .
FILTER (LANG(?property) = "en")
}
The query gets data according to the property and subject from wikidata. The named_entity[0] is a proper noun