Hi Yaron,
Definitely SiteSettings is useful for a wikifarm, so is the interwiki
table. To get named-value simplicity (for admins), adding a LONGTEXT
column (or LONG VARCHAR) to the interwiki table and then extracting
named values via canned mysql achieves similar goals
mysql> describe interwiki;
+-----------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+---------------+------+-----+---------+-------+
| iw_prefix | varbinary(32) | NO | PRI | NULL | |
| iw_url | blob | NO | | NULL | |
| iw_api | blob | NO | | NULL | |
| iw_wikiid | varbinary(64) | NO | | NULL | |
| iw_local | tinyint(1) | NO | | NULL | |
| iw_trans | tinyint(4) | NO | | 0 | |
+-----------+---------------+------+-----+---------+-------+
SELECT
SUBSTR('iw_settings', LOCATE('<setting>', 'iw_settings') +
LENGTH('<setting>'),
LOCATE('</setting>', 'iw_settings') - LOCATE('<setting>', 'iw_settings')
+ LENGTH('<setting>')
) as 'setting'
FROM interwiki WHERE 'iw_url'='localhost';
Anyway I much like all three extensions, and welcome tight integration
among them all, despite dev headaches that may occur.
Thanks for your terrific contributions/john
On 7/16/2014 10:01 AM, Yaron Koren wrote:
Hi John,
The Page Schemas class is linked in my original email; the Admin Links
function is in SemanticMediaWiki.hooks.php.
I would rather not get into the technical details of any of those
extensions in this thread, except as it relates to SMW. However - it's
true that a key-value approach for Site Settings would be more
flexible than a hardcoded table, but Site Settings is also meant to be
usable for a wiki farm, and I figured that a standard DB table would
be easier for admins to deal with than a big key-value table.
-Yaron
On Wed, Jul 16, 2014 at 12:27 PM, John McClure
<jmccl...@hypergrove.com <mailto:jmccl...@hypergrove.com>> wrote:
On 7/15/2014 7:25 PM, Yaron Koren wrote:
Semantic MediaWiki already hooks into the first two: Admin Links
via a function, and Page Schemas with a class.
Hi Yaron - What function/class are those. Also, i happened to
review PS extension's DTD - has it changed?
<?xml version="1.0"encoding="utf-8"?>
<!DOCTYPE PageSchema [
<!ELEMENT PageSchema (Template*)>
<!ELEMENT PageSchema (semanticforms_Form*)>
<!ATTLIST PageSchema name CDATA #REQUIRED>
<!ELEMENT Template (Field*)>
<!ATTLIST Template name CDATA #REQUIRED>
<!ATTLIST semanticforms_Form name CDATA #REQUIRED>
<!ATTLIST Field name CDATA #REQUIRED>
]>
I looked at SiteSettings schema and wondering about a different idea
-- how about duplicating mediawiki's interwiki table but with a
blob of named-value settings.
In this way other setup settings can be added with great ease.
And it can be used as the anchor for definition of an smw-wiki farm.
It could come in handy during cross-site joins in some future.
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise?
Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
<mailto:Semediawiki-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
--
WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel