简体   繁体   English

如何结合使用 Arelle 的 webservice api 生成的事实、事实表和预输出视图

[英]How to combine facts , factTable and pre output views generated using Arelle's webservice api

I have started exploring Arelle for XBRL parsing.我已经开始探索 Arelle 的 XBRL 解析。 I am calling Arelle's webservice Api through java to get the various views/outputs it can generate like facts, factTable, pre etc.我通过 java 调用 Arelle 的 webservice Api 来获取它可以生成的各种视图/输出,如事实、事实表、预等。

In the final output that I want I need all fields from facts file and few details from the pre file.在我想要的最终输出中,我需要事实文件中的所有字段和预文件中的一些细节。 I have written my Java code to do this, but I am stuck because I have no idea how to navigate from facts to pre.我已经编写了我的 Java 代码来做到这一点,但我被卡住了,因为我不知道如何从事实导航到预先。 How can I combine these outputs?如何组合这些输出? How are these views related, on what attributes ?这些观点是如何相关的,关于什么属性?

Facts are related to presentation by means of the concept name (QName from an XML perspective, SQName from an Open Information Model perspective), like us-gaap:Assets .事实通过概念名称(从XML角度来看 QName,从开放信息模型角度来看 SQName)与表示相关,例如us-gaap:Assets

The facts endpoint is a flat list of facts each having a concept name, while the pre endpoint organizes concepts, identified by their names, in a hierarchy. facts端点是一个平面的事实列表,每个事实都有一个概念名称,而pre端点将概念组织在层次结构中,由它们的名称标识。

The following drawing illustrates this mapping using csv as output.下图说明了使用csv作为输出的这种映射。 In JSON , for both facts and pre , the concept names are in a name field.JSON 中,对于factpre ,概念名称都在name字段中。 In XML , they are in a name attribute.XML 中,它们位于name属性中。 With Java, this requires parsing XML or JSON to build the appropriate objects and take it from there.对于 Java,这需要解析XMLJSON以构建适当的对象并从那里获取它。

(This example was taken from this SEC filing ) (这个例子取自美国证券交易委员会的文件

将演示文稿映射到事实列表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM