[Mulgara-dev] 100k models?

Laurian Gridinoc laurian at gmail.com
Thu Apr 5 15:59:13 UTC 2007


On 05/04/07, Paul Gearon <gearon at ieee.org> wrote:

> 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.
>

Interesting, and if I have 100k models it will work? I mean how do you do it
behind the scenes, you iterate all the models (which can be overkill) or
your indexes are queries independent of a model name constrain?

Cheers,
-- 
Laurian Gridinoc, purl.org/net/laur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mulgara.org/pipermail/mulgara-dev/attachments/20070405/d7ee8105/attachment.htm>


More information about the Mulgara-dev mailing list