1 Aug 2004 15:04
[protege-discussion] Problem with PAL queries and :SYMBOL typed slots...
Vassilis Koutkias <bikout <at> med.auth.gr>
2004-08-01 13:04:57 GMT
2004-08-01 13:04:57 GMT
Dear all,
I am working with the PAL Queries Tab and I am facing the following problem:
I am querying a class to obtain its instances, with a slot criterion which is of
type :SYMBOL, in the following way (i.e., query for instances of the Article
class, which has the value "College" in the reading_level slot, corresponding to
the Newspaper project) :
(defrange ?item :FRAME Article)
(findall ?item
(= (reading_level ?item) "College"))
This query would work fine in case the reading_level slot was not of :SYMBOL
type but of :STRING type. I also excluded quotas in College, but there were no
results generated by the query. In any case, I get an empty "Warnings and
Errors" textarea in the PAL Queries Tab and some exceptions in the Protege
console window triggered by
"edu.stanford.smi.protegex.pal.language.Type_Symbol.coerceValue(Unknown Source)".
I would appreciate any idea, regarding the way such a query should be
(Continue reading)
By the way, in the corresponding documentation page entitled "Supported
Predicates and Functions in PAL",
(.../pal-documentation/PalKeywords/pal-predicates-functions.html)
the link to each particular predicate, function, etc. leads to pages
with no additional description...
Kind regards,
Vassilis.
Samson Tu wrote:
>Use the "coerce-to-string" function:
>
>(findall ?item
> (= (coerce-to-string (reading_level ?item)) "College"))
>
>
>Vassilis Koutkias wrote:
>
>
>>Dear all,
>>
>>I am working with the PAL Queries Tab and I am facing the following problem:
>>
>>I am querying a class to obtain its instances, with a slot criterion which is of
RSS Feed