Hi all, just to let all of you know what I do in my spare time, here is a summary of some significant feature additions that are now in SVN and that will soon appear as part of SMW1.0RC3 (so no-one later complains not to have known about the new features ;).
Note this is not installed on ontoworld.org yet either, and other wikis
(example below) also may have slightly older SVN copies only.
* Inline queries now can be asked with a parser function #ask. The old <ask>
continues to work, but #ask usually is just better and will be the suggested
method in the future. For now, all documentation is this example query:
{{#ask: [[Category:Country]] [[borders::Nigeria]] |
?population|
?area#km² = Size|
format=list|
limit = 3|
link=all|
intro=<b>Testquery:</b>_|
}}
The query is the stuff without "=" or leading "?", the lines with "?" are
printout requests with the expected meaning, and the other lines are plain
parameters. The advantage of this is that the above is fully compatible with
MediaWiki templates and template parameters, a long-requested feature.
Moreover, non-query parts now integrate fully with query results, e.g. you can
write a table header in MediaWiki syntax, followed by a query that builds the
table contents (using template output), followed by the MediaWiki table
footer -- the result will be one properly formatted table.
* You can now use "mainlabel=-" to hide the first (main) column in an inline
query. This works for <ask> and #ask alike.
* You can now use an "empty" printout request to reinsert the first column
elsewhere. I.e. you would write something like "?=Maincolumn|" as a printout
parameter. This is supported only for #ask.
The last two combined allow you to do nice formatting tricks very easily. Have
a closer look at the timeline on
http://semantic-web-grundlagen.de/index.php/SWT1_WS07/08 (German, but
anyway). The query used for that is
{{#ask:[[Datum::+]] [[Serie::SWebT1 WS07/08]]|
?Titel|
?Kategorie=|
?Startzeit=|
?Dozent=|
?='''Info und Unterlagen'''<br/>|
?Unterlagen=|
mainlabel=-|
link=all|
format=timeline|
timelinebands=WEEK,MONTH|
timelineposition=today|
timelinesize=200px|
limit=100
}}
* Special:ask has changed, since printout statements are now no longer part of
the query (old queries with inline-printouts still work but are discouraged).
Also, clicking on "further results ..." now does not show the ugly query code
right away. You can view and edit it, but you can also ignore it if you
really are interested in the results only!
* Semantic links to "pages" of the form "Media:..." now work better. You will
get a direct link to the file on all pages (including all query results).
Requires MediaWiki 1.11.0 or greater to work.
Some more fixes will also come before RC3, and I guess RC4 will eventually be
the last one before 1.0 (some features, service links and type Bool, are
still missing).
Cheers,
Markus
--
Markus Krötzsch
Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe
phone +49 (0)721 608 7362 fax +49 (0)721 608 5998
[EMAIL PROTECTED] www http://korrekt.org
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Semediawiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
