SemanticMediaWiki / SemanticScribunto

Provides service functions to support the Scribunto extension
Other
24 stars 14 forks source link

mw.smw.set should recognize multiple values for one property given in a sub-table #55

Closed s7eph4n closed 6 years ago

s7eph4n commented 6 years ago

Setup and configuration

Issue

mw.smw.set() allows setting multiple values for the same property by having arguments like

table#1 { 
  "prop=value", 
  "prop=value2", 
}

It would be great if it could handle arguments of the form

table#1 { 
  ["prop"] = table#2 { 
    "value",
    "value2", 
  }, 
}

(This is also the format returned by mw.smw.ask() when the result has multiple values for one property.)