hi
I am experimenting with a SPARQL query, embedded in XQuery and using the
*sem:ruleset-store* functionality. The query specifies a custom ruleset in
addition to the standard "TransitiveProperty.rules" as follows:
#1:
*let $rdf-store := sem:ruleset-store(("/lims/rulesets/derivedFrom.rules",
"TransitiveProperty.rules"),sem:store((), cts:or-query(($q1,$q2))) )*
#2:
*let $rdf-store := sem:ruleset-store(("/lims/rulesets/derivedFrom.rules",
"TransitiveProperty.rules"),sem:store() )*
In the first version, the *sem:store* contains triples selected via a
*cts:query* construct; the second version the *sem:store* specifies the
entire default graph. In terms of data, the underlying RDF is such that #1
is a subset of #2.
When the SPARQL/XQuery is executed, the results generated from the two
different *sem:ruleset-store* versions are identical, except that only #2
includes the effect of applying the TransitiveProperty.rules ruleset. In
the case of #1 above, "TransitiveProperty.rules" seems not to be being
applied; remove this ruleset from #2 and the two *sem:ruleset-store*
functions produce identical results.
An explanation for this would be really helpful.
regards
-Tony
--
Attention:
The information in this email and in any attachments is confidential. If
you are not the intended recipient then please do not distribute, copy or
use this information. Please notify us immediately and then delete the
message from your computer. Any views or opinions presented are solely
those of the author.
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general