[Mulgara-general] How do I know whether a Mulgara model contains any statements?

Ghazzaoui, Ramez (NIH/NLM/LHC) [C] ghazzaouir at mail.nih.gov
Fri Mar 28 10:18:22 PDT 2008


Hi again, 

 

Is there a way, other than through an iTQL query, to peek into a Mulgara
model and see its contents?  Maybe by browsing the server1 directory? 

 

Here's why I need that: 

 

I have a base Mulgara model with ~1.1 million statements. I also created
a Krule and (with help from Paul) loaded it into its own model and
applied it to my base model of ~1.1 million triples to create a separate
entailed model. All three models (base model, Krule model and resulting
entailed model) can be seen with a properly written "SELECT $model from
<server1>" query. 

 

When I run a basic "count all statements" query on the base model: 

 

    select count(

      select $x $y $z

      from <rmi://localhost/server1#nida_1>

      where $x $y $z

    )

    from <rmi://localhost/server1#nida_1>

    where $x $y $z;

 

I get a good count: 

 

    [ "1148496.0"^^<http://www.w3.org/2001/XMLSchema#double> ]

    1 rows returned.

 

But when I run the same "count all statements" on the entailed model: 

 

    select count(

      select $x $y $z

      from <rmi://localhost/server1#nida_1_ent_sameAs>

      where $x $y $z

    )

    from <rmi://localhost/server1#nida_1_ent_sameAs>

    where $x $y $z;

 

I get  "No results returned"  instead of an actual count. 

 

Even  [ "0.0"^^<http://www.w3.org/2001/XMLSchema#double> ]  would be
okay with me, indicating that my Krule did not produce any statements,
but this "No results returned" seems strange. 

 

When I run the following: 

 

      select $x $y $z

      from <rmi://localhost/server1#nida_1_ent_sameAs>

      where $x $y $z

 

I also get "No results returned" which would be fine IF the model is
indeed empty, but I need to make sure that this entailed model is in
fact empty before re-examining my Krule to see why it produced no new
statements. 

 

For this reason, I am looking for other ways to look into the entailed
model. 

 

Cheers, 

 

-Ramez 

 

 

_______________________________

Ramez Ghazzaoui

Contractor

NIH/NLM/LHC/CgSB/MOR

+1 (301) 435-3161

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mulgara.org/pipermail/mulgara-general/attachments/20080328/a8168ed2/attachment-0001.html 


More information about the Mulgara-general mailing list