On Monday 19 March 2007 21:49, S Page wrote:
> 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:=3Dtest]]
> > Attribute:Email has this content:
> > [[has type::Type:String]]
> (You could instead use [[has type::Type:Email]] if it's a simple
> test@... e-mail address.)
I would currently not recommend this, since Type:Email has some issues (see=
> > If I use Special:SearchTriple with parameters Email and test, the page =
> > SHOWN.
> > If I use <ask>[[Email:=3Dtest]]</ask> the page IS NOT SHOWN.
> > If I use Special:Ask with [[Email:=3Dtest]] the page IS NOT SHOWN.
> Is the page in a different namespace? E.g. If it's [[User:Skierpage]]
> then you have to add
True, or you could change the default namespaces that <ask> is searching. T=
$smwgIQSearchNamespaces =3D array(NS_MAIN, NS_IMAGE);
You can add any namespaces, or set the whole value to NULL to switch off th=
restriction. While S' other suggestions also are very reasonable, this seem=
to be a very likely cause of the problem.
> Does the e-mail have trailing whitespace? I believe
> Special:SearchTriple does a search for 'text%' so it will find
> [[email:=3Dtest ]] and [[email:=3Dtestmorestuff]], but Special:Ask do=
> Also, if you want the e-mail to appear in results along with the page
> name, you need to mention it
> 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=3D"debug" to your <ask> query, turn on debug logging in MediaWiki,
> Let us know what version you're using [[Special:Version]].
> 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
> Semediawiki-user mailing list
Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe
mak@... phone +49 (0)721 608 7362
http://www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717