SMW source code structure
From semantic-mediawiki.org
This page documents the amount of source code in SMW. It is part of the Programmer's guide to SMW. Note that there is also an extended API documentation for SMW.
The below counts have been generated with a simple script that discards empty lines and comments for counting lines of code. Numbers in parentheses specify the lines of code that are not part of the SMW localisation (which contains almost 10k LOC that consist of messages). The figures are updated from time to time but may not reflect the most recent SVN version of SMW.
Lines of Code for revision 63367 (SMW 1.5.0):
SemanticMediaWiki: 25178 (14051)
maintenance: 396
| SMW_conceptCache.php: 171
| SMW_dumpRDF.php: 45
| SMW_refreshData.php: 117
| SMW_setup.php: 63
libs: 0
skins: 516
| SMW_sorttable.js: 136
| SMW_tooltip.js: 380
images: 0
languages: 11127
| SMW_Aliases.php: 396
| SMW_Language.php: 88
| SMW_LanguageAr.php: 56
| SMW_LanguageArz.php: 56
| SMW_LanguageDe.php: 57
| SMW_LanguageDe_formal.php: 6
| SMW_LanguageEn.php: 58
| SMW_LanguageEs.php: 56
| SMW_LanguageFr.php: 56
| SMW_LanguageHe.php: 59
| SMW_LanguageIt.php: 57
| SMW_LanguageNl.php: 52
| SMW_LanguageNo.php: 74
| SMW_LanguagePl.php: 56
| SMW_LanguagePt.php: 56
| SMW_LanguageRu.php: 58
| SMW_LanguageSk.php: 52
| SMW_LanguageZh_cn.php: 58
| SMW_LanguageZh_tw.php: 58
| SMW_Magic.php: 95
| SMW_Messages.php: 9623
includes: 11157
| SMW_DV_Bool.php: 106
| SMW_DV_Concept.php: 181
| SMW_DV_Container.php: 49
| SMW_DV_Error.php: 44
| SMW_DV_Import.php: 120
| SMW_DV_Linear.php: 145
| SMW_DV_Number.php: 185
| SMW_DV_Property.php: 256
| SMW_DV_Record.php: 174
| SMW_DV_SimpleWikiPage.php: 27
| SMW_DV_String.php: 100
| SMW_DV_Temperature.php: 97
| SMW_DV_Time.php: 593
| SMW_DV_TypeList.php: 80
| SMW_DV_Types.php: 93
| SMW_DV_URI.php: 202
| SMW_DV_WikiPage.php: 255
| SMW_DataValue.php: 286
| SMW_DataValueFactory.php: 112
| SMW_Factbox.php: 112
| SMW_GlobalFunctions.php: 411
| SMW_Infolink.php: 188
| SMW_Outputs.php: 51
| SMW_ParseData.php: 212
| SMW_ParserExtensions.php: 327
| SMW_QP_Auto.php: 19
| SMW_QP_CSV.php: 79
| SMW_QP_Category.php: 124
| SMW_QP_Embedded.php: 87
| SMW_QP_JSONlink.php: 136
| SMW_QP_List.php: 160
| SMW_QP_RSSlink.php: 192
| SMW_QP_Table.php: 67
| SMW_QueryParser.php: 409
| SMW_QueryPrinter.php: 210
| SMW_QueryProcessor.php: 236
| SMW_Record_Descriptions.php: 80
| SMW_RefreshTab.php: 23
| SMW_SemanticData.php: 141
| SMW_Settings.php: 102
| SMW_SpecialPage.php: 7
articlepages: 415
| SMW_ConceptPage.php: 79
| SMW_OrderedListPage.php: 145
| SMW_PropertyPage.php: 120
| SMW_TypePage.php: 71
storage: 3767
| SMW_Description.php: 494
| SMW_PrintRequest.php: 140
| SMW_Query.php: 109
| SMW_QueryResult.php: 195
| SMW_RAPStore2.php: 146
| SMW_SQLHelpers.php: 220
| SMW_SQLStore2.php: 1477
| SMW_SQLStore2_Queries.php: 718
| SMW_Store.php: 50
| SMW_TestStore.php: 218
export: 423
| SMW_Exp_Data.php: 124
| SMW_Exp_Element.php: 73
| SMW_Exporter.php: 226
jobs: 74
| SMW_RefreshJob.php: 32
| SMW_UpdateJob.php: 42
specials: 1982
Export: 582
| SMW_SpecialOWLExport.php: 582
Statistics: 18
| SMW_SpecialStatistics.php: 18
QueryPages: 272
| SMW_QueryPage.php: 51
| SMW_SpecialProperties.php: 62
| SMW_SpecialTypes.php: 75
| SMW_SpecialUnusedProperties.php: 45
| SMW_SpecialWantedProperties.php: 39
URIResolver: 28
| SMW_SpecialURIResolver.php: 28
AskSpecial: 452
| SMW_SpecialAsk.php: 452
SearchTriple: 516
| SMW_SpecialBrowse.php: 220
| SMW_SpecialPageProperty.php: 85
| SMW_SpecialSearchByProperty.php: 211
SMWAdmin: 114
| SMW_SpecialSMWAdmin.php: 114

