Re: [SMW-devel] Getting DB keys from a Data Value in SMW 1.7?

2012-07-24 Thread Jeroen De Dauw
Hey, Should I keep the SMWCompatibilityHelpers code in SIO for now, since there's no alternative at the moment? There is no reason to do effort changing it to whatever the new approach is since it's going to break in 1.8 anyway. So I'd just stick with using the compatibility helper class for

Re: [SMW-devel] Getting DB keys from a Data Value in SMW 1.7?

2012-07-24 Thread Markus Krötzsch
Yaron, what in the world do you need the DB keys for? :-) In the end, the keys are supposed to mirror how data is stored in DB tables. If you just want to store data somehow, there are much simpler ways. I thought SIO uses SMW's container feature to avoid direct reference to DB internals now?

[SMW-devel] Getting DB keys from a Data Value in SMW 1.7?

2012-07-23 Thread Yaron Koren
Hi, In the Semantic Internal Objects extension, I'm getting the DB keys for an object of type SMWDataValue with the following code: $dataItem = $value-getDataItem(); $keys = SMWCompatibilityHelpers::getDBkeysFromDataItem( $dataItem ); However, the file for the SMWCompatibilityHelpers says that

Re: [SMW-devel] Getting DB keys from a Data Value in SMW 1.7?

2012-07-23 Thread Yaron Koren
Hi, Sorry, what's the actual code I should use? That's all I wanted to know. -Yaron On Mon, Jul 23, 2012 at 4:47 PM, Nischay Nahata nischay...@gmail.comwrote: Hey, SMWCompatibilityHelpers has been removed in 1.8 Store3, though its still in the repository to support Store2. Store3 instead