Open annakrebs opened 10 years ago
Which dataset combinations did you try?
Are you certain that it comes from the SPARQL package for R? Because you also told me that 4 datasets worked at one point but not 5. Moreover, if the query itself is tested directly from inside R (i.e., skipping Shiny stuff), it worked.
I tried: worldbank:SE.XPD.PRIM.PC.ZS,worldbank:SE.XPD.SECO.PC.ZS,worldbank:SE.XPD.TERT.PC.ZS/AU,FR,IT,SE,CH,US/2009
No, I'm not certain. But if I debug like this:
q <- sparqlQueryStringGroupedBarPlot(dataset, refArea, refPeriod)
cat(paste0("q: ", q), file=stderr())
cat(paste0("sparqlEndpoints$stats : ", sparqlEndpoints$stats), file=stderr())
r <- SPARQL(sparqlEndpoints$stats, q)
cat(paste0("r: ", r), file=stderr())
cat(paste0("r$results: ", r$results), file=stderr())
I get a working query for "q" and for "sparqlEndpoints$stats" the value "http://localhost.stats.270a.info/sparql"
I don't get any values for "r" and "r$results", just the error message: Error : 1: Space required after the Public Identifier 2: SystemLiteral " or ' expected 3: SYSTEM or PUBLIC, the URI is missing 4: Opening and ending tag mismatch: hr line 9 and body 5: Opening and ending tag mismatch: body line 4 and html 6: Premature end of data in tag html line 2
If more than four datasets are selected, the following error message appears:
"1: Space required after the Public Identifier 2: SystemLiteral " or ' expected 3: SYSTEM or PUBLIC, the URI is missing 4: Opening and ending tag mismatch: hr line 9 and body 5: Opening and ending tag mismatch: body line 4 and html 6: Premature end of data in tag html line 2"
e.g.: worldbank:SE.XPD.PRIM.PC.ZS,worldbank:SE.XPD.SECO.PC.ZS,worldbank:SE.XPD.TERT.PC.ZS,transparency:CPI2009,worldbank:SL.TLF.TOTL.FE.IN/AU,FR,IT,CH,US/2009
Already debugged problem, but wasn't able to resolve it. Error occurs at SPARQL package in sparql.R -> r doesn't get any value. The query (q) contains the right query value.