Hi, have a look here [0] for more context. I think SMW should be stopped from allowing lower case letters at the beginning. Probably a convenience thing for users. If you define a property like this the property page will still start with a capital letter and I guess this is why you get the capital letter from the hook.
Cheers, Karsten [0] https://en.wikipedia.org/wiki/Wikipedia%3aPage_name#Technical_restrictions_and_limitations Am 11.10.19 um 17:34 schrieb Sebastian Trueg: > Hi again, > > since my last question was answered in virtually no time with a perfect > result I am trying again for another problem I have: > > When and why exactly does SMW convert the first letter of my properties > to upper-case? > > Say I define a property like "myProperty" and use it like so > > {{#set:myProperty=foobar}} > > Now I can perfectly query for that property: > > {{#ask: > [[myProperty::foobar]] > }} > > But when I look at the properties of the page in my hook via > "SemanticData::getProperties" I get "MyProperty" instead, ie. an upper > case "M". And of course the property page will also be > "Property:MyProperty". > > I was not able to find anything in the documentation or even the code of > SMW. > Any hints? > > Regards, > Sebastian > -- Karsten / MediaWiki and Semantic MediaWiki enthusiast / → https://professional.wiki/ _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel