title: How to run SPARQL queries in R (WBG Topical Taxonomy) without parallelization
body: <p>I am an R user and I am interested to use the World Bank Group (WBG) Topical Taxonomy through SPARQL queries.
  This can be done directly on the API <a href="https://vocabulary.worldbank.org/PoolParty/sparql/taxonomy" rel="nofollow noreferrer">https://vocabulary.worldbank.org/PoolParty/sparql/taxonomy</a> but it can be done also through R by using the functions load.rdf (to load the taxonomy.rdf rdfxml file downloaded from <a href="https://vocabulary.worldbank.org/" rel="nofollow noreferrer">https://vocabulary.worldbank.org/</a> ) and after using the sparql.rdf to perform the query. These functions are available on the &quot;rrdf&quot; package</p>
  <p>These are the three lines of codes:</p>
  <p>taxonomy_file        &lt;- load.rdf(&quot;taxonomy.rdf&quot;)</p>
  <p>query                &lt;- &quot;SELECT DISTINCT ?nodeOnPath WHERE {<a href="http://vocabulary.worldbank.org/taxonomy/435" rel="nofollow noreferrer">http://vocabulary.worldbank.org/taxonomy/435</a> <a href="http://www.w3.org/2004/02/skos/core#narrower" rel="nofollow noreferrer">http://www.w3.org/2004/02/skos/core#narrower</a>* ?nodeOnPath}&quot;</p>
  <p>result_query_1               &lt;- sparql.rdf(taxonomy_file,query)</p>
  <p>What I obtain from result_query_1 is exactly the same I get through the API.</p>
  <p>However, the load.rdf function uses all the cores available on my computer and not only one. This function is somehow parallelizing the load task over all the core available on my machine and I do not want that. I haven't found any option on that function to specify its serialized usege.
  Therefore, I am trying to find other solutions. For instance, I have tried &quot;rdf_parse&quot; and &quot;rdf_query&quot; of the package &quot;rdflib&quot; but without any encouraging result. These are the code lines I have used.</p>
  <p>taxonomy_file &lt;- rdf_parse(&quot;taxonomy.rdf&quot;)</p>
  <p>query                &lt;- &quot;SELECT DISTINCT ?nodeOnPath WHERE {<a href="http://vocabulary.worldbank.org/taxonomy/435" rel="nofollow noreferrer">http://vocabulary.worldbank.org/taxonomy/435</a> <a href="http://www.w3.org/2004/02/skos/core#narrower" rel="nofollow noreferrer">http://www.w3.org/2004/02/skos/core#narrower</a>* ?nodeOnPath}&quot;</p>
  <p>result_query_2       &lt;- rdf_query(taxonomy_file , query = query)</p>
  <p>Is there any other function that perform this task? The objective of my work is to run several queries simultaneously using foreach.</p>
  <p>Thank you very much for any suggestion you could provide me.</p>