Page MenuHomePhabricator

interwiki properties and their external counterparts
Closed, DeclinedPublic

Description

Author: taylor.ralston

Description:
I have multiple wikis on one web site with Semantic Wiki installed on all of them. Let's say they are Wiki1 (prefix: w1), and Wiki2 (w2).

In an article "This Page" on Wiki2, I can set a property leading to Wiki1 (assuming of course that I add that prefix into the interwiki database table) by the following:

[[property::w1:Some Page]]

This works fine, and when I browse the article "This Page", I see that it has the property "property" which points to "Some Page" on Wiki1. It would be really awesome if on Wiki1, when I browse "Some Page", I'll notice that there is a property that links to it called "property" which leads back to Wiki2's page "This Page". This would really help to tightly integrate the separate wikis.

I know this is a big task, especially since Mediawiki itself probably doesn't support this out of the box. I can also see the potential problem of a wiki owner not wanting to store/index some other guy's wiki properties that lead to his wiki. But is there some kind of solution for if I run all of the wikis myself? Maybe if I had them all in the same database (different table prefixes)? Hope someone has an idea about how to accomplish this.


Version: unspecified
Severity: enhancement

Details

Reference
bz20374

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:58 PM
bzimport set Reference to bz20374.

Interesting idea. I can see how this could be achieved: share one DB among all wikis (using different prefixes for the MediaWiki tables as usual). But instead of using prefixed SMW tables, use one global set of SMW tables and store interwiki prefixes for all page data (even if local to a certain wiki). This would require all wikis to have one unique interwiki prefix used in all other wikis to address it. A slightly cleaner solution would be to specify an independent DB for SMW, so that the wikis are not even required to share the same MW database.

This approach might just work, but there are still quite some internal changes to be done (e.g. SMW currently stores localized names for its special properties in the DB tables to simplify access -- this would be a problem if wikis in multiple languages use the same tables). Also, properties with interwiki prefixes do not work yet (interwiki prefixes only work for [property] pages, but not for properties, I believe).

This extension will not happen very soon (we first need to get SMW 1.5 out). But I will keep it in mind for future extensions.

shealen.clare wrote:

This bug has not been touched in at least six months. With this in mind, I've been asked by the bugmeister to bump this bug's priority down for "High". Concerns can be addressed to mah@everybody.org.

Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.