[Pellet-users] Inconsistent results??

João Paulo Sousa jpaulo at ipb.pt
Mon Feb 11 12:46:24 UTC 2008


Hi Evren,

Thanks for your answer. It's hard to me simplify the the ontology, and  
probably I will louse the problem (the ontologies are quite similar to  
SOUPA ontologies). But if you check the results of the first query you  
see that appears individuals from a different ontology dspac. I think  
the query must select the individuals that are ColocatedAction type.  
The  ColocatedAction is a class defined in acti: ontology. So why the  
individuals that aren't ColocatedAction type appears in the results? I  
check with Prótège and seems to be fine.

Another question? Why when i run the fowling query the pellet  
"debugs": "This is not an ABox query: Complex query patterns are not  
supported", and returns the results. This mean that the results can be  
wrong?

String queryStr = iCas.rdfPFX + iCas.activityPFX + iCas.spatialPFX +
                 "SELECT  DISTINCT ?activity ?subjectIsLocatedIn ? 
hasName \r\n" +
                 "WHERE { \r\n" +
                 "?subjectIsLocatedIn spac:hasName ?hasName . \r\n" +
                 "?hasColocatedAction acti:subjectIsLocatedIn ? 
subjectIsLocatedIn . \r\n" +
                 "?activity acti:hasColocatedAction ? 
hasColocatedAction . \r\n" +
                 "?activity a acti:ScheduledActivity . \r\n" +
                 "?activity acti:hasSummary ?hasSummary .\r\n" +
                 "?activity acti:validationStatus true .\r\n" +
                 "FILTER regex(?hasSummary, \"" + keyword + "\")   \r 
\n" +
                 "}";

Thanks in advance,

Cheers,

João Paulo.


On Feb 11, 2008, at 1:02 AM, Evren Sirin wrote:

> I'm sorry it is quite hard to understand what is happening and what  
> is supposed to happen from the given information. I see that  
> ontologies are on-line but there are a number of them with many  
> definitions. Is it possible to create a minimal test case showing  
> the problem? Supposedly the problem is related to the definition of  
> two classes and some related individuals so a small ontology  
> containing that information might be enough to demonstrate the  
> issue. It is very hard for someone who doesn't know anything about  
> these ontologies (i.e. someone like me) to create such a test case.
>
> Cheers,
> Evren
>
> On 2/8/08 11:50 AM, João Paulo Sousa wrote:
>> Hi,
>>
>> When I run this query I have the above results. But they are  
>> wrong.  But if i move the individuals from class  
>> acti:ColocatedAction to a  subclass acti:ColocatedActionOnObject e  
>> run the second query the  results are fine. All de ontologies are  
>> on-line.
>>
>> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>> PREFIX acti: <http://icas.ipb.pt/secom/activity#>
>> PREFIX dacti: <http://icas.ipb.pt/secom/data/activity.owl#>
>> PREFIX dsev: <http://icas.ipb.pt/secom/data/sevent.owl#>
>> PREFIX spac: <http://icas.ipb.pt/secom/spatial#>
>> PREFIX dspa: <http://icas.ipb.pt/secom/data/spatial.owl#>
>> SELECT ?action
>> WHERE {
>> ?action rdf:type acti:ColocatedAction .
>> }
>>
>> Results:
>>
>> |   
>> action 
>>                                                                              |
>> = = = = = = = = = = = =  
>> = 
>> = 
>> = 
>> =====================================================================
>> |   
>> dspa:Room_individual_1 
>>                                                              |
>> |   
>> dspa:Room_study 
>>                                                                     |
>> |   
>> dspa:Room_individual_2 
>>                                                              |
>> | <http://icas.ipb.pt/secom/data/sEvent.owl#virtual_context_aware_conference_2008   
>> > |
>> |   
>> dspa:vila_real 
>>                                                                      |
>> |   
>> dspa:berlin 
>>                                                                         |
>> | <http://icas.ipb.pt/secom/data/  
>> tEvent.owl#IntervalEvent_ECASA_2008>              |
>> |   
>> dspa:auditorium 
>>                                                                     |
>> |   
>> dacti:ColocatedAction_Runs_SECASA_2008 
>>                                              |
>> |   
>> dacti:ColocatedAction_play_tennis 
>>                                                   |
>> | <http://icas.ipb.pt/secom/data/  
>> sEvent.owl#SECASA_2008>                           |
>> |   
>> dspa:Bar 
>>                                                                            |
>> |   
>> dspa:braga 
>>                                                                          |
>> |   
>> dspa:Rectory 
>>                                                                        |
>> |   
>> dspa:Room_office_1 
>>                                                                  |
>> | <http://icas.ipb.pt/secom/data/ tEvent.owl#IntervalEvent_tennis_course 
>> >           |
>> |   
>> dspa:Lybrary 
>>                                                                        |
>> |   
>> dspa:utad_campus 
>>                                                                    |
>> |   
>> dspa:Room_media 
>>                                                                     |
>> |   
>> dspa:Building_engineerings 
>>                                                          |
>> |   
>> dspa:minho 
>>                                                                          |
>> |   
>> dspa:tras_os_montes 
>>                                                                 |
>> | <http://icas.ipb.pt/secom/data/tEvent.owl#FrequencyDescription_ECASA_2008   
>> >       |
>> | <http://icas.ipb.pt/secom/data/  
>> sEvent.owl#cofee_break>                           |
>> | <http://icas.ipb.pt/secom/data/ tEvent.owl#IntervalEvent_tennis_lesson 
>> >           |
>> ------------------------------------------------------------------------------------
>>
>>
>> Second query after moving the individuals from class   
>> acti:ColocatedAction to a subclass acti:ColocatedActionOnObject :
>>
>> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>> PREFIX acti: <http://icas.ipb.pt/secom/activity#>
>> PREFIX dacti: <http://icas.ipb.pt/secom/data/activity.owl#>
>> PREFIX dsev: <http://icas.ipb.pt/secom/data/sevent.owl#>
>> PREFIX spac: <http://icas.ipb.pt/secom/spatial#>
>> PREFIX dspa: <http://icas.ipb.pt/secom/data/spatial.owl#>
>> SELECT ?action
>> WHERE {
>> ?action rdf:type acti:ColocatedActionOnObject .
>> }
>>
>> results: (OK)
>>
>> ------------------------------------------
>> | action                                 |
>> ==========================================
>> | dacti:ColocatedAction_Runs_SECASA_2008 |
>> | dacti:ColocatedAction_play_tennis      |
>> ------------------------------------------
>>
>>
>> What is the problem?
>>
>> Chears,
>>
>> João Paulo. _______________________________________________
>> Pellet-users mailing list
>> Pellet-users at lists.owldl.com
>> http://lists.owldl.com/mailman/listinfo/pellet-users
>> _______________________________________________
>>
>> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
>>
>

ESTGM-Instituto Politécnico de Bragança.
Dept. Informática e Comunicações.
- Telf.: 278201340/278201341 / Fax: 278265733
- VoIP (skype): jpps007
- icq: 302379809, sip: jpaulo at ipb.pt
- mailTo:jpaulo at ipb.pt
___________________________________________________________________________
Por favor considere as suas responsabilidades ambientais:
Antes de imprimir o e-mail, pergunte a si mesmo se precisa de cópia em  
papel !
Please consider your environmental responsibility:
Before printing this e-mail, ask yourself whether you need a hard copy !

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.owldl.com/pipermail/pellet-users/attachments/20080211/bc52f0b8/attachment-0001.htm 


More information about the Pellet-users mailing list