The task for SMW or not?

From semantic-mediawiki.org

I need to solve the following problem: there are several thousands of pages, and each page contains a variety of unique labels (up to several dozen). These labels are unique globally and I need be able to find the page on the label. It is clear that, in theory, this problem can be solved by standard Mediawiki redirects, but they are difficult to automatically create (or remove when modifying pages).

Question: how far is it appropriate to solve this task by means of SMW?

10:17, 5 July 2015

What is a "label", how is it defined in the wikitext, and how do you ensure that it's globally unique?

01:10, 6 July 2015

There are partial dumps of external database, these labels - unique keys in the database. I will convert the dump to xml for import into wiki, so I can include labels into the body of tag pages in any form. When parsing I can resolve internal links within a single partial dump, but links to other parts (already included in the wiki, or included in the future) should be linked by means of mw / smw / something else.

10:17, 6 July 2015

Alright. What's a "tag page", and what does it mean to resolve an internal link?

21:54, 6 July 2015

If the page refers to labels that have been defined on another page of the same partial dump, then I convert it into a normal Wiki link when I convert the dump to XML.

22:39, 6 July 2015

I don't know, I still don't really understand the question. Hopefully someone else can help you.

22:18, 8 July 2015
 
 
 
 

I may confer with the previous commenter not being able to see the full extend of what you want to achieve but for what it's worth maybe the following datamodel can help.

Have your labels that point (from the origin subject) to (or from) the source being collected as part of a subobject like:

Page "SomeSubject" that relates to:

{{#subobject:
 |Has label=One,Two,Three,...|+sep=,
}}

With above statement you should be able the search for labels that point to the subject that contain those labels without having to create any redirects.

{{#ask: [[Has label::~*Two*]] }}

If the search of a subject that contain some of those labels (with "Has label" being of either "Page" or "Text" type) is not your primary objective then you need to clarify the intention of your DM.

08:50, 9 July 2015