CN108073418A - A kind of page assembly based on JSON specifications defines method - Google Patents
A kind of page assembly based on JSON specifications defines method Download PDFInfo
- Publication number
- CN108073418A CN108073418A CN201711478088.8A CN201711478088A CN108073418A CN 108073418 A CN108073418 A CN 108073418A CN 201711478088 A CN201711478088 A CN 201711478088A CN 108073418 A CN108073418 A CN 108073418A
- Authority
- CN
- China
- Prior art keywords
- page
- block
- json
- attribute
- data
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/445—Exploiting fine grain parallelism, i.e. parallelism at instruction level
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Document Processing Apparatus (AREA)
Abstract
The present invention relates to a kind of page assemblies based on JSON specifications to define method, and page data structure is defined and verified using JSON data structure storages page structure and page data, and using JSON Schema, ensures the specification and uniformity of data definition.Compared with prior art, the present invention carries out page definition using JSON data formats, the advantages that can carrying out the more fine-grained control management of the page, meet the Operational requirements of various dimensions.
Description
Technical field
The present invention relates to a kind of page assemblies to define method, more particularly, to a kind of page assembly based on JSON specifications
Change definition method.
Background technology
In CMS Content Management Systems, in order to meet the needs of enterprise continues to develop variation, Page Template and self-defined skill
Art is infrastructure technologies in CMS system.The technology can cause user to change according to demand, come in time adjust page structure and
Pattern meets Operational requirements.
Currently for Page Template and self-defined technology, there are following several technologies to realize.
1) technology based on HTML is realized.The technology does different degrees of extension for HTML specifications based on HTML
And encapsulation, to meet functional requirement.The shortcomings that technology is realized is that the page can run the bad control of granularity, the page data of output
It is poor to quote row.
2) technology based on mould plate technique is realized.The technology based on the mould plate techniques such as FreeMarker, Velocity,
It is encapsulated to carry out the definition of the page.The shortcomings that technology is realized is that the mould plate techniques adaptability such as FreeMarker is limited, the page
Modularization function deficiency, it is impossible to meet the complete self-defined requirement of the page, while ease for use is poor.
3) realized based on customized JSON.The data that the technology is defined using the JSON data formats on internet as the page
Construction standard.The technology realize the shortcomings that be due to each self-defined JSON data formats there is no the specification of standard carry out constraint and
Verification, it is impossible to the integrality and uniformity of strict guarantee data.
It is either realized using which kind of technology, is inherently the self-defined of the page to be solved, to meet controlled particle size fortune
Battalion.
The content of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide one kind is based on JSON specifications
Page assembly define method.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of page assembly based on JSON specifications defines method, using JSON data structure storages page structure and page
Face data, and page data structure is defined and is verified using JSON Schema, ensure the specification of data definition with it is consistent
Property.
Preferably, the page structure includes Page Name and block, is defined with JSON data formats,
Form defines specific as follows:
Wherein:
Title is Page Name;
The block-identified symbols of pageBlocks, wherein can define one or more block.
Preferably, the block is the component of page structure, is defined with JSON data formats, specific lattice
Formula is defined as follows:
Wherein:
Block name is the character by number or monogram, is uniquely named in page;
Title describes title for block, and value is arranged as required to;
Type is block type, wherein being traditionally arranged to be " object ";
options:The optional attribute of block, " collapsed " currently supported;
properties:Block attributes, block attributes use " attribute-name ":{ } defines, can set multiple attributes.
Preferably, the block attributes are the components of block, are defined with JSON data formats, form is fixed
Justice is as follows:
Wherein:
Attribute-name is the character by number or monogram, is uniquely named in page;
Title is attribute description title, and value is arranged as required to;
Type is attribute type, and property value value is corresponding component type;
Options is the optional attribute of attribute, " required " currently supported.
Preferably, it the method achieve and arbitrary html tag and tag attribute datas in the page be defined, realize simultaneously
The management and operation of most fine granularity object in the page.
Preferably, this method is based on arbitrary fine-grained page elements definition, forms reusable atom level assembly, and energy
Enough combinations based on atom level assembly, form new content components, realize the multiplexing of operation ability and experience, promote operation effect
Rate.
Compared with prior art, the present invention has the following advantages:
1) JSON is internet standard specification, in internet extensive use, technology maturation;
2) JSON has a wide range of application, convenient for the data exchange in system and outside system;
3) page definition is carried out using JSON data formats, the more fine-grained control management of the page can be carried out, met
The Operational requirements of various dimensions;
4) page definition and page data are in itself all using JSON forms, technical standard unification;
5) JSON Schema specifications are followed, JSON data can be constrained and verified, ensure the specification of data definition
Property and uniformity.
Description of the drawings
Fig. 1 is the page assembly definition data structure relational graph of the present invention;
Fig. 2 is the Page Template definition process flow diagram of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is the part of the embodiment rather than whole embodiments of the present invention.Based on this hair
Embodiment in bright, the every other reality that those of ordinary skill in the art are obtained on the premise of creative work is not made
Example is applied, should all belong to the scope of protection of the invention.
A kind of page assembly based on JSON specifications defines method, using JSON data structure storages page structure and page
Face data, and page data structure is defined and is verified using JSON Schema, ensure the specification of data definition with it is consistent
Property.
According to operation level, the page is made of fine-grained units such as block, sub-block, operation positions.Operation position is minimum
Operation block, be made of template-setup, template is defined by the component that JSON is expressed.
It is specifically defined and is described as follows:
√ page structures define
The page is Page Name and block, is defined with JSON data formats.
Form is defined as follows:
Wherein:
Title:It is Page Name;
pageBlocks:Block-identified symbol, wherein one or more blocks can be defined;
√ block structures define
Block is the chief component of the page, is defined with JSON data formats.
Form is defined as follows:
Wherein:
Block name:By number or the character of monogram, uniquely named in page, such as A4Gad;
title:Block describes title, and value is arranged as required to;
type:Block type, wherein being traditionally arranged to be " object ";
options:The optional attribute of block, " collapsed " currently supported;
properties:Block attributes, block attributes use " attribute-name ":{ } defines, can set multiple attributes;
√ block attributes structure defines
Block attributes are the components of block, are defined with JSON data formats.
Form is defined as follows:
Wherein:
Attribute-name:By number or the character of monogram, uniquely named in page, such as blockTitle;
title:Attribute description title, value are arranged as required to;
type:Attribute type, property value value are corresponding component type, such as TTextDef;
options:The optional attribute of attribute, " required " currently supported;
A kind of page assembly based on JSON specifications defines method, break through tradition CMS website-column-page it is interior
Hold management structure, realize and arbitrary html tag and tag attribute datas in the page are defined, realize most fine granularity pair in the page
The management and operation of elephant;It is defined based on arbitrary fine-grained page elements, forms reusable atom level assembly, and can be based on
The combination of atom level assembly forms new content components, realizes the multiplexing of operation ability and experience, promotes efficiency of operation.
Fig. 1 show page assembly definition data structure relation of the present invention.
According to operation level, the page is made of fine-grained units such as block, sub-block, operation positions.Operation position is minimum
Operation block, be made of template-setup, template is defined by the component that JSON is expressed.
As shown in Fig. 2, the present invention realizes standard set for the page assembly page definition based on JSON specifications
Operation flow.Idiographic flow is described as follows:
1) page planning is carried out;
2) page block divides;
3) page block is set, and carries out block definition, block is set, block puts mark;
4) when block defines, can component be set according to actual Operational requirements;
5) page preview is carried out;
6) page definition is completed.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain subject to.
Claims (6)
1. a kind of page assembly based on JSON specifications defines method, which is characterized in that using JSON data structure storage pages
Face structure and page data, and page data structure is defined and verified using JSON Schema, ensure data definition
Specification and uniformity.
2. according to the method described in claim 1, it is characterized in that, the page structure includes Page Name and block, use
JSON data formats are defined,
Form defines specific as follows:
Wherein:
Title is Page Name;
The block-identified symbols of pageBlocks, wherein can define one or more block.
3. according to the method described in claim 2, it is characterized in that, the block is the component of page structure, use
JSON data formats are defined, and specific form is defined as follows:
Wherein:
Block name is the character by number or monogram, is uniquely named in page;
Title describes title for block, and value is arranged as required to;
Type is block type, wherein being traditionally arranged to be " object ";
options:The optional attribute of block, " collapsed " currently supported;
properties:Block attributes, block attributes use " attribute-name ":{ } defines, can set multiple attributes.
4. according to the method described in claim 3, it is characterized in that, the block attributes are the components of block, use
JSON data formats are defined, and form is defined as follows:
Wherein:
Attribute-name is the character by number or monogram, is uniquely named in page;
Title is attribute description title, and value is arranged as required to;
Type is attribute type, and property value value is corresponding component type;
Options is the optional attribute of attribute, " required " currently supported.
5. it according to the method described in claim 1, it is characterized in that, the method achieve to arbitrary htmltag and tag in the page
Attribute data is defined, while realizes the management and operation of most fine granularity object in the page.
6. according to the method described in claim 1, it is characterized in that, this method is based on arbitrary fine-grained page elements definition,
Reusable atom level assembly is formed, and can new content components be formed based on the combination of atom level assembly, realizes operation energy
The multiplexing of power and experience promotes efficiency of operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711478088.8A CN108073418A (en) | 2017-12-29 | 2017-12-29 | A kind of page assembly based on JSON specifications defines method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711478088.8A CN108073418A (en) | 2017-12-29 | 2017-12-29 | A kind of page assembly based on JSON specifications defines method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108073418A true CN108073418A (en) | 2018-05-25 |
Family
ID=62156310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711478088.8A Pending CN108073418A (en) | 2017-12-29 | 2017-12-29 | A kind of page assembly based on JSON specifications defines method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108073418A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101833556A (en) * | 2009-03-12 | 2010-09-15 | 英业达股份有限公司 | File content management system and method thereof |
CN104426896A (en) * | 2013-09-10 | 2015-03-18 | 腾讯科技(北京)有限公司 | Method and device for producing topic pages |
CN104866509A (en) * | 2014-02-26 | 2015-08-26 | 阿里巴巴集团控股有限公司 | Page element positioning method and device |
CN105786505A (en) * | 2016-02-26 | 2016-07-20 | 上海全成通信技术有限公司 | Json based complex web page component self-defining method and device |
CN106599296A (en) * | 2016-12-28 | 2017-04-26 | 北京微影时代科技有限公司 | Method and system for acquiring page data |
CN107357817A (en) * | 2017-06-08 | 2017-11-17 | 长安大学 | A kind of Web page module design and its Asynchronous loading method towards JSON |
CN107368307A (en) * | 2017-07-03 | 2017-11-21 | 上海点融信息科技有限责任公司 | For the method, apparatus and system at the interface for configuring application in real time |
US20170344656A1 (en) * | 2016-05-29 | 2017-11-30 | Wix.Com Ltd. | System and method for the creation and update of hierarchical websites based on collected business knowledge |
-
2017
- 2017-12-29 CN CN201711478088.8A patent/CN108073418A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101833556A (en) * | 2009-03-12 | 2010-09-15 | 英业达股份有限公司 | File content management system and method thereof |
CN104426896A (en) * | 2013-09-10 | 2015-03-18 | 腾讯科技(北京)有限公司 | Method and device for producing topic pages |
CN104866509A (en) * | 2014-02-26 | 2015-08-26 | 阿里巴巴集团控股有限公司 | Page element positioning method and device |
CN105786505A (en) * | 2016-02-26 | 2016-07-20 | 上海全成通信技术有限公司 | Json based complex web page component self-defining method and device |
US20170344656A1 (en) * | 2016-05-29 | 2017-11-30 | Wix.Com Ltd. | System and method for the creation and update of hierarchical websites based on collected business knowledge |
CN106599296A (en) * | 2016-12-28 | 2017-04-26 | 北京微影时代科技有限公司 | Method and system for acquiring page data |
CN107357817A (en) * | 2017-06-08 | 2017-11-17 | 长安大学 | A kind of Web page module design and its Asynchronous loading method towards JSON |
CN107368307A (en) * | 2017-07-03 | 2017-11-21 | 上海点融信息科技有限责任公司 | For the method, apparatus and system at the interface for configuring application in real time |
Non-Patent Citations (3)
Title |
---|
HANS BERGSTEN著: "《JavaServer-TM Faces交互式网站界面设计》", 31 January 2006 * |
MAGENTO: "如何管理Magento的CMS模块组织,而不至于发疯", 《HTTPS://WWW.CNBLOGS.COM/MAGENTO-MAIJINDOU/P/5968646.HTML》 * |
黄俊莲: "可定制的WEB界面设计技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Rothwell | Developments towards the fifth generation model of innovation | |
Wei et al. | Nonstationary chimeras in a neuronal network | |
CN102902767A (en) | Method and system for rapidly creating forms | |
CN104239617A (en) | Thermodynamic diagram showing method and device | |
CN104091129A (en) | Data processing method and device | |
CN104063495A (en) | Form extension method and form extension device | |
CN104461519A (en) | Method for dynamically producing flow chart and controlling authority | |
CN103870984A (en) | Network invoice template control method based on cloud computing | |
CN108073418A (en) | A kind of page assembly based on JSON specifications defines method | |
CN106161498A (en) | The multi-platform dissemination method of a kind of contribution and system | |
CN108958735A (en) | A kind of UI reconstructing method of terminal assemblyization application | |
CN103414554B (en) | A kind of key management method of objectification key management system | |
Zhang et al. | Lump and Lump‐Type Solutions of the Generalized (3+ 1)‐Dimensional Variable‐Coefficient B‐Type Kadomtsev‐Petviashvili Equation | |
CN104298900A (en) | Student information management system based on right control | |
CN105373385A (en) | Multi-resolution UI (User Interface) adaption scripting development method of Android application | |
CN105511885B (en) | The method that data visualization is realized in business intelligence data application JSON description | |
CN106936941A (en) | A kind of LoRaWAN Internet of Things is distributed telephone numbers method | |
CN106951269A (en) | A kind of topology file for lifting Android application writes the method and system of efficiency | |
CN203414966U (en) | A NFC label node with content capable of being remotely updated | |
CN103777956B (en) | A kind of real-time RTI implementation methods | |
CN106325852A (en) | Application dynamic interface customizing method | |
Wyckoff | Better innovation for better lives | |
CN204231418U (en) | A kind of LED screen tele-control system | |
CN109164683A (en) | Light distribution fast determination method and device based on mask graph processing | |
CN102411497B (en) | Widget resource imports and derived method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180525 |