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?
What is a "label", how is it defined in the wikitext, and how do you ensure that it's globally unique?
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.
Alright. What's a "tag page", and what does it mean to resolve an internal link?
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.