
sem.rulesetStore( locations as String[], [store as sem.store[]], [options as String[]] ) as sem.store
The sem:ruleset-store function returns a set of triples derived
by applying the ruleset to the triples in the sem:store constructor
provided in $store ("the triples that can be inferred from
these rules").
If graph URIs are included with a sem:sparql query that includes
sem:ruleset-store, the query will include "triples in the $store
that are also in these graphs".
This function is a built-in.
http://marklogic.com/xdmp/privileges/sem-sparql
var sem = require("/MarkLogic/semantics.xqy");
var store = sem.store(null, cts.wordQuery("Alfa Romeo"));
sem.rulesetStore("my-location", store);
=>
Returns a sem:store() derived from specified triples using
the specified ruleset.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.