I can understand your concern, however I think it would not be that big
of a problem. There are several mechanisms provided by MediaWiki which
let you restrict the access to a specialpage.
First of all, you can mark the special page as unlisted, which means it
will not appear on Special:Specialpages. Users will only be able to
access this page if they know it exists.
Furthermore you can restrict the access to a page to certain user
groups. Use WikiSysop here and there shouldn't be a problem with
unintended use (as long as your sysops know what they do ;-) )
Putting your script on a specialpage would imho be a good solution
because this might be a job that has to get done many times, and in that
case the specialpage-solution is simply much more convenient than the
command-line script.


Cheers,

Markus

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Yaron Koren
Gesendet: Dienstag, 24. April 2007 15:29
An: Lionel Brits
Cc: Semediawiki Users
Betreff: Re: [Semediawiki-user] Script to refresh all semantic data

That might be a good idea, and you're right, it wouldn't be that hard to
create.

My one concern is that this might be an unintended usage of the wiki
interface. For whatever reason, there isn't that much admin
functionality available through the web browser: you can manage users
and delete pages, but that's about it. All of the other admin
functionality gets put into command-line scripts in the "maintenance"
directory, both in MW and SMW. I don't know if that's by design, or
that's just how things turned out. Does anyone know?

-Yaron


On 4/23/07, Lionel Brits <[EMAIL PROTECTED]> wrote:
> This is helpful, but I think the logical place to have it would be as
a
> Special: page, perhaps Special:SemanticRefresh or something.... It's
> just a matter of putting the code inside the special page .php
template.
>
> Regards,
>
> - Lionel
>
> Yaron Koren wrote:
> > Hi,
> >
> > Every so often someone on this list asks about the ability to
refresh
> > all the semantic data in the database; it just came up again last
> > week. It's a helpful feature for anyone who uses templates for
storing
> > semantic data, since currently, if you change the data in a
template,
> > the pages that already use that template won't get updated unless
you
> > resave.
> >
> > So, I wrote a script called, which is attached, which does exactly
> > that: it's called  "SMW_recreateData.php". To use it, drop it into
the
> > "maintenance" folder under the main SMW directory. You have to make
> > one other change, which is to add the following line among the
> > require_once() calls at the top of the file
> > "/includes/SMW_InlineQueries.php":
> >
> > require_once( "$IP/includes/Defines.php" );
> >
> > The script is then called as:
> >
> > php SMW_recreateData.php
> >
> > It might be worthwhile to also create a way to call this code
directly
> > from the web interface somehow, but this should be a good first
step.
> >
> > Also, I don't have write access to the code in the SVN repository,
but
> > it would be great if someone could add the file there, along with
> > adding that one line to SMW_InlineQueries.php.
> >
> > Yaron
> >
------------------------------------------------------------------------
> >
> >
------------------------------------------------------------------------
-
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> >
------------------------------------------------------------------------
> >
> > _______________________________________________
> > Semediawiki-user mailing list
> > Semediawiki-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user
> >
>
>

------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to