Fernando Correia wrote:
> Some queries stopped working on my server. This may have happened
> after I upgraded the version of SMW or MediaWiki. I'm not sure.
> 
> Let's say I create a page with this content:
> [[Email:=test]]
> 
> Attribute:Email has this content:
> [[has type::Type:String]]

(You could instead use [[has type::Type:Email]] if it's a simple 
[EMAIL PROTECTED] e-mail address.)

> If I use Special:SearchTriple with parameters Email and test, the page IS 
> SHOWN.
> 
> If I use <ask>[[Email:=test]]</ask> the page IS NOT SHOWN.
> 
> If I use Special:Ask with [[Email:=test]] the page IS NOT SHOWN.

Is the page in a different namespace?  E.g. If it's [[User:Skierpage]] 
then you have to add
        [[User:+]]

Does the e-mail have trailing whitespace?  I believe 
Special:SearchTriple does a search for 'text%' so it will find 
[[email:=test     ]] and [[email:=testmorestuff]], but Special:Ask does not.

Also, if you want the e-mail to appear in results along with the page 
name, you need to mention it
        [[Email:=test]][[Email:=*]]

More on queries in http://ontoworld.org/wiki/Help:Semantic_search

> This seems odd to me. Does anyone have an idea about how I can debug
> this problem?

You could look at the underlying smw_attributes table, add 
format="debug" to your <ask> query, turn on debug logging in MediaWiki, etc.

Let us know what version you're using [[Special:Version]].

--
=S

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to