On Sonntag, 6. Januar 2008, Yaron Koren wrote: > Hi, > > I found what looks like a bug; for some reason I'm only seeing it now, even > though the relevant code doesn't seem to have changed recently. In any > case, undefined properties, as in properties with no page for them, are > listed in the special Properties page as being of type "Page", i.e. > relations. However, the relevant function for getting the values for these > properties, getPropertyValues() in SMW_SQLStore, looks in the > "smw_attributes" table for properties with no defined type, instead of the > "smw_relations" table. I'm sending this to the mailing list, instead of > just submitting a bug report for it, because there might be the need for > discussion about what the correct handling should be.
Actually, the method SMWDataValueFactory::getPropertyObjectTypeID($property); will return '_wpg' for undefined properties. So the store should not even have a case for "undefined type" since it just uses such reported type ids. Anyway, I also tried SMW, and it seems that values of undeclared properties are retrieved correctly. So, hopefully, no bug here. -- Markus > > -Yaron -- Markus Krötzsch Institut AIFB, Universität Karlsruhe (TH), 76128 Karlsruhe phone +49 (0)721 608 7362 fax +49 (0)721 608 5998 [EMAIL PROTECTED] www http://korrekt.org
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Semediawiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
