Movatterモバイル変換


[0]ホーム

URL:


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 PDF

Info

Publication number
CN108073418A
CN108073418ACN201711478088.8ACN201711478088ACN108073418ACN 108073418 ACN108073418 ACN 108073418ACN 201711478088 ACN201711478088 ACN 201711478088ACN 108073418 ACN108073418 ACN 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
Application number
CN201711478088.8A
Other languages
Chinese (zh)
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.)
SUCCESSFULL TELECOM TECHNOLOGY Co Ltd
Original Assignee
SUCCESSFULL TELECOM TECHNOLOGY 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 SUCCESSFULL TELECOM TECHNOLOGY Co LtdfiledCriticalSUCCESSFULL TELECOM TECHNOLOGY Co Ltd
Priority to CN201711478088.8ApriorityCriticalpatent/CN108073418A/en
Publication of CN108073418ApublicationCriticalpatent/CN108073418A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

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

A kind of page assembly based on JSON specifications defines method
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 specificationsChange 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 skillArt is infrastructure technologies in CMS system.The technology can cause user to change according to demand, come in time adjust page structure andPattern 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 HTMLAnd 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 outputIt 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 pageModularization 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 pageConstruction 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 andVerification, 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 fortuneBattalion.
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 specificationsPage 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 pageFace data, and page data structure is defined and is verified using JSON Schema, ensure the specification of data definition with it is consistentProperty.
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 latticeFormula 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 fixedJustice 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 simultaneouslyThe 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 energyEnough combinations based on atom level assembly, form new content components, realize the multiplexing of operation ability and experience, promote operation effectRate.
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, metThe 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 definitionProperty 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, completeSite 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 hairEmbodiment in bright, the every other reality that those of ordinary skill in the art are obtained on the premise of creative work is not madeExample 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 pageFace data, and page data structure is defined and is verified using JSON Schema, ensure the specification of data definition with it is consistentProperty.
According to operation level, the page is made of fine-grained units such as block, sub-block, operation positions.Operation position is minimumOperation 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 interiorHold management structure, realize and arbitrary html tag and tag attribute datas in the page are defined, realize most fine granularity pair in the pageThe management and operation of elephant;It is defined based on arbitrary fine-grained page elements, forms reusable atom level assembly, and can be based onThe 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 minimumOperation 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 specificationsOperation 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, anyThose familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replaceIt 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 rightIt is required that protection domain subject to.

Claims (6)

CN201711478088.8A2017-12-292017-12-29A kind of page assembly based on JSON specifications defines methodPendingCN108073418A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711478088.8ACN108073418A (en)2017-12-292017-12-29A kind of page assembly based on JSON specifications defines method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711478088.8ACN108073418A (en)2017-12-292017-12-29A kind of page assembly based on JSON specifications defines method

Publications (1)

Publication NumberPublication Date
CN108073418Atrue CN108073418A (en)2018-05-25

Family

ID=62156310

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711478088.8APendingCN108073418A (en)2017-12-292017-12-29A kind of page assembly based on JSON specifications defines method

Country Status (1)

CountryLink
CN (1)CN108073418A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101833556A (en)*2009-03-122010-09-15英业达股份有限公司 File content management system and method thereof
CN104426896A (en)*2013-09-102015-03-18腾讯科技(北京)有限公司Method and device for producing topic pages
CN104866509A (en)*2014-02-262015-08-26阿里巴巴集团控股有限公司Page element positioning method and device
CN105786505A (en)*2016-02-262016-07-20上海全成通信技术有限公司Json based complex web page component self-defining method and device
CN106599296A (en)*2016-12-282017-04-26北京微影时代科技有限公司Method and system for acquiring page data
CN107357817A (en)*2017-06-082017-11-17长安大学A kind of Web page module design and its Asynchronous loading method towards JSON
CN107368307A (en)*2017-07-032017-11-21上海点融信息科技有限责任公司For the method, apparatus and system at the interface for configuring application in real time
US20170344656A1 (en)*2016-05-292017-11-30Wix.Com Ltd.System and method for the creation and update of hierarchical websites based on collected business knowledge

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101833556A (en)*2009-03-122010-09-15英业达股份有限公司 File content management system and method thereof
CN104426896A (en)*2013-09-102015-03-18腾讯科技(北京)有限公司Method and device for producing topic pages
CN104866509A (en)*2014-02-262015-08-26阿里巴巴集团控股有限公司Page element positioning method and device
CN105786505A (en)*2016-02-262016-07-20上海全成通信技术有限公司Json based complex web page component self-defining method and device
US20170344656A1 (en)*2016-05-292017-11-30Wix.Com Ltd.System and method for the creation and update of hierarchical websites based on collected business knowledge
CN106599296A (en)*2016-12-282017-04-26北京微影时代科技有限公司Method and system for acquiring page data
CN107357817A (en)*2017-06-082017-11-17长安大学A kind of Web page module design and its Asynchronous loading method towards JSON
CN107368307A (en)*2017-07-032017-11-21上海点融信息科技有限责任公司For the method, apparatus and system at the interface for configuring application in real time

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HANS BERGSTEN著: "《JavaServer-TM Faces交互式网站界面设计》", 31 January 2006*
MAGENTO: "如何管理Magento的CMS模块组织,而不至于发疯", 《HTTPS://WWW.CNBLOGS.COM/MAGENTO-MAIJINDOU/P/5968646.HTML》*
黄俊莲: "可定制的WEB界面设计技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》*

Similar Documents

PublicationPublication DateTitle
RothwellDevelopments towards the fifth generation model of innovation
CN102779040B (en)A kind of method and apparatus generating customizing form
CN103838576A (en)Website establishing method and device
CN104063495A (en)Form extension method and form extension device
CN104020998B (en)A kind of generation method and device of User Defined map
CN103870984A (en)Network invoice template control method based on cloud computing
CN103414554B (en)A kind of key management method of objectification key management system
CN108073418A (en)A kind of page assembly based on JSON specifications defines method
CN109992801A (en)A kind of PCB update method based on PADS software
CN105681263A (en)Smart card key remote application method and application system
CN103294461A (en)Method and system for realizing microlog background interface
CN108182236A (en)Web page drop-down list implementation method for uniformly configuring data sources
CN207867479U (en)A kind of man-machine interactive system based on NFC
CN105511885B (en)The method that data visualization is realized in business intelligence data application JSON description
CN204808728U (en)Marketing is with teaching sand table
Nahhas et al.Metaheuristic and hybrid simulation-based optimization for solving scheduling problems with major and minor setup times
CN103777956B (en)A kind of real-time RTI implementation methods
CN103729401B (en)A kind of generation method of family tree tree
Zhao et al.Construction of Practical Teaching Platform for Mobile Communication System Under Big Data
CN106325852A (en)Application dynamic interface customizing method
CN204231418U (en)A kind of LED screen tele-control system
CN207264608U (en)A kind of network drill device of economic management
WyckoffBetter innovation for better lives
UnionAfrican Union Signs Agreement on Africa’s High-Speed Railway Network
CN104700675A (en)Mobile learning system and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
WD01Invention patent application deemed withdrawn after publication
WD01Invention patent application deemed withdrawn after publication

Application publication date:20180525


[8]ページ先頭

©2009-2025 Movatter.jp