[Mulgara-dev] 100k models?

Paul Gearon gearon at ieee.org
Thu Apr 5 15:54:24 UTC 2007


On 4/5/07, Laurian Gridinoc <laurian at gmail.com> wrote:
<snip/>

> I see, is there any way to run a query over all models, without specifying
> each model?


Yes, although the language doesn't make it trivial, since it presumes you
know at least ONE of the models you're interested in!

You can do a select where the FROM clause is set to some dummy model (I'd
choose the "System Model", but it doesn't matter, so long as it's a real
model).  Then provide an IN clause for each constraint, with the model set
to a variable.

An example of this would be:
select $subject $object $model
from <rmi://localhost/server1#>
where $subject <my:property> $object in $model;

You can do arbitrarily complex things here, depending on how you join the
constraints, but this gives you an idea of what you want.

Paul

P.S.  Andrae: Maybe we should provide the syntactic sugar to allow a single
variable (and nothing else) in the FROM clause?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mulgara.org/pipermail/mulgara-dev/attachments/20070405/d2160a68/attachment.htm>


More information about the Mulgara-dev mailing list