SemanticMediaWiki / semantic-mediawiki.org

This is a meta repository allowing to keep track of issues and wishes concerning semantic-mediawiki.org and related websites.
3 stars 3 forks source link

Define a fixed property for testing purposes #14

Closed kghbln closed 7 years ago

kghbln commented 8 years ago

See fixed property

kghbln commented 7 years ago

I have just added the following to "LocalSettings.php":

$smwgFixedProperties = array(
    'Has_text_fixed' => SMWDataItem::TYPE_BLOB,
    'Has_page_fixed' => SMWDataItem::TYPE_WIKIPAGE
);

"update.php":

Checking table smw_fpt_52dba83206b2ebe999cf91202670670c ...
   Table not found, now creating...
   ... done.
Checking index structures for table smw_fpt_52dba83206b2ebe999cf91202670670c ...
   ... creating new index s_id ...done.
   ... creating new index o_hash ...done.
   ... creating new index s_id,o_hash ...done.
   ... done.
Checking table smw_fpt_867717396665080354b2999bcbf690c2 ...
   Table not found, now creating...
   ... done.
Checking index structures for table smw_fpt_867717396665080354b2999bcbf690c2 ...
   ... creating new index s_id ...done.
   ... creating new index o_id ...done.
   ... done.

This is obviously an unused feature since the result is not very encouraging: test page, test page - browse

That's probably another front.

kghbln commented 7 years ago

FYI @mwjames @JeroenDeDauw I guess findings should be reported as bugs.

kghbln commented 7 years ago

I have to pull this. "rebuildData.php" fails and tells me to add $wgShowExceptionDetails = true; to find out more. However, this is already set. Let's postpone this to SMW 3.0

mwjames commented 7 years ago

However, this is already set. Let's postpone this to 3.0

Yes

PS: SMWDataItem::TYPE_BLOB I don't like the binding of an internal data object in a settings file! What happens when the property page says [[Has type::Page]] and you make it a fixed SMWDataItem::TYPE_BLOB, this smells.

kghbln commented 7 years ago

Just gave https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/2135 a shot and defined them on sandbox. "rebuildData.php" did not show any issues either. Utterly cool!