[Bug 29041] SMWSQLStore2::getPropertyValues() fails for some special properties

2011-05-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=29041

--- Comment #4 from Markus Krötzsch mar...@semantic-mediawiki.org 2011-05-26 
07:35:55 UTC ---
I tried but cannot reproduce the problem yet. Here is what I did:

* Install SD from SVN
* Create a page Drilldown test with the text [[has
filter::Filter:Testfilter]]
* Add the following to Localsettings:

$wgExtensionFunctions[] = 'runMyTests';
function runMyTests() {
$store = smwfGetStore();
$page = new SMWDIWikiPage( 'Drilldown_test', NS_MAIN, null );
$property = new SMWDIProperty( '_SD_F' );
debug_zval_dump( $store-getPropertyValues( $page, $property, null ) );
}

Debug output:

array(1) refcount(2){
  [0]=
  object(SMWDIWikiPage)#36 (3) refcount(1){
[m_dbkey:protected]=
string(4) Testfilter refcount(1)
[m_namespace:protected]=
long(170) refcount(1)
[m_interwiki:protected]=
string(0)  refcount(1)
  }
}

I can also see the has filter value in Special:Browse. The only place where
has filter is currently missing is the RDF export -- this needs to be fixed.
Currently extension builtin properties do not get a URI assigned. But this does
not affect data retrieval in SMW.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 29041] SMWSQLStore2::getPropertyValues() fails for some special properties

2011-05-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=29041

Yaron Koren yaro...@gmail.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||INVALID

--- Comment #5 from Yaron Koren yaro...@gmail.com 2011-05-26 20:49:34 UTC ---
Aha! Thanks - that little script helped me to debug the issue. It turned out
that I just needed to refresh all the semantic data; I didn't realize that a
refresh was needed. After doing a full data refresh, it started to (mostly)
work, and then I was able to debug the rest in SD. I'm marking this as
invalid.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 29041] SMWSQLStore2::getPropertyValues() fails for some special properties

2011-05-19 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=29041

Markus Krötzsch mar...@semantic-mediawiki.org changed:

   What|Removed |Added

Summary|SMWSQLStore2::getPropertyVa |SMWSQLStore2::getPropertyVa
   |lues() fails for special|lues() fails for some
   |properties  |special properties

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 29041] SMWSQLStore2::getPropertyValues() fails for some special properties

2011-05-19 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=29041

--- Comment #3 from Yaron Koren yaro...@gmail.com 2011-05-19 13:44:06 UTC ---
Hi - thanks for looking into this. The obvious special property to look at is
the one I mentioned before - Has filter in Semantic Drilldown - because it's
very easy to reproduce the problem, assuming you have Semantic Drilldown
installed. (If you'd prefer to look at a problem in Semantic Forms, let me
know.) That property is defined as type _wpg, on line 154, here:

http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticDrilldown/includes/SD_GlobalFunctions.php?revision=88214view=markup

With this code, and the latest SMW, no filters show up when looking at
Special:BrowseData. However, in line 21, here:

http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticDrilldown/includes/SD_Utils.php?revision=88214view=markup

...if the SMWDIProperty() constructor is passed in the string Has_filter,
instead of the property ID (_SD_F), then the filters show up.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l