
sem:ruleset-store( $locations as xs:string*, [$store as sem:store*], [$options as xs: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
xquery version "1.0-ml";
import module namespace sem = "http://marklogic.com/semantics"
at "/MarkLogic/semantics.xqy";
let $store := sem:store((), cts:word-query("Alfa Romeo"))
return
sem:ruleset-store("my-location", $store)
=>
Returns a sem:store() derived from specified triples using
the specified ruleset.