<span class="Apple-style-span" style><div class="Mk" style="overflow-x:hidden;overflow-y:hidden"><div class="Nk"><div class="Lk Ok" dir="ltr">I don't have here my pc but seems like you need to split the optional clause because you are obtaining a result only when all ontologies exists.<span></span><br>
<div style="clear:both"></div></div></div></div><div style="clear:both"></div><div></div></span><br>El viernes, 7 de septiembre de 2012, Aleix Pol  escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
Recently I've been trying to push KPeople into something that we can<br>
actually use. There's been good progress so far, but recently I've hit<br>
an issue I don't really understand, maybe somebody can bring some<br>
light to it for me because I don't understand it.<br>
<br>
The problem is that while making the query, I ask for many<br>
information, including the nco:hasIMAccount field. In this video [1]<br>
I'm showing how the returned field is empty but if I navigate to the<br>
contact using the nepomuk shell, then I can see the hasIMAccount<br>
information.<br>
<br>
Can anybody tell me what is going wrong? Why don't I get the imAccount<br>
information in the query?<br>
<br>
Thanks!<br>
Aleix<br>
<br>
[1] <a href="http://proli.net/meu/kde/weirdnepomuk.ogv" target="_blank">http://proli.net/meu/kde/weirdnepomuk.ogv</a><br>
<br>
PS: Here's the query, if you want to try:<br>
<br>
select ?uri ?pimo_groundingOccurrence ?nco_hasIMAccount<br>
        ?nco_imNickname ?telepathy_statusType ?nco_imID<br>
?nco_imAccountType ?nco_hasEmailAddress<br>
        ?nco_imStatus ?nco_photo<br>
<br>
        WHERE {<br>
            ?uri a nco:PersonContact .<br>
            ?pimo_groundingOccurrence   pimo:groundingOccurrence     ?uri .<br>
<br>
        OPTIONAL {<br>
            ?uri                       nco:hasIMAccount<br>
?nco_hasIMAccount .<br>
            ?nco_hasIMAccount          nco:imNickname<br>
?nco_imNickname .<br>
            ?nco_hasIMAccount          telepathy:statusType<br>
?telepathy_statusType .<br>
            ?nco_hasIMAccount          nco:imStatus<br>
?nco_imStatus .<br>
            ?nco_hasIMAccount          nco:imID                    ?nco_imID .<br>
            ?nco_hasIMAccount          nco:imAccountType<br>
?nco_imAccountType .<br>
         }<br>
        OPTIONAL {<br>
            ?uri                       nco:photo                   ?phRes.<br>
            ?phRes                     nie:url                     ?nco_photo.<br>
         }<br>
        OPTIONAL {<br>
            ?uri                       nco:hasEmailAddress<br>
?nco_hasEmailAddress .<br>
            ?nco_hasEmailAddress       nco:emailAddress<br>
?nco_emailAddress .<br>
         }<br>
}<br>
_______________________________________________<br>
Nepomuk mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'Nepomuk@kde.org')">Nepomuk@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
</blockquote><br><br>-- <br>Best wishes,<div>Ignacio</div><div><br></div><br>