Page MenuHomePhabricator

PF does not recognize "Allows value list" feature from SMW
Open, Needs TriagePublic

Description

When using SMW, PF recognizes the "Allows value" - constraints for a property and suggests the allowed values for a dropdown or tokens input.

If you use the "Allows value list" feature, it does not work. For details, see https://www.semantic-mediawiki.org/wiki/Help:Special_property_Allows_value_list

Event Timeline

Oh, that's interesting. I had never heard of this "Allows value list" property before.

Yaron_Koren renamed this task from PF does not recognize Allows value list feature from SMW to PF does not recognize "Allows value list" feature from SMW.Jan 28 2021, 2:48 AM

Hmm. Does not work for me. If I put values from property=license to a property where this is used, nothing is shown in the autocomplete.

If I put "property=license" in the form field, then it shows "licenses.json" in the field instead of the values from
MediaWiki:Smw allows list licenses.json

grafik.png (96×827 px, 3 KB)

The Property:License has the definition:

  • [[has type::Text]]
  • [[Allows value list::licenses.json]]

MediaWiki:Smw allows list licenses.json looks like this

{
    "CC BY 2.5": "Creative Commons Attribution 2.5",
    "CC BY-SA 2.5": "Creative Commons Attribution-ShareAlike 2.5",
    "CC BY-ND 2.5": "Creative Commons Attribution-NoDerivs 2.5",
    "CC BY-NC 2.5": "Creative Commons Attribution-NonCommercial 2.5",
    "CC BY-NC-SA 2.5": "Creative Commons Attribution-NonCommercial-ShareAlike 2.5",
    "CC BY-ND-SA 2.5": "Creative Commons Attribution-NonCommercial-NoDerivs 2.5"
}