CN105224319B - The method for realizing XBRL instance document previews based on dom4j - Google Patents

The method for realizing XBRL instance document previews based on dom4j Download PDF

Info

Publication number
CN105224319B
CN105224319B CN201510616158.6A CN201510616158A CN105224319B CN 105224319 B CN105224319 B CN 105224319B CN 201510616158 A CN201510616158 A CN 201510616158A CN 105224319 B CN105224319 B CN 105224319B
Authority
CN
China
Prior art keywords
instance document
dom4j
xbrl
instance
realizing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510616158.6A
Other languages
Chinese (zh)
Other versions
CN105224319A (en
Inventor
王德海
李波
许岩龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201510616158.6A priority Critical patent/CN105224319B/en
Publication of CN105224319A publication Critical patent/CN105224319A/en
Application granted granted Critical
Publication of CN105224319B publication Critical patent/CN105224319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The present invention relates to XBRL instance documents to show, in order to provide it is a kind of server end instance document information is converted into the method for data structure that front end browser can be identified and be shown, so that front end shows instance document role.The present invention, which provides, a kind of being converted into server end instance document information the method for data structure that front end browser can be identified and be shown.Specifically, the present invention provides a kind of method for realizing XBRL instance document previews based on dom4j, and this method comprises the following steps.First, the preview example of certain role in instance document is created that by XBRL engines.Secondly, using xStream tools by the model simplification of the Java object complexity of the preview example at the relatively simple Java object of structure.Then, the Java object conversion encapsulation after simplification is formed into the preview structure that instance document front end needs using dom4j.Finally, front end flex is parsed and is shown according to the preview structure that transformed instance document front end needs.The present invention is shown suitable for XBRL instance documents.

Description

The method for realizing XBRL instance document previews based on dom4j
Technical field
The present invention relates to XBRL instance documents to show, more particularly to a kind of to realize XBRL instance document previews based on dom4j Method.
Background technology
Extensible Business Reporting Language be based on internet, cross-platform operation, dedicated for financial report establishment, disclose and The computer language used.Basic to realize the integrated of data and maximally utilize, accounting information exports one, and resources sharing is Accounting standard is combined with computer language in the world, is used for unstructured data, especially financial information exchange is newest Recognised standard and technology.Can be directly user or other software institute by data are unified specifically identify and classify It reads and is further processed, realize a typing, be used for multiple times.
In the instance document link of XBRL technical systems, system uses B/S (browser Browser/ server S erver) Structure, since the instance data of instance document is stored in server end, user needs that example text is checked and edited using browser Shelves, therefore, it is necessary to server end instance document example information is converted into front end browser by certain mode to identify simultaneously And the data structure of display.
Invention content
It server end instance document information is converted into front end browser can identify the object of the present invention is to provide a kind of And the method for the data structure shown.Specifically, the present invention provides a kind of realizing XBRL instance document previews based on dom4j Method, this method comprises the following steps:
A. it is created that some in instance document needs preview role instance by XBRL engines;
B. use xStream tools by the complicated Java object model simplification of examples detailed above at the relatively simple Java of structure Object;
The data that front end needs when C. using dom4j that the Java object conversion encapsulation after simplification is formed instance document preview Structure;
D. front end flex is parsed and is shown according to the transformed instance document structures of dom4j.
Specifically, in step C, the preview structure that the instance document front end needs is XML format file.
Further, further include generating instance document example and storing instance document to MongoDB numbers before step A According in library.
Specifically, instance document example is stored to the specific method in MongoDB databases and is:Pass through configurable timing Same rights management relational database is put in storage by program according to data set organization, and according to configuration frequency into line data set increment more Newly.
Specifically, when needing to instance document increase true value or increase footnote, pass through MongoDB correlations API The instance document example information of preservation is read in whole or in part, it is updated again after modifying.
Specifically, give the correct time when needing to create instance document file, by the related API of MongoDB by example text Shelves example is completely read, and constructs instance document memory model by XBRL engine servers, which, which is created that, reports The instance document file needed
The beneficial effects of the invention are as follows:This hair provide it is a kind of by instance document be converted into front end browser can identify and The data structure of display, since Instance Document data model is complicated, information content is huge, and conversion is cumbersome, therefore by dom4j tools Instance document is converted into the data structure that front end is shown, dom4j is the kit of specialized operations Java object and XML file, It has excellent performance, flexible and convenient to use, front end is shown using flex technologies, and flex shows that tree construction and tableau format bottom are all Based on XML file, dom4j and flex are used cooperatively, and can reach the perfect transition shown from Java object to front end browser, And performance, in tolerance interval, specific performance must rely on data volume size, and processing time is in a linear relationship with data volume.
Specific implementation mode with reference to embodiments is described in further detail technical scheme of the present invention, should note Meaning, embodiment are not intended to limit the invention just for the sake of helping reader to be better understood from the technical concept of the present invention Scope of the claims.
Specific implementation mode
The present invention, which provides, a kind of to be converted into front end browser by server end instance document information and can identify and show Data structure method.Specifically, the present invention provides a kind of method for realizing XBRL instance document previews based on dom4j, should Method includes the following steps.First, it is created that some in instance document needs the role instance of preview by XBRL engines.Its It is secondary, using xStream tools by the complicated Java object model simplification of above-mentioned preview example relatively simple Java pairs at structure As.Then, the Java object conversion encapsulation after simplification is formed into the instance document structure that front end preview needs using dom4j.Most Afterwards, front end flex is parsed and is shown according to transformed instance document structure.
Embodiment
Exemplary description is made to technical scheme of the present invention below.
The offer of this hair is a kind of to be converted into instance document the data structure that front end browser can be identified and be shown, due to Instance Document data model is complicated, and information content is huge, and conversion is cumbersome, therefore before being converted into instance document by dom4j tools The data structure of display is held, dom4j is the kit of specialized operations Java object and XML file, is had excellent performance, using flexible side Just, front end is shown using flex technologies, and flex shows that tree construction and tableau format bottom are all based on XML file, dom4j and Flex is used cooperatively, and can reach the perfect transition shown from Java object to front end browser, and performance is in acceptable model In enclosing.Include the following steps:
1, it is created that some in instance document needs the role instance of preview by XBRL engines;
2, using xStream tools that the model simplification of the Java object complexity of the preview example is relatively easy at structure Java object;
The data that front end needs when the Java object conversion encapsulation after simplification 3, being formed instance document preview using dom4j Structure;The preview structure that instance document front end needs is XML format file.
4, front end flex is parsed and is shown to instance document according to transformed XML format file.
It before the role's preview example for creating instance document, needs first to generate instance document, by generation in the present invention Instance document is stored in MongoDB databases, and to facilitate carry out accessing operation, the specific method is as follows:
1, instance document example is created that by XBRL engine servers.
2, instance document example is transferred to instance document processing server by some communication protocols.
3, the memory instance of instance document is persisted to by instance document processing server by mongoDB correlations API MongoDB databases.
4, when needing to carry out subsequent operation (for example increase true value and increase footnote etc.) to instance document, pass through MongoDB correlations API reads the instance document example information that 3 step of bottom preserves in whole or in part, right again after being modified It is updated operation.
5, give the correct time when needing to create instance document file, by the related API of MongoDB by instance document example It is complete to read, instance document memory model is constructed by XBRL engine servers, engine is created that by the memory model again Report the instance document file of needs.

Claims (6)

1. the method for realizing XBRL instance document previews based on dom4j, which is characterized in that include the following steps:
A. it is created that some in instance document needs the role instance of preview by XBRL engines;
B. use xStream tools by the complicated Java object model simplification of examples detailed above relatively simple Java pairs at structure As;
The data knot that front end needs when C. using dom4j that the Java object conversion encapsulation after simplification is formed instance document preview Structure;
D. front end flex is parsed and is shown according to the transformed instance document structures of dom4j.
2. the method for realizing XBRL instance document previews based on dom4j as described in claim 1, which is characterized in that step C In, the preview structure that the instance document front end needs is XML format file.
3. the method for realizing XBRL instance document previews based on dom4j as claimed in claim 1 or 2, which is characterized in that step Further include generating instance document example and storing instance document into MongoDB databases before A.
4. the method for realizing XBRL instance document previews based on dom4j as claimed in claim 3, instance document example is stored It is to the specific method in MongoDB databases:By configurable timing routine by same rights management relational database according to Data set organization is put in storage, and according to configuration frequency into line data set incremental update.
5. the method for realizing XBRL instance document previews based on dom4j as claimed in claim 4, which is characterized in that work as needs When to instance document increase true value or increase footnote, the instance document example of preservation is believed by MongoDB correlations API Breath is all or part of to be read, and is updated again to it after modifying.
6. the method for realizing XBRL instance document previews based on dom4j as claimed in claim 4, which is characterized in that work as needs It creates instance document file give the correct time, instance document example is completely read by the related API of MongoDB, is passed through XBRL engine servers construct instance document memory model, which is created that the instance document file for reporting needs.
CN201510616158.6A 2015-09-24 2015-09-24 The method for realizing XBRL instance document previews based on dom4j Active CN105224319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510616158.6A CN105224319B (en) 2015-09-24 2015-09-24 The method for realizing XBRL instance document previews based on dom4j

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510616158.6A CN105224319B (en) 2015-09-24 2015-09-24 The method for realizing XBRL instance document previews based on dom4j

Publications (2)

Publication Number Publication Date
CN105224319A CN105224319A (en) 2016-01-06
CN105224319B true CN105224319B (en) 2018-10-02

Family

ID=54993316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510616158.6A Active CN105224319B (en) 2015-09-24 2015-09-24 The method for realizing XBRL instance document previews based on dom4j

Country Status (1)

Country Link
CN (1) CN105224319B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609151A (en) * 2017-09-22 2018-01-19 深圳易嘉恩科技有限公司 The method that XBRL instance documents caching is realized based on Redis
CN110297945B (en) * 2019-07-02 2021-07-30 中国工商银行股份有限公司 Data information processing method and system based on XBRL

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826112A (en) * 2010-05-05 2010-09-08 山东中创软件工程股份有限公司 Method, device and system for storing and reading list data
CN102207975A (en) * 2011-06-24 2011-10-05 天津大学 Method for manufacturing and displaying extensive makeup language (xml) data module based on ietm standard
CN102360367A (en) * 2011-09-29 2012-02-22 广州中浩控制技术有限公司 XBRL (Extensible Business Reporting Language) data search method and search engine
CN103399934A (en) * 2013-08-09 2013-11-20 神州数码(中国)有限公司 Form data transmission and storage method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9047346B2 (en) * 2008-11-11 2015-06-02 Microsoft Technology Licensing, Llc Reporting language filtering and mapping to dimensional concepts

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826112A (en) * 2010-05-05 2010-09-08 山东中创软件工程股份有限公司 Method, device and system for storing and reading list data
CN102207975A (en) * 2011-06-24 2011-10-05 天津大学 Method for manufacturing and displaying extensive makeup language (xml) data module based on ietm standard
CN102360367A (en) * 2011-09-29 2012-02-22 广州中浩控制技术有限公司 XBRL (Extensible Business Reporting Language) data search method and search engine
CN103399934A (en) * 2013-08-09 2013-11-20 神州数码(中国)有限公司 Form data transmission and storage method

Also Published As

Publication number Publication date
CN105224319A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
Mani et al. Semantic data modeling using XML schemas
Corcho et al. Towards a new generation of ontology based data access
US8103705B2 (en) System and method for storing text annotations with associated type information in a structured data store
US8392465B2 (en) Dependency graphs for multiple domains
CN109582647B (en) Unstructured evidence file oriented analysis method and system
US9753974B2 (en) Flexible schema column store
US9075833B2 (en) Generating XML schema from JSON data
US20080208830A1 (en) Automated transformation of structured and unstructured content
US7584414B2 (en) Export to excel
CN103744891A (en) Method and system for data query
AU2011258098A1 (en) Schema contracts for data integration
US10031981B2 (en) Exporting data to web-based applications
CN103729463A (en) Method for implementing full-text retrieval based on Lucene and Solr
CN113515564B (en) J2 EE-based data access method, device, equipment and storage medium
US8656374B2 (en) Processing cobol data record schemas having disparate formats
CN112417225A (en) Joint query method and system for multi-source heterogeneous data
US7640261B2 (en) Apparatus and method for processing data corresponding to multiple COBOL data record schemas
CN105224319B (en) The method for realizing XBRL instance document previews based on dom4j
US9129035B2 (en) Systems, methods, and apparatus for accessing object representations of data sets
CN108874944B (en) XSL language transformation-based heterogeneous data mapping system and method
CN109408577B (en) ORACLE database JSON analysis method, system, device and storable medium
CN105224632A (en) In XBRL technological frame, engine model is converted to the method for page model
CN107643892B (en) Interface processing method, device, storage medium and processor
CN107220327A (en) Data query method and system based on MongoDB, service terminal, memory
US9984136B1 (en) System, method, and program product for lightweight data federation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant