<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/sem.rulesetStore.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>sem.rulesetStore</api:function-name><api:suggest>sem.rulesetstore</api:suggest><api:suggest>sem</api:suggest><api:suggest>rulesetstore</api:suggest><api:function-link mode="xquery" fullname="sem:ruleset-store">/apidoc/8.0/sem:ruleset-store.xml</api:function-link><api:function mode="javascript" name="rulesetStore" type="builtin" lib="sem" category="Semantics" hidden="false" bucket="MarkLogic Built-In Functions" prefix="sem" namespace="http://marklogic.com/semantics" fullname="sem.rulesetStore"><api:summary>
  Returns a sem:store value that answers queries from the set of triples 
  derived by applying the ruleset to the triples in the sem:store values 
  provided in $store.
</api:summary><api:params><api:param name="locations" type="xs:string*"><api:param-description>
    The locations of the rulesets.
  </api:param-description><api:param-name>locations</api:param-name><api:param-type>String[]</api:param-type></api:param><api:param name="store" type="sem:store*" optional="true"><api:param-description>
    The base store(s) to apply the ruleset over to get inferred triples. The 
	default for <code xmlns="http://www.w3.org/1999/xhtml">sem:store</code> is the triples that can be inferred 
	from the rulesets. 
  </api:param-description><api:param-name>store</api:param-name><api:param-type>sem.store[]</api:param-type></api:param><api:param name="options" type="xs:string*" optional="true"><api:param-description>
    Options as a sequence of string values. Available options are:
    <dl xmlns="http://www.w3.org/1999/xhtml">
    <dt>"size=<em>number of MB</em>"</dt>
    <dd>The maximum size of the memory used to cache inferred triples. This 
    defaults to the default inference size set for the app-server. If the 
    value provided is bigger than the maximum inference size set for the 
    App Server, an error is raised [XDMP-INFSIZE].</dd>
    </dl>
  </api:param-description><api:param-name>options</api:param-name><api:param-type>String[]</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 store = sem.store(null, cts.wordQuery("Alfa Romeo"));
sem.rulesetStore("my-location", store);
=&gt;
Returns a sem:store() derived from specified triples using
the specified ruleset.
</pre></api:example></api:function></api:function-page>