Closed RickMoynihan closed 3 years ago
Hi @thomascrines and all - just to note that Liam Cavin asked the Swirrl team to take a look at this and see if we had any suggestions to make, hence this issue and one or two others that Rick has opened. Give us a shout if anything in the issues isn't clear. Cheers
Thanks both, we appreciate the insight. I'll try this out.
I've tested this approach out, and it seems to be slower than the current method when I tested it using the "earnings" dataset.
The example you provide fails in the sparql-beta interface. I've no idea why this would be, but it feels like it might be a red flag.
On further review, this seems to work where my query times out, so I'll implementing it as the new standard sparql query for ods_concept
Implemented and working as intended, thanks both
If this query made use of information in the datasets DSD it would be able to more efficiently list all the codes used in a dataset for a given dimension, allowing it to work on much larger datasets
Obviously when you port to R you should replace the
BIND
s I've put in the SPARQL query with the string substitutions you're doing: