-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks Markus,
Indeed, your instanceof check provides an empty results page now ;)
I had the following inline-query: {{#show: Links | ?url | format=rss
}} (with a MediaWiki that is entirely in English)
I can see now why that won't work. I was doing that under the wrong
assumption that I would get the links in the [[url::]] property, but
of course that isn't the case.
Rather, if the query weren't restricted to a single page, I'd get the
link to that page as well as the (modified) content of it.
But as RSSLink expects a Wikipage to be passed, that gives an empty
result-set.
I was simply trying to do smth useful with our links page, but this is
definitely not it ;)
Thanks,
David
Markus Krötzsch wrote:
> Hi David,
>
> your analysis of the problem seems to be accurate. The immediate
> bug here is that the RSS printer misses a check to avoid crashing.
> I have added this check now in SVN.
>
> Your particular problem should be related to query processing:
> there are cases when queries do not contain a wiki page as their
> first result. This normally happens if the query restricts results
> to a single page. This is somewhat historical, and was intended to
> lead to more useful outputs when the user already knows the page.
> For example, the query {{#ask: [[Test]] | ?property }} shows only
> the value of "property" for "Test" but not a table with two columns
> "Test" and "property".
>
> I can imagine that this happens in your case based on local
> language settings. Language settings affect query syntax. Writing
> [[Category:Test]] will ask for values of the category Test on an
> English wiki, but not on a German one where [[Category:Test]] is a
> valid page name that has nothing to do with categories. Of course,
> MW now has alias namespaces and largely supports English versions
> as well, and SMW should probably do the same.
>
> Anyway, as it is now, you may have to write something like
> "[[Kategorie::Test]]" in queries (or whatever your local language
> name for "category" is).
>
> I intend to change the internal query result structures at some
> point, and this will also lead to a more adequate behaviour in
> these cases. Right now, all you get after my earlier fix is an
> empty RSS feed (which is not strictly correct RSS either), but at
> least not an error.
>
> Cheers,
>
> Markus
>
- --
Building a Hackerspace in Luxembourg!
syn2cat Hackerspace.lu A.S.B.L.
http://www.hackerspace.lu
mailto:[email protected]
xmpp:[email protected]
voip: +352 20 333 501
mobile: +43 650 73 63 834 | +352 691 44 23 24
***
Wear your geek: http://syn2cat.spreadshirt.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpHrKQACgkQYTtdUdP5zDcR6wCeM5umKxZkAZsUf3UVIoFpr2ob
ecYAn2aHvbrfi0Sa96chYK/BZDRKaS5W
=3gKz
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel