79547955

Date: 2025-04-01 07:25:09
Score: 1.5
Natty:
Report link

I must have made an error in my variables (?locationOfDiscovery / ?country) the following version of this code worked fine :

q_list <- c(df3$QID_items) 

qid_list <- c(paste0("wd:",q_list, collapse = " ")) 


query_sparql <- paste0("SELECT 
    ?item ?locationOfDiscovery 
WHERE {  
    VALUES ?item {", qid_list,"}
      OPTIONAL { ?item wdt:P189 ?locationOfDiscovery. }
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. }
}") 
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: dbelveze