From: Samuel L. <sam...@gm...> - 2013-03-25 13:29:36
|
Hi, I was wondering what the support is supposed to be for SMWSQLStore2 in the latest SMW? I have realized that RDFIO [1] is currently using it, which was making it non-compatible with SMW 1.9. After updating the inclusion path of it to th new one [2] I get further, but then I get the following error, indicating that a table is missing: A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: |(SQL query hidden)| from within function "|SMWSQLStore2::getSMWPageIDandSort|". Database returned error "1146: Table 'smw.smw_ids' doesn't exist (localhost)". Is this expected, and how can I fix it? Btw, what would be the easiest path for migrating to SMWSQLStore3? BR // Samuel [1]http://www.mediawiki.org/w/index.php?title=Extension:RDFIO [2] includes/storage/compatSQLStore/SMW_SQLStore2.php -- Developer at SNIC-UPPMAX www.uppmax.uu.se Developer at Dept of Pharm Biosciences www.farmbio.uu.se |
From: Samuel L. <sam...@gm...> - 2013-03-25 14:05:32
|
Ah, found out that I have to set: $smwgDefaultStore = 'SMWSQLStore2'; Any hints for easiest migration of code that uses SMWSQLStore2 is highly appreciated though! (Becoming rusty with SMW stuff :| ) BR // Samuel On 03/25/2013 02:29 PM, Samuel Lampa wrote: > Hi, I was wondering what the support is supposed to be for > SMWSQLStore2 in the latest SMW? > > I have realized that RDFIO [1] is currently using it, which was making > it non-compatible with SMW 1.9. After updating the inclusion path of > it to th new one [2] I get further, but then I get the following > error, indicating that a table is missing: > > A database query syntax error has occurred. This may indicate a bug in > the software. The last attempted database query was: > > |(SQL query hidden)| > > from within function "|SMWSQLStore2::getSMWPageIDandSort|". Database > returned error "1146: Table 'smw.smw_ids' doesn't exist (localhost)". > > Is this expected, and how can I fix it? > > Btw, what would be the easiest path for migrating to SMWSQLStore3? > > BR > // Samuel > > [1]http://www.mediawiki.org/w/index.php?title=Extension:RDFIO > [2] includes/storage/compatSQLStore/SMW_SQLStore2.php > -- Developer at SNIC-UPPMAX www.uppmax.uu.se Developer at Dept of Pharm Biosciences www.farmbio.uu.se |
From: Jeroen De D. <jer...@gm...> - 2013-03-25 17:05:40
|
Latest dev code no longer contains the old store. So 1.9 will not support it. Your extension ought to use SMWs storage layer so it is not dependent on a specific version of some store implementation. Sent from my HTC one X. On 25 Mar, 2013 10:06 AM, "Samuel Lampa" <sam...@gm...> wrote: > Ah, found out that I have to set: > > $smwgDefaultStore = 'SMWSQLStore2'; > > > Any hints for easiest migration of code that uses SMWSQLStore2 is highly > appreciated though! > > (Becoming rusty with SMW stuff :| ) > > BR > // Samuel > > On 03/25/2013 02:29 PM, Samuel Lampa wrote: > > Hi, I was wondering what the support is supposed to be for > > SMWSQLStore2 in the latest SMW? > > > > I have realized that RDFIO [1] is currently using it, which was making > > it non-compatible with SMW 1.9. After updating the inclusion path of > > it to th new one [2] I get further, but then I get the following > > error, indicating that a table is missing: > > > > A database query syntax error has occurred. This may indicate a bug in > > the software. The last attempted database query was: > > > > |(SQL query hidden)| > > > > from within function "|SMWSQLStore2::getSMWPageIDandSort|". Database > > returned error "1146: Table 'smw.smw_ids' doesn't exist (localhost)". > > > > Is this expected, and how can I fix it? > > > > Btw, what would be the easiest path for migrating to SMWSQLStore3? > > > > BR > > // Samuel > > > > [1]http://www.mediawiki.org/w/index.php?title=Extension:RDFIO > > [2] includes/storage/compatSQLStore/SMW_SQLStore2.php > > > > > -- > Developer at SNIC-UPPMAX www.uppmax.uu.se > Developer at Dept of Pharm Biosciences www.farmbio.uu.se > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Semediawiki-devel mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > |
From: Samuel L. <sam...@gm...> - 2013-03-26 21:45:18
|
Yeah, have seen that I have way too much low level dependencies, creating brittle code, etc. Bit embarrassing to look at the code now a few years after :") What's the best resource/page for getting one's head around the storage layer? http://semantic-mediawiki.org/doc/group__SMWStore.html ? BR // Samuel On 03/25/2013 06:05 PM, Jeroen De Dauw wrote: > > Latest dev code no longer contains the old store. So 1.9 will not > support it. Your extension ought to use SMWs storage layer so it is > not dependent on a specific version of some store implementation. > > Sent from my HTC one X. > > On 25 Mar, 2013 10:06 AM, "Samuel Lampa" <sam...@gm... > <mailto:sam...@gm...>> wrote: > > Ah, found out that I have to set: > > $smwgDefaultStore = 'SMWSQLStore2'; > > > Any hints for easiest migration of code that uses SMWSQLStore2 is > highly > appreciated though! > > (Becoming rusty with SMW stuff :| ) > > BR > // Samuel > > On 03/25/2013 02:29 PM, Samuel Lampa wrote: > > Hi, I was wondering what the support is supposed to be for > > SMWSQLStore2 in the latest SMW? > > > > I have realized that RDFIO [1] is currently using it, which was > making > > it non-compatible with SMW 1.9. After updating the inclusion path of > > it to th new one [2] I get further, but then I get the following > > error, indicating that a table is missing: > > > > A database query syntax error has occurred. This may indicate a > bug in > > the software. The last attempted database query was: > > > > |(SQL query hidden)| > > > > from within function "|SMWSQLStore2::getSMWPageIDandSort|". Database > > returned error "1146: Table 'smw.smw_ids' doesn't exist > (localhost)". > > > > Is this expected, and how can I fix it? > > > > Btw, what would be the easiest path for migrating to SMWSQLStore3? > > > > BR > > // Samuel > > > > [1]http://www.mediawiki.org/w/index.php?title=Extension:RDFIO > > [2] includes/storage/compatSQLStore/SMW_SQLStore2.php > > > > > -- > Developer at SNIC-UPPMAX www.uppmax.uu.se <http://www.uppmax.uu.se> > Developer at Dept of Pharm Biosciences www.farmbio.uu.se > <http://www.farmbio.uu.se> > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Semediawiki-devel mailing list > Sem...@li... > <mailto:Sem...@li...> > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > -- Developer at SNIC-UPPMAX www.uppmax.uu.se Developer at Dept of Pharm Biosciences www.farmbio.uu.se |
From: Nischay N. <nis...@gm...> - 2013-03-27 12:36:13
|
On Wed, Mar 27, 2013 at 3:15 AM, Samuel Lampa <sam...@gm...>wrote: > Yeah, have seen that I have way too much low level dependencies, > creating brittle code, etc. Bit embarrassing to look at the code now a > few years after :") > > What's the best resource/page for getting one's head around the storage > layer? > http://semantic-mediawiki.org/doc/group__SMWStore.html ? > > Are you interested in any store in particular? http://semantic-mediawiki.org/wiki/SQLStore_update has some information about the SQL store. (Not sure how up to date it is.) More information is supposed to be found in http://semantic-mediawiki.org/wiki/Category:Developer_documentation Last year, we had some nice discussions (that could be used as documentation) in the mailing lists and it would be great if someone could put up a link to it. BR > // Samuel > > On 03/25/2013 06:05 PM, Jeroen De Dauw wrote: > > > > Latest dev code no longer contains the old store. So 1.9 will not > > support it. Your extension ought to use SMWs storage layer so it is > > not dependent on a specific version of some store implementation. > > > > Sent from my HTC one X. > > > > On 25 Mar, 2013 10:06 AM, "Samuel Lampa" <sam...@gm... > > <mailto:sam...@gm...>> wrote: > > > > Ah, found out that I have to set: > > > > $smwgDefaultStore = 'SMWSQLStore2'; > > > > > > Any hints for easiest migration of code that uses SMWSQLStore2 is > > highly > > appreciated though! > > > > (Becoming rusty with SMW stuff :| ) > > > > BR > > // Samuel > > > > On 03/25/2013 02:29 PM, Samuel Lampa wrote: > > > Hi, I was wondering what the support is supposed to be for > > > SMWSQLStore2 in the latest SMW? > > > > > > I have realized that RDFIO [1] is currently using it, which was > > making > > > it non-compatible with SMW 1.9. After updating the inclusion path > of > > > it to th new one [2] I get further, but then I get the following > > > error, indicating that a table is missing: > > > > > > A database query syntax error has occurred. This may indicate a > > bug in > > > the software. The last attempted database query was: > > > > > > |(SQL query hidden)| > > > > > > from within function "|SMWSQLStore2::getSMWPageIDandSort|". > Database > > > returned error "1146: Table 'smw.smw_ids' doesn't exist > > (localhost)". > > > > > > Is this expected, and how can I fix it? > > > > > > Btw, what would be the easiest path for migrating to SMWSQLStore3? > > > > > > BR > > > // Samuel > > > > > > [1]http://www.mediawiki.org/w/index.php?title=Extension:RDFIO > > > [2] includes/storage/compatSQLStore/SMW_SQLStore2.php > > > > > > > > > -- > > Developer at SNIC-UPPMAX www.uppmax.uu.se <http://www.uppmax.uu.se> > > Developer at Dept of Pharm Biosciences www.farmbio.uu.se > > <http://www.farmbio.uu.se> > > > > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_mar > > _______________________________________________ > > Semediawiki-devel mailing list > > Sem...@li... > > <mailto:Sem...@li...> > > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > > > > > -- > Developer at SNIC-UPPMAX www.uppmax.uu.se > Developer at Dept of Pharm Biosciences www.farmbio.uu.se > > > > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ > Semediawiki-devel mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > -- Cheers, Nischay Nahata nischayn22.in |
From: Samuel L. <sam...@gm...> - 2013-04-03 18:58:43
|
On 03/27/2013 01:36 PM, Nischay Nahata wrote: > On Wed, Mar 27, 2013 at 3:15 AM, Samuel Lampa <sam...@gm... > <mailto:sam...@gm...>> wrote: > > Yeah, have seen that I have way too much low level dependencies, > creating brittle code, etc. Bit embarrassing to look at the code now a > few years after :") > > What's the best resource/page for getting one's head around the > storage > layer? > http://semantic-mediawiki.org/doc/group__SMWStore.html ? > > > Are you interested in any store in particular? > http://semantic-mediawiki.org/wiki/SQLStore_update has some > information about the SQL store. (Not sure how up to date it is.) Thanks! If following my current approach where I tried to avoid installing any external (non PHP-based) triplestore, I would re-use the SQL store and just add the extra operations needed to keep the ARC2 SQL based store updated. > More information is supposed to be found in > http://semantic-mediawiki.org/wiki/Category:Developer_documentation Yeah, unfortunately the Storage backend section here is empty: http://semantic-mediawiki.org/wiki/Architecture_guide#Storage_backend > Last year, we had some nice discussions (that could be used as > documentation) in the mailing lists and it would be great if someone > could put up a link to it. Have been trying to google it up ... feel free to share a link, if you have. :) BR // Samuel |
From: Samuel L. <sam...@gm...> - 2013-04-03 18:45:32
|
Hmm ... still have to ask some dumb questions here (since my brain works quite slow most of the time) ... On 03/25/2013 06:05 PM, Jeroen De Dauw wrote: > > Latest dev code no longer contains the old store. So 1.9 will not > support it. Your extension ought to use SMWs storage layer so it is > not dependent on a specific version of some store implementation. > How do I do this? At least I guess I can't avoid instantiating one of the implementing classes, like SMWSQLStore3 (except making my own implementation)? ... or what am I missing? BR // Samuel |
From: Jeroen De D. <jer...@gm...> - 2013-04-03 19:04:21
|
Hey, Right now obtaining the store is typically done by calling smwfGetStore, which returns an instance of SMWStore. In other words, you do not know which store implementation you are actually talking to. smwfGetStore itself is rather evil, but that is another topic altogether and not relevant for you here. Cheers -- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. -- |
From: Samuel L. <sam...@gm...> - 2013-04-03 19:40:49
|
Ah, IC, thx! BR // Samuel On 04/03/2013 09:03 PM, Jeroen De Dauw wrote: > Hey, > > Right now obtaining the store is typically done by calling > smwfGetStore, which returns an instance of SMWStore. In other words, > you do not know which store implementation you are actually talking to. > > smwfGetStore itself is rather evil, but that is another topic > altogether and not relevant for you here. > > Cheers > > -- > Jeroen De Dauw > http://www.bn2vs.com > Don't panic. Don't be evil. > -- -- Developer at SNIC-UPPMAX www.uppmax.uu.se Developer at Dept of Pharm Biosciences www.farmbio.uu.se |