New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Returning missing explicitly selected pages as red links #3934
Comments
How should this work in a generalized way? E.g. Where should it stop? |
I think the option should only affect explicitly given page titles. |
I understand the issue but this will not be supported in SMW core as non-existing entities by default are non-existing and therefore not part of a result set.
If you need such a feature then I propose you have a look at [0] which serves as basic example on how your request can be solved using an existing hook. The example doesn't consider ordering or further results which is out of scope and should be solved by the implementing party. |
I find SMW's lack of support for non-existent entities very limiting because it is in the nature of a wiki to be incomplete. While Anyway, thanks for your response and your pointer to the hook. |
While this is a correct assumption (system are always systems of incomplete information), for something that doesn't exist (as a link, as an ID, or as an existential object etc.) the A Of course, there exists some technical solutions (above is one of them) to modify the assumptions about "known sets" but the general premise remains intact of that "a condition is applied to a set of known entities".
"Red links" are non-exiting object descriptions with no statements to define their semantics and just because MediaWiki shows them as red links doesn't mean SMW is aware of them and can infer the implied semantics. OWL and statements created using SMW are generally made under the open world assumption OWA (fact to be true whether it is known or not) and since the system has not enough information it can not positively answer a condition as requested above. To reframe this into a more technical perspective, under the
The reason I gave the technical example above was so users can redefine assumptions about what is known or not in a wiki specific sense but SMW core will not modify general accepted rules about how to treat incomplete information. |
Setup and configuration
SMW queries currently cannot return missing selected pages, which sometimes can be desirable.
For example:
will omit
Paris
if the page does not (yet) exist.It would be great if you could set something like
return missing=yes
(ideally you could also setorder=selected
).{{#ask: [[London||Paris||Barcelona]]|?Capital of|format=ol|return missing=yes|order=selected}}
would then return:
The text was updated successfully, but these errors were encountered: