I've started to use SMW_dumpRDF.php and noticed that it fails to detect wiki URL correctly, it seems like generic issue for all command line MW tools since $wgServer is autodetected at runtime based on CGI environment.
I've patched it with code from generateSitemap.php and created a bug: https://bugzilla.wikimedia.org/show_bug.cgi?id=13142 (patch attached).


Sergey Chernyshev