<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/sem.inMemoryStore.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>sem.inMemoryStore</api:function-name><api:suggest>sem.inmemorystore</api:suggest><api:suggest>sem</api:suggest><api:suggest>inmemorystore</api:suggest><api:function-link mode="xquery" fullname="sem:in-memory-store">/apidoc/8.0/sem:in-memory-store.xml</api:function-link><api:function mode="javascript" name="inMemoryStore" type="builtin" lib="sem" category="Semantics" hidden="false" bucket="MarkLogic Built-In Functions" prefix="sem" namespace="http://marklogic.com/semantics" fullname="sem.inMemoryStore"><api:summary>
  Returns a <code xmlns="http://www.w3.org/1999/xhtml">sem:store</code> value queries from the sequence of <code xmlns="http://www.w3.org/1999/xhtml">sem:triple</code>
  values passed in as an argument. The <code xmlns="http://www.w3.org/1999/xhtml">sem:store</code> value returned from 
  this function will raise an error if it is passed as part of the options argument
  to a call to <code xmlns="http://www.w3.org/1999/xhtml">sem:sparql-update()</code>.

  <p xmlns="http://www.w3.org/1999/xhtml">The default rulesets configured on the current database have no effect on a
  <code>sem:store</code> value created with <code>sem:in-memory-store()</code>.</p>

  <p xmlns="http://www.w3.org/1999/xhtml">This should be used along with <code>sem:sparql()</code> in preference to 
  the deprecated <code>sem:sparql-triples()</code> function. We will remove 
  documentation of <code>sem:sparql-triples()</code>, but leave the function 
  for backwards compatibility.</p>
  
  <p xmlns="http://www.w3.org/1999/xhtml">This function is a built-in.</p>
</api:summary><api:params><api:param name="dataset" type="sem:triple*"><api:param-description>
    A set of triple values representing the dataset for the
    store.
    <p xmlns="http://www.w3.org/1999/xhtml">The results from a SPARQL construct query or call to <code>sem:rdf-parse()</code>
    can be used directly as the value for this argument.</p>
  </api:param-description><api:param-name>dataset</api:param-name><api:param-type>sem.triple[]</api:param-type></api:param></api:params><api:return>sem.store</api:return><api:privilege>
<p xmlns="http://www.w3.org/1999/xhtml"><code>http://marklogic.com/xdmp/privileges/sem-sparql</code></p>
</api:privilege><api:usage>
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var sem = require("/MarkLogic/semantics.xqy");     
var turtleDocument = '\n\
    @prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .\n\
    @prefix dc: &lt;http://purl.org/dc/elements/1.1/&gt; .\n\
    @prefix ex: &lt;http://example.org/people/1.0/&gt; .\n\
  &lt;http://www.w3.org/TR/rdf-syntax-grammar&gt;\n\
    dc:title "RDF/XML Syntax Specification (Revised)" ;\n\
    ex:editor [\n\
      ex:fullname "Dave Beckett";\n\
      ex:homePage &lt;http://purl.org/net/dajobe/&gt;\n\
    ] .';
var triples = sem.rdfParse(turtleDocument, ["turtle", "repair"] );
sem.inMemoryStore(triples);
=&gt;
sem.store() :  Use the value to pass into a function that 
requires a sem.store (like sem.sparqlUpdate).

</pre></api:example></api:function></api:function-page>