SMW source code structure

From semantic-mediawiki.org

Jump to: navigation, search

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 67086:

SemanticMediaWiki: 26863 (15335)
     | SMW_Settings.php: 101
     | SemanticMediaWiki.php: 2
  maintenance: 396
     | SMW_conceptCache.php: 171
     | SMW_dumpRDF.php: 45
     | SMW_refreshData.php: 117
     | SMW_setup.php: 63
  libs: 470
     | jquery-1.4.2.min.js: 470
  skins: 518
     | SMW_sorttable.js: 136
     | SMW_tooltip.js: 382
    images: 0
  languages: 11528
     | SMW_Aliases.php: 400
     | SMW_Language.php: 92
     | 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: 66
     | 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: 10024
  includes: 11830
     | 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: 151
     | SMW_DV_Number.php: 191
     | 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: 594
     | SMW_DV_TypeList.php: 80
     | SMW_DV_Types.php: 93
     | SMW_DV_URI.php: 202
     | SMW_DV_WikiPage.php: 255
     | SMW_DataValue.php: 272
     | SMW_DataValueFactory.php: 112
     | SMW_Factbox.php: 112
     | SMW_GlobalFunctions.php: 133
     | SMW_Infolink.php: 188
     | SMW_Outputs.php: 51
     | SMW_ParseData.php: 212
     | SMW_ParserExtensions.php: 381
     | SMW_QP_Auto.php: 19
     | SMW_QP_CSV.php: 79
     | SMW_QP_Category.php: 125
     | SMW_QP_Embedded.php: 87
     | SMW_QP_JSONlink.php: 136
     | SMW_QP_List.php: 161
     | SMW_QP_RSSlink.php: 192
     | SMW_QP_Table.php: 67
     | SMW_QueryParser.php: 409
     | SMW_QueryPrinter.php: 210
     | SMW_QueryProcessor.php: 239
     | SMW_Record_Descriptions.php: 80
     | SMW_RefreshTab.php: 23
     | SMW_SemanticData.php: 141
     | SMW_Settings.php: 2
     | SMW_Setup.php: 279
     | SMW_SetupLight.php: 193
    articlepages: 415
     | SMW_ConceptPage.php: 79
     | SMW_OrderedListPage.php: 145
     | SMW_PropertyPage.php: 120
     | SMW_TypePage.php: 71
    storage: 4296
     | SMW_Description.php: 495
     | SMW_PrintRequest.php: 140
     | SMW_Query.php: 109
     | SMW_QueryResult.php: 184
     | SMW_RAPStore2.php: 146
     | SMW_SQLHelpers.php: 243
     | SMW_SQLStore2.php: 1494
     | SMW_SQLStore2Table.php: 18
     | SMW_SQLStore2_Queries.php: 731
     | SMW_SQLStoreLight.php: 473
     | SMW_Store.php: 50
     | SMW_TestStore.php: 213
    export: 422
     | SMW_Exp_Data.php: 124
     | SMW_Exp_Element.php: 73
     | SMW_Exporter.php: 225
    jobs: 74
     | SMW_RefreshJob.php: 32
     | SMW_UpdateJob.php: 42
  specials: 2018
    Export: 579
     | SMW_SpecialOWLExport.php: 579
    Statistics: 28
     | SMW_SpecialStatistics.php: 28
    QueryPages: 304
     | SMW_QueryPage.php: 51
     | SMW_SpecialProperties.php: 70
     | SMW_SpecialTypes.php: 83
     | SMW_SpecialUnusedProperties.php: 53
     | SMW_SpecialWantedProperties.php: 47
    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: 111
     | SMW_SpecialSMWAdmin.php: 111

Personal tools