From: Yaron K. <ya...@gm...> - 2009-09-04 15:25:46
|
Wow, that's some old documentation you found! :) It should probably be either deleted, or deprecated, or something. In any case, yes, the database structure has changed; but instead of querying the database tables directly, you should use SMW's functions. To get the names of the properties on a page, you could call something like: $data = smwfGetStore()->getSemanticData($title); $properties = $data->getProperties(); foreach ($properties as $property) { $prop_name = $property->getLongHTMLText(); } By the way, questions like this should really get sent to the semediawiki-devel list. -Yaron On Thu, Sep 3, 2009 at 6:09 AM, Timo Taglieber <ma...@ti...>wrote: > Hi, > > I'm writing an extension for Mediawiki that also involves finding all > SMW Properties set on a page. I only need the properties' names, not > their values. > I tried consulting this page: > http://semantic-mediawiki.org/wiki/Semantic_MediaWiki_database_tables > but somehow the tables in my local Mediawiki installation (MW 1.15.0, > SMW 1.4.2) have different names: > > smw_atts2, > smw_conc2, > smw_conccache, > smw_ids (in this table I see all the properties entered for several > pages, I just don't know which specific pages they're on), > smw_inst2, > smw_redi2, > smw_rels2, > smw_spec2, > smw_subs2, > smw_text2 > > Any ideas? > > Regards, > > Timo Taglieber > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |