株式銘柄紹介ブログ

主に日本の株式を紹介しています

PythonでEDINETのXBRLを分析する その5「有価証券報告書の表示構造を取得する」

はじめに

前回まででEDINET上のXBRLをダウンロードできるようになったので、今回からXRBLを分析していきます。

EDINET上で公開されているXBRL文書には様々なドキュメントがあるのですが、ここでは有価証券報告書についてみていきます。これはわたしが有報の財務諸表のデータを自動で取得したいと思っているからです。

注意いただきたいのは、わたしはXBRLの仕様をきちんと理解していません。なので「こうやって処理すればデータがとれる」という程度の説明としています。XBRLの仕様からすると誤った内容があるかもしれませんが、ご容赦ください。
 

 
 

関連記事

EDINETのXBRLを分析する大まかな流れを説明しています。

開発環境

  • windows 10 home
  • python 3.7.4
  • K2Editor(テキストエディタ) + コマンドプロンプト

 

使用したpythonの外部ライブラリ

少なくとも以下の外部ライブラリを利用しているのでインストールしていなければpipコマンドでインストールしてください。

  • pysqlite3
  • requests
  • beautifulsoup4
  • lxml

 

有価証券報告書の分析の方針

有価証券報告書の分析の方法として

  1. 有価証券報告書にデータがどんな順番で存在するかを調べる
  2. 各データの値を取得する

といったやり方でやっていこうと考えています。


XBRLのXBRLインスタンスファイルだけを見て、売上や利益などの数値を抜き出すというやり方でも出来なくはないのですが

  • 他の人が既にやっており、インターネット上に情報が沢山ある
  • わたしは財務諸表のデータがすべてほしい

といった理由から、このやり方は採用していません。

表示リンクベースファイルの構造概要

有価証券報告書の構造(どんな要素がどんな順番で存在しているか)は表示リンクベースファイルと呼ばれるファイルに記載されています。


表示リンクベースファイルはダウンロードしたXBRLの中にあるファイル名が「jpcrp030000-asr-001_E31037-000_2021-12-31_01_2022-03-29_pre.xml」のように「pre.xml」で終わるファイルのことです。


表示リンクベースファイルのおおよその構造は以下の通りです。

<roleRef A>・・・有報に存在する大項目
<roleRef B>
・・・
<presentationLink A> ・・・Aという大項目の構造を定義
  <loc elm1> ・・・elm1が存在することを定義
  <loc elm2>
  <presentationArc>・・・ elm1とelm2の親子関係、順番を定義
<\presentationLink>

<presentationLink B>
  <loc elm3>
  <loc elm4>
  <presentationArc>
<\presentationLink>

 
先頭に有価証券報告書に存在する大項目が並んでいて、その大項目内の構造がその下に続いています。大項目内の構造はlocとpresentationArcによって要素の存在と親子関係、順番が定義されています。正確ではないかもしれませんが、大体こんな感じになっています。

roleRef要素の説明

roleRef要素は有価証券報告書に存在する大項目を表していると思ったらよいです(超大雑把に言って)。以下はrole要素の具体例です。一つだけ抜粋しています。

<link:roleRef xlink:type="simple" 
  xlink:href="http://disclosure.edinet-fsa.go.jp/taxonomy/jpcrp/2020-11-01/jpcrp_rt_2020-11-01.xsd#rol_BusinessResultsOfGroup" 
  roleURI="http://disclosure.edinet-fsa.go.jp/role/jpcrp/rol_BusinessResultsOfGroup" />
・・・

 
roleURI属性が大項目の完全名称、href属性が大項目の定義が書かれたスキーマファイルおよびid属性を表しています。


一番先頭のroleRef要素は完全名称が「http://disclosure.edinet-fsa.go.jp/role/jpcrp/rol_BusinessResultsOfGroup」、スキーマファイル「http://disclosure.edinet-fsa.go.jp/taxonomy/jpcrp/2020-11-01/jpcrp_rt_2020-11-01.xsd」のidが「rol_BusinessResultsOfGroup」となる要素に定義が書かれているとわかります。


rol_BusinessResultsOfGroupの定義です。スキマーファイルを調べて抜粋しています。

<link:roleType roleURI="http://disclosure.edinet-fsa.go.jp/role/jpcrp/rol_BusinessResultsOfGroup" id="rol_BusinessResultsOfGroup">
    <link:definition>210000 連結経営指標等</link:definition>
    <link:usedOn>link:presentationLink</link:usedOn>
    <link:usedOn>link:calculationLink</link:usedOn>
    <link:usedOn>link:definitionLink</link:usedOn>
    <link:usedOn>link:footnoteLink</link:usedOn>
</link:roleType


rol_BusinessResultsOfGroupは連結経営指標等という大項目であることがわかりました。


全てのroleRef要素に対してスキーマファイル中の定義を取得すると以下のようになります。

010300 開示府令 第三号様式 有価証券報告書(rol_CabinetOfficeOrdinanceOnDisclosureOfCorporateInformationEtcFormNo3AnnualSecuritiesReport)
020000 表紙(rol_CoverPage)
210000 連結経営指標等(rol_BusinessResultsOfGroup)
211000 提出会社の経営指標等(rol_BusinessResultsOfReportingCompany)
212000a 従業員の状況(rol_InformationAboutEmployees-01)
212000b 従業員の状況(rol_InformationAboutEmployees-02)
213000 研究開発活動(rol_ResearchAndDevelopmentActivities)
214000 設備投資等の概要(rol_OverviewOfCapitalExpendituresEtc)
220000 発行済株式、株式の総数等(rol_IssuedSharesTotalNumberOfSharesEtc)
221000 所有者別状況(rol_ShareholdingByShareholderCategory)
222000a 大株主の状況(rol_MajorShareholders-01)
223000 発行済株式、議決権の状況(rol_IssuedSharesVotingRights)
224000 自己株式等(rol_TreasurySharesEtc)
225000 配当政策(rol_DividendPolicy)
230000a 役員の状況(rol_InformationAboutOfficers-01)
230000b 役員の状況(rol_InformationAboutOfficers-02)
230000c 役員の状況(rol_InformationAboutOfficers-03)
233000 監査の状況(rol_Audits)
234000a 役員の報酬等(rol_RemunerationForDirectorsAndOtherOfficers-01)
235000a 株式の保有状況(rol_Shareholdings-01)
235000b 株式の保有状況(rol_Shareholdings-02)
250000 経理の状況(rol_FinancialInformation)
310010 連結貸借対照表(rol_ConsolidatedBalanceSheet)
310040 貸借対照表(rol_BalanceSheet)
321010 連結損益(及び包括利益)計算書(rol_ConsolidatedStatementOfIncome)
321040 損益計算書(rol_StatementOfIncome)
322010 連結包括利益計算書(rol_ConsolidatedStatementOfComprehensiveIncome)
330010 連結株主資本等変動計算書(rol_ConsolidatedStatementOfChangesInEquity)
330040 株主資本等変動計算書(rol_StatementOfChangesInEquity)
342010 連結キャッシュ・フロー計算書 間接法(rol_ConsolidatedStatementOfCashFlows-indirect)
400010 連結財務諸表作成のための基本となる重要な事項(rol_NotesSignificantAccountingPoliciesForPreparationOfConsolidatedFinancialStatements)
401010 連結貸借対照表関係(rol_NotesConsolidatedBalanceSheet)
401040 貸借対照表関係(rol_NotesBalanceSheet)
402110 連結損益計算書関係(rol_NotesConsolidatedStatementOfIncome)
402140 損益計算書関係(rol_NotesStatementOfIncome)
402210 連結包括利益計算書関係(rol_NotesConsolidatedStatementOfComprehensiveIncome)
403010 連結株主資本等変動計算書関係(rol_NotesConsolidatedStatementOfChangesInEquity)
404010 連結キャッシュ・フロー計算書関係(rol_NotesConsolidatedStatementOfCashFlows)
410010a セグメント情報等、連結財務諸表(報告セグメントの概要等)(rol_NotesSegmentInformationEtcConsolidatedFinancialStatements-01)
410010c セグメント情報等、連結財務諸表(差異調整に関する事項、関連情報等)(rol_NotesSegmentInformationEtcConsolidatedFinancialStatements-03)
410010i セグメント情報等、連結財務諸表(負ののれん発生益)(rol_NotesSegmentInformationEtcConsolidatedFinancialStatements-09)


このように表示リンクベースファイルのroleRef要素を調べることで有価証券報告書の大項目として何があるかがわかります。順序は適当にソートしてあります。

presentationLink要素の説明

presentationLink要素(と子要素であるloc要素、presentationArc要素)は有価証券報告書の大項目の構造を定義します。正確にはEDINET上にある有価証券報告書のひな型を拡張するのですが、話がややこしくなるので後で説明します。


presentationLink要素がどの大項目の構造なのかを表し、その子要素であるloc要素とpresentationArc要素が構造を定義しています。


以下はpresentationLink要素の具体例です。一つだけ抜粋しています。

<link:presentationLink 
  xlink:type="extended" 
  xlink:role="http://disclosure.edinet-fsa.go.jp/role/jppfs/rol_ConsolidatedBalanceSheet">

(以下に子要素が続く)
・・・
</link:presentationLink>

 
role属性がどの大項目の構造であるかを表しています。上記の場合「http://disclosure.edinet-fsa.go.jp/role/jppfs/rol_ConsolidatedBalanceSheet」であるため、連結貸借対照表の構造であるとわかります。



以下はloc要素とpresentationArc要素(上記のpresentationLink要素の子要素)です。最低限の数だけ抜粋しています。

<link:loc xlink:type="locator" 
  xlink:href="http://disclosure.edinet-fsa.go.jp/taxonomy/jppfs/2020-11-01/jppfs_cor_2020-11-01.xsd#jppfs_cor_CurrentAssetsAbstract" 
  xlink:label="jppfs_cor_CurrentAssetsAbstract" />

<link:loc xlink:type="locator" 
  xlink:href="http://disclosure.edinet-fsa.go.jp/taxonomy/jppfs/2020-11-01/jppfs_cor_2020-11-01.xsd#jppfs_cor_CashAndDeposits" 
  xlink:label="jppfs_cor_CashAndDeposits" />

<link:presentationArc xlink:type="arc" 
  xlink:from="jppfs_cor_CurrentAssetsAbstract" 
  xlink:to="jppfs_cor_CashAndDeposits" 
  xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" 
  order="1" />


loc要素が大項目に存在する項目を定義しています。label属性は表示リンクベースファイル内での項目名称、href属性は項目の定義が存在するスキーマファイルおよび要素をそれぞれ定義しています。

上記の例でいうと、jppfs_cor_CurrentAssetsAbstractという名前の項目が存在し、jppfs_cor_CurrentAssetsAbstractの定義はスキーマファイル「http://disclosure.edinet-fsa.go.jp/taxonomy/jppfs/2020-11-01/jppfs_cor_2020-11-01.xsd」のidが「jppfs_cor_CurrentAssetsAbstract」となる要素に書かれているとわかります。


presentationArc要素が項目間の関係を定義しています。arcrole属性が「http://www.xbrl.org/2003/arcrole/parent-child」であるため、関係が親子関係であるとわかります。from属性が親、to属性が子をそれぞれ定義しています。order属性は子が何番目の子なのかを定義しています。

上記の例でいうと、jppfs_cor_CurrentAssetsAbstractの1番目の子供がjppfs_cor_CashAndDepositsであるとわかります。


また、presentationArc要素には以下のようにpreferredLabel属性が存在する場合があります。

<link:presentationArc xlink:type="arc" 
  xlink:from="jppfs_cor_ConsolidatedBalanceSheetHeading" 
  xlink:to="jppfs_cor_BalanceSheetTable" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" 
  preferredLabel="http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label" 
  order="1" />

 
preferredLabel属性は項目の日本語名称を取得する際に用いられます。なぜこんなものが存在するかといえば、同じ項目に対応する日本語名称が複数存在するからです。例えば損益計算書は連結では連結損益計算書、単体では損益計算書という日本語名称がつけられています。また、preferredLabel属性は子項目に対して適応されます。

上記の例だと、jppfs_cor_BalanceSheetTableの日本語名称は連結のものを使うとわかります。


注意しなくてはならないのは、preferredLabel属性は

  1. 自身に設定されていれば自身の値
  2. 自身に設定されていなければ親の値(この直接の親だけでなく、更に親という風に再帰的に見ていく必要がある)
  3. 親に設定されていなければ標準ラベル

というような順位で各項目で使うものを決定します。


したがって、presentationLink要素およびloc要素、presentationArc要素から木構造を構築後に改めてpreferredLabel属性を決定する必要があります。

有価証券報告書の構造を読み込む

表示リンクベースファイル中のpresentationLink要素および子要素を順序付きの木構造に読み込みます。

presentationLink要素内の構造は目次項目(href属性のidがHeadingで終わる項目)をルートとした単一の木構造として読み込まなければならない点に注意が必要です。かなりの頻度でpresentationLink要素内に木構造が複数存在する場合があります。

例えば以下のようなケースです。

 rol_ConsolidatedBalanceSheet
     jppfs_cor_ConsolidatedBalanceSheetHeading
         jppfs_cor_BalanceSheetTable
         jppfs_cor_BalanceSheetLineItems
     jppfs_cor_BalanceSheetTable
         jppfs_cor_ConsolidatedOrNonConsolidatedAxis
     jppfs_cor_ConsolidatedOrNonConsolidatedAxis
         jppfs_cor_ConsolidatedMember
     jppfs_cor_BalanceSheetLineItems
         jppfs_cor_AssetsAbstract
         jppfs_cor_LiabilitiesAbstract
         jppfs_cor_NetAssetsAbstract
         jppfs_cor_LiabilitiesAndNetAssets
     jppfs_cor_AssetsAbstract
         jppfs_cor_CurrentAssetsAbstract
         jppfs_cor_NoncurrentAssetsAbstract
         jppfs_cor_Assets
     jppfs_cor_CurrentAssetsAbstract
         jppfs_cor_CashAndDeposits
         jppfs_cor_NotesReceivableAccountsReceivableFromCompletedConstructionContractsAndOtherCNS
         jppfs_cor_ElectronicallyRecordedMonetaryClaimsOperatingCA
         jppfs_cor_ShortTermInvestmentSecurities
         jppfs_cor_CostsOnUncompletedConstructionContractsCNS
         jppfs_cor_OtherInventories
         jppfs_cor_OtherCA
         jppfs_cor_AllowanceForDoubtfulAccountsCA
         jppfs_cor_CurrentAssets

 
このようなケースの場合、目次項目がルートとなるように木構造を生成しなければなりません。同じidの項目が複数存在しているため、それをつなげて一つの木構造を生成します。label属性ではなくhref属性中のidを使わなければなりません。



ソースコードはここに公開しています。


実行結果(連結貸借対照表の結果のみを抜粋)

 rol_ConsolidatedBalanceSheet    23  th : label  None
   jppfs_cor_ConsolidatedBalanceSheetHeading    1.0  th : label  None
     jppfs_cor_BalanceSheetTable    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
       jppfs_cor_ConsolidatedOrNonConsolidatedAxis    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
         jppfs_cor_ConsolidatedMember    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
     jppfs_cor_BalanceSheetLineItems    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
       jppfs_cor_AssetsAbstract    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
         jppfs_cor_CurrentAssetsAbstract    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_CashAndDeposits    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_NotesAndAccountsReceivableTrade    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_MerchandiseAndFinishedGoods    3.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_WorkInProcess    4.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_RawMaterialsAndSupplies    5.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_OtherCA    6.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_AllowanceForDoubtfulAccountsCA    7.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_CurrentAssets    8.0  th : label  http://www.xbrl.org/2003/role/totalLabel
         jppfs_cor_NoncurrentAssetsAbstract    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_PropertyPlantAndEquipmentAbstract    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jppfs_cor_BuildingsAndStructures    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
               jppfs_cor_AccumulatedDepreciationBuildingsAndStructures    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
               jppfs_cor_BuildingsAndStructuresNet    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jppfs_cor_MachineryEquipmentAndVehicles    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
               jppfs_cor_AccumulatedDepreciationMachineryEquipmentAndVehicles    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
               jppfs_cor_MachineryEquipmentAndVehiclesNet    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jppfs_cor_ToolsFurnitureAndFixtures    3.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
               jppfs_cor_AccumulatedDepreciationToolsFurnitureAndFixtures    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
               jppfs_cor_ToolsFurnitureAndFixturesNet    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jpcrp030000-asr_E31037-000_Mold    4.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
               jpcrp030000-asr_E31037-000_AccumulatedDepreciationMold    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
               jpcrp030000-asr_E31037-000_MoldNet    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jppfs_cor_Land    5.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jppfs_cor_ConstructionInProgress    6.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jppfs_cor_PropertyPlantAndEquipment    7.0  th : label  http://www.xbrl.org/2003/role/totalLabel
           jppfs_cor_IntangibleAssets    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_InvestmentsAndOtherAssetsAbstract    3.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jppfs_cor_InvestmentSecurities    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jppfs_cor_DeferredTaxAssets    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jppfs_cor_OtherIOA    3.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jppfs_cor_AllowanceForDoubtfulAccountsIOAByGroup    4.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
             jppfs_cor_InvestmentsAndOtherAssets    5.0  th : label  http://www.xbrl.org/2003/role/totalLabel
           jppfs_cor_NoncurrentAssets    4.0  th : label  http://www.xbrl.org/2003/role/totalLabel
         jppfs_cor_Assets    3.0  th : label  http://www.xbrl.org/2003/role/totalLabel
       jppfs_cor_LiabilitiesAbstract    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
         jppfs_cor_CurrentLiabilitiesAbstract    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_NotesAndAccountsPayableTrade    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_ElectronicallyRecordedObligationsOperatingCL    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_CurrentPortionOfLongTermLoansPayable    3.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_IncomeTaxesPayable    4.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_OtherCL    5.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_CurrentLiabilities    6.0  th : label  http://www.xbrl.org/2003/role/totalLabel
         jppfs_cor_NoncurrentLiabilitiesAbstract    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_LongTermLoansPayable    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_NetDefinedBenefitLiability    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_AssetRetirementObligationsNCL    3.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_NoncurrentLiabilities    4.0  th : label  http://www.xbrl.org/2003/role/totalLabel
         jppfs_cor_Liabilities    3.0  th : label  http://www.xbrl.org/2003/role/totalLabel
       jppfs_cor_NetAssetsAbstract    3.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
         jppfs_cor_ShareholdersEquityAbstract    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_CapitalStock    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_CapitalSurplus    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_RetainedEarnings    3.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_TreasuryStock    4.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_ShareholdersEquity    5.0  th : label  http://www.xbrl.org/2003/role/totalLabel
         jppfs_cor_ValuationAndTranslationAdjustmentsAbstract    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_ValuationDifferenceOnAvailableForSaleSecurities    1.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_ForeignCurrencyTranslationAdjustment    2.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_RemeasurementsOfDefinedBenefitPlans    3.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
           jppfs_cor_ValuationAndTranslationAdjustments    4.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/totalLabel
         jppfs_cor_SubscriptionRightsToShares    3.0  th : label  http://disclosure.edinet-fsa.go.jp/jppfs/Consolidated/role/label
         jppfs_cor_NetAssets    4.0  th : label  http://www.xbrl.org/2003/role/totalLabel
       jppfs_cor_LiabilitiesAndNetAssets    4.0  th : label  http://www.xbrl.org/2003/role/totalLabel

 

各項目の表示リンクベースファイル上での名称(label属性)、順番、親子関係、優先ラベルがすべて取得できています。これだけできていれば有価証券報告書の表示構造がわかったといえそうです。
 

 

おわりに

XBRLの表示リンクベースファイルから有価証券報告書の表示構造を取得することが出来ました。これに加えて

  1. 項目が何なのか(数値なのか文書なのか、タイトル項目なのか)
  2. 項目の日本語名称
  3. 項目の値(あるいは文書データ)

がわかれば、有価証券報告書の欲しい情報を入手できそうです。


次回は項目の定義が記載されたスキーマファイルを調べて、各項目が何なのかを調査します。

以下は次回の記事です。
www.quwechan.com



今回はここまでです。