[SMW-devel] Running {{#ask:}} from PHP

2014-08-10 Thread Александр Машин
Dear developers, how can I run an SMW query from PHP? I don't want any formatting, just an array of returned values. I used to do it like that (ugly but working): public function ask (array $args) { list ($query, $params) = SMWQueryProcessor::getQueryAndParamsFromFunctionParams

[SMW-devel] Default collation for SMW tables

2020-12-13 Thread Александр Машин
Dear all, maintenance/update.php reports: changing type of field smw_sortkey from 'VARBINARY(255) NOT NULL' to 'VARCHAR(255) CHARSET utf8 COLLATE utf8_general_ci NOT NULL' How is the collation utf8_general_ci chosen? Will it be able to handle four byte-long Unicode characters like Gothic?

[SMW-devel] SESP: pull request

2022-02-15 Thread Александр Машин
Dear all, can anyone review this pull requets to Semantic Extra Special Properties: https://github.com/SemanticMediaWiki/SemanticExtraSpecialProperties/pull/202, please? Alexander Mashin ___ Semediawiki-devel mailing list Semediawiki-devel@lists.

[SMW-devel] Cargo, SMW and LocalisationCache

2022-02-17 Thread Александр Машин
Dear all, running SMW's setupStore with Cargo installed and LocalisationCache enabled causes an interesting error at the end of the script: ... smw/schema:Group:Predefined properties ...PHP Notice: "" is not a valid magic word for "cargo_declare" [Called from Language::getMagic in /var/w

[SMW-devel] Printout chains

2024-03-25 Thread Александр Машин
Dear all, In PHP, when formatting a result row, is there a way to know the "owner" of a value returned by a chain printout (e.g., ResultArray), that is the title of the page, in which this chain value has been set? I.e., for ?relation1.property2 get the name of the target of relation1? Alexa