Cross-posted on Mma.SE, 197438.
When using SPARQLSelect
on Entity Types the entire entity store is downloaded to the local cache.
For example,
SPARQLSelect[
{
RDFTriple[SPARQLVariable["city"], EntityProperty["City", "Name"],
SPARQLVariable["cityName"]]
} /;
SPARQLEvaluation["CONTAINS"][SPARQLVariable["cityName"],
"Lon"] ->
{"city"}
][Entity["City"]]
This first downloads 164,599 entity values to the local cache before evaluating the query locally.
With SPARQLExecute
the query can be evaluated on the graph database server and only the results returned. However I have not been able to find the Wolfram graph-store entity URL in the documentation.
Is there a way to SPARQLExecute
an entity query on the Wolfram graph-store URL? Or, alternatively, execute the SPARQL query without it killing the kernel?
I would like to evaluate the following but, after the entity stores are downloaded, the kernel dies just after a system low memory warning pop-up appears.
SPARQLSelect[
{
RDFTriple[SPARQLVariable["city"], EntityProperty["City", "Name"],
SPARQLVariable["cityName"]],
RDFTriple[SPARQLVariable["airport"],
EntityProperty["Airport", "Name"], SPARQLVariable["airportName"]]
} /;
SPARQLEvaluation["CONTAINS"][SPARQLVariable["airportName"],
SPARQLVariable["cityName"]] ->
{"city", "airport"}
][{Entity["City"], Entity["Airport"]}]