CN110020028A - A kind of document creation and access method, device - Google Patents

A kind of document creation and access method, device Download PDF

Info

Publication number
CN110020028A
CN110020028A CN201710779847.8A CN201710779847A CN110020028A CN 110020028 A CN110020028 A CN 110020028A CN 201710779847 A CN201710779847 A CN 201710779847A CN 110020028 A CN110020028 A CN 110020028A
Authority
CN
China
Prior art keywords
document
languages
identification
different
attribute
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
CN201710779847.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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710779847.8A priority Critical patent/CN110020028A/en
Publication of CN110020028A publication Critical patent/CN110020028A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/93Document management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

It is that the identical document of content distributes the same document id, and distributes different languages attributes for the document of different language this application provides a kind of document creating method and device.The document created in this manner, content is identical and document that languages are different, document identification having the same and different languages attributes.Document based on the creation of above-mentioned document creating method, present invention also provides a kind of document access method and devices, using document identification and languages attribute as the foundation of lookup document, therefore, even if the storage catalogue of document is changed, because document identification is constant, can be avoided because storage catalogue changes the unsuccessful problem of caused document access.

Description

A kind of document creation and access method, device
Technical field
This application involves electronic information field more particularly to a kind of document creations and access method, device.
Background technique
Under the development of Service Global, website needs to provide service to the user in different language region.With cloud text For shelves system, website needs the languages demand according to user, provides the document of corresponding languages for user.
Common cloud document system at present uses catalogue where document as the uniform resource locator of the document (Uniform Resource Locator, URL), i.e. access address.For example, being stored in the document under product A/ chapters and sections b catalogue URL be that (wherein, www.abc.com/docs is document to www.abc.com/docs/ product A/ chapters and sections b/ document 1.html Unified identifier).Using multilingual, languages mark, such as www.abc.com/docs/ language are increased newly in URL Kind mark lan/ product A/ chapters and sections b/ document 1.html, that is to say, that the document of different language is stored under different catalogues.
If the storage catalogue of document changes, for example, languages are identified the document under lan/ product A/ chapters and sections b catalogue 1 is moved under the catalogue (i.e. languages mark lan/ product B) of product B, then the URL of document can change.Because URL is access The access address of document in cloud document system, so, the access that the variation of the URL of document may result in document is unsuccessful. For example, user has stored the URL of document, if the URL of document changes, user cannot be visited using stored URL Ask the document.
Summary of the invention
This application provides a kind of document creation and access methods, device, it is therefore intended that solves the access address of document To the unsuccessful problem of the access of document caused by variation.
To achieve the goals above, this application provides following technical schemes:
A kind of document access method, comprising:
Document access request is received, the document access request includes document identification and languages attribute;
Based on the document identification and the languages attribute, inquiry obtains corresponding document from document database;
The document inquired is provided;
Wherein, multiple documents of different language are stored in the document database, and content is identical but languages are different Document document identification having the same.
Optionally, the document identification and the languages attribute are included in the access address of the access request;
The access address includes:
Uniform resource position mark URL.
A kind of creation method of document, comprising:
Creation according to document instructs, and creates document identification;
The document for carrying languages attribute is created using the document identification, content is identical and document that languages are different, has Identical document identification and different languages attributes;
Save the content for inputting the document.
Optionally, the languages attribute includes:
The different numerical value of field, field indicate different languages.
Optionally, after the creation carries the document of languages attribute, further includes:
The document identification for passing through content retrieval to be increased to the document with identical content and obtaining the document;
New document is created, the new document is identical as the document identification, the new document and the document Languages attribute is different.
A kind of document access device, comprising:
Receiving module, for receiving document access request, the document access request includes document identification and languages category Property;
Enquiry module is inquired from document database and is obtained for being based on the document identification and the languages attribute Corresponding document, wherein multiple documents of different language are stored in the document database, and content is identical but languages are different Document document identification having the same;
Module is provided, for providing the document inquired.
Optionally, the document identification and the languages attribute are included in the access address of the access request;
The access address includes:
Uniform resource position mark URL.
A kind of document access device, comprising:
First creation module instructs for the creation according to document, creates document identification;
Second creation module, for using document identification creation to carry the document of languages attribute, content is identical and language The different document of kind, document identification having the same and different languages attributes;
Preserving module, for saving the content for inputting the document.
Optionally, the languages attribute includes:
The different numerical value of field, field indicate different languages.
Optionally, first creation module is also used to:
The document identification for passing through content retrieval to be increased to the document with identical content and obtaining the document;
Second creation module is also used to:
New document is created, the new document is identical as the document identification, the new document and the document Languages attribute is different.
Document creating method and device described herein are that the identical document of content distributes the same document id, and is The document of different language distributes different languages attributes.The document created in this manner, content is identical and text that languages are different Shelves, document identification having the same and different languages attributes.Based on the document of above-mentioned document creating method creation, with document mark Know and languages attribute is as the foundation for searching document, therefore, even if the storage catalogue of document is changed, because document identification is not Become, can be avoided because storage catalogue changes the unsuccessful problem of caused document access.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the architecture diagram that cloud document system stored and accessed document;
Fig. 2 is a kind of flow chart of document creating method disclosed in the embodiment of the present application;
Fig. 3 is an exemplary diagram of the operating process of document management personnel disclosed in the embodiment of the present application;
Fig. 4 is the flow chart of document access method disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of the creating device of document disclosed in the embodiment of the present application;
Fig. 6 is a kind of structural schematic diagram of document access device disclosed in the embodiment of the present application.
Specific embodiment
Fig. 1 is the framework that cloud document system stored and accessed document.Document is stored in system (backstage), and system is (preceding Platform) by user's triggering generation access request, system (backstage) is looked by the information of the accessed document indicated in access request Accessed document is ask, and shows the content of accessed document, so that user can see the content of accessed document.
The creation method of document provided by the present application, by improving document in the storage mode on backstage, so that even if document Storage catalogue change, the URL (i.e. access address) of document is also constant, is based on such document creating method, the application mentions The document access method of confession accesses document according to the URL of languages and document, to avoid during accessing document, Yin Wen To the unsuccessful problem of the access of document caused by the variation of the URL of shelves.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application is described, and is shown So, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Based on the reality in the application Example is applied, every other embodiment obtained by those of ordinary skill in the art without making creative efforts all belongs to In the range of the application protection.
Fig. 2 is a kind of creation method of document disclosed in the embodiment of the present application, is applied in website (such as cloud document system) Server on, comprising the following steps:
S201: the creation according to document instructs, and creates document identification (identity, ID).
Specifically, document id can be created, for example, the manager of document passes through in server by the interaction with user Right-click on the document creation page of display, popup menu list on the document creation page that server is shown, user's selection After " creation document id " menu item, server distributes a document id.
S202: creation carries the document of languages attribute, wherein the document that content is identical but languages are different uses identical text Shelves ID.
Similar, the concrete mode for creating document can also be by interacting realization with user.It can in advance be different Languages distribute different languages attributes, the selection according to user to languages, distribute languages attribute for document.
Specifically, languages attribute can be a field, the different numerical value of field indicate different languages.
S203: user is inputted to the content of document, is stored in corresponding document.
For example, the content that user inputs Chinese document is stored in Chinese document.
Fig. 3 is an example of corresponding with the process of server shown in Fig. 2, document management personnel operating processes:
Document management personnel interact with server, obtain the document id of server creation, are denoted as 123.Document management Personnel interact with server, create Chinese document and English document, wherein Chinese document carries the Chinese attribute of server distribution Field, and ID is 123, English document carries the English attribute field of server distribution, and ID is 123.Document management personnel exist Chinese content is written in Chinese document, English content is written in English document.
Optionally, document management personnel can also increase new document: by be increased on the basis of existing document Content retrieval is to the existing document with identical content and obtains the document identification of the document, creates new document, new text Shelves are identical as the document identification of the document with identical content, and new document is different from the languages attribute of existing document.
It can be seen that in the present embodiment from Fig. 2 and Fig. 3, be that the identical document of content distributes the same document id, and is The document of different language distributes corresponding languages attribute.The document created in this manner, content is identical and text that languages are different Shelves, document id having the same and different languages attributes.
In the case, document management personnel can be found by document id with same if you need to modify the content of document The document of the different language of a document id is modified, without being stored under different language catalogue by switching directory search Document is modified, and is conducive to improve operating efficiency.Also, it, can also be in existing text if creating the document of new languages Document id is inquired in shelves, and increases the document of new languages under document id.
The document created using document creating method described in Fig. 2 or Fig. 3, content is identical and the ID for the document that languages are different Identical and languages attribute is different, and the access method to such document is as shown in figure 4, apply in website (such as cloud document system) On server, comprising the following steps:
S401: document access request is received.
It include the URL (i.e. access address) and languages attribute of document in document access request.
In the present embodiment, the URL of document is at least made of document identification ID.For example, document id is www.abc.com/ Docs/123.html, wherein www.abc.com/docs is the unified identifier of document, and 123 be document id.As described above, interior Hold documents identical and that languages are different, document id having the same.
Languages attribute can be obtained according to the selection of user, and the cookie that can also collect website automatically is obtained.For example, clothes Business device receives the instruction that user clicks " English " on webpage, it is determined that languages attribute is " English " corresponding field.Example again Such as, server analyzes the Chinese content that webpage is currently shown, it is determined that languages attribute is by collecting the cookie of website " Chinese " corresponding field.
Document access request can be with by the operation that the foreground of system generates such as user according to the operation triggering of user The operation of the URL of document is clicked for user, and the backstage of system is sent to by the foreground of system.It the backstage of system can also be direct Access request is received from the client of user.Step shown in Fig. 4 is executed by the backstage of system.Foreground and backstage are drawn for logic Divide concept, can run on the server.
S402: it based on the document id and languages attribute in document access request, is inquired from document database corresponding Document.
Wherein, document database is the database of the document composition obtained according to Fig. 2 or method shown in Fig. 3.
Corresponding document refers to, the languages attribute and document identification of document with the languages attribute that is carried in access request with The identical document of document identification.
S403: the document inquired is provided.
Specifically, the content of document can be shown.
Wherein, the content for inquiring and showing document is only to provide a kind of concrete mode of document, other than showing content, The access of other forms can also be carried out to document, for example, the access address of reference document.
Document access method shown in Fig. 4, using document identification languages attribute as the foundation for searching document, i.e., because of URL By document id, the storage catalogue of non-document is constituted, so, even if the storage catalogue of document is changed, because document id is not Become, so, the URL of document is constant, therefore, can be avoided and asks because document access is unsuccessful caused by storage catalogue change Topic.
For example, the URL:www.abc.com/docs/123.html of document is shared to user B by user A, user B is saved After the URL, if the storage catalogue of the document is changed, as long as document id is constant, the URL of document is constant, and user B exists After the storage catalogue of the document changes, the URL of preservation is clicked, triggering is generated including the user B URL's saved and user B The document access request of languages attribute, and according to user B save URL in document id and languages attribute find corresponding text Shelves, show the content of document.As it can be seen that although the storage catalogue of document is changed, because document id is constant, user B The URL of preservation is still effective.Also, even if the languages of user A and user B are different, cloud document system can also be user B automatically Show correct languages content.
There is document the advantage for stablizing the not URL of malleable to also reside in: the URL of document participates in the feelings of the sequence of search engine Under condition, because of the stability of URL, the stability of ranking can be improved.
Fig. 5 is a kind of document creation device disclosed in the embodiment of the present application, comprising: the first creation module, the second creation mould Block and preserving module.
Wherein, the first creation module is used to instruct according to the creation of document, creates document identification.Second creation module is used for The document for carrying languages attribute is created using the document identification, content is identical and document that languages are different, text having the same Shelves mark and different languages attributes.Preserving module is for saving the content for inputting the document.
Optionally, the first creation module is also used to: by content retrieval to be increased to the text with identical content Shelves and the document identification for obtaining the document.Second creation module is also used to: create new document, the new document with it is described Document identification is identical, and the new document is different from the languages attribute of the document.
Above-mentioned modules realize that the specific implementation of function can be no longer to go to live in the household of one's in-laws on getting married shown in Parameter Map 2 and Fig. 3 here It states.
Document creation device described in the present embodiment, with document identification and languages attribute-bit document, so that creation is interior Hold documents identical and that languages are different document identification having the same, different languages attributes, is established for subsequent document access Basis.
Fig. 6 is a kind of document access device disclosed in the embodiment of the present application, comprising: receiving module, enquiry module and offer Module.
For receiving module for receiving document access request, the document access request includes document identification and languages category Property.Enquiry module is used to be based on the document identification and the languages attribute, and inquiry obtains corresponding from document database Document, wherein multiple documents of different language are stored in the document database, and the document that content is identical but languages are different Document identification having the same.Module is provided for providing the document inquired.
The specific implementation of the function of above-mentioned modules may refer to above-mentioned embodiment of the method shown in Fig. 4, here It repeats no more.
Document access device shown in fig. 6, using document identification and languages attribute as the foundation of inquiry document, even if document Catalogue change because document identification and languages attribute will not follow target to change, be able to solve the access address of document Variation caused by the unsuccessful problem of the access of document.
Document creation device shown in fig. 5 and document access device shown in fig. 6 can be set in website (such as cloud Document system) server on.
If function described in the embodiment of the present application method is realized in the form of SFU software functional unit and as independent production Product when selling or using, can store in a storage medium readable by a compute device.Based on this understanding, the application is real The part for applying a part that contributes to existing technology or the technical solution can be embodied in the form of software products, The software product is stored in a storage medium, including some instructions are used so that a calculating equipment (can be personal meter Calculation machine, server, mobile computing device or network equipment etc.) execute each embodiment the method for the application whole or portion Step by step.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), with Machine accesses various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk Matter.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of document access method characterized by comprising
Document access request is received, the document access request includes document identification and languages attribute;
Based on the document identification and the languages attribute, inquiry obtains corresponding document from document database;
The document inquired is provided;
Wherein, multiple documents of different language are stored in the document database, and the document that content is identical but languages are different Document identification having the same.
2. the method according to claim 1, wherein the document identification and the languages attribute are included in described In the access address of access request;
The access address includes:
Uniform resource position mark URL.
3. a kind of creation method of document characterized by comprising
Creation according to document instructs, and creates document identification;
The document for carrying languages attribute is created using the document identification, content is identical and document that languages are different, has identical Document identification and different languages attributes;
Save the content for inputting the document.
4. according to the method described in claim 3, it is characterized in that, the languages attribute includes:
The different numerical value of field, field indicate different languages.
5. the method according to claim 4 or 3, which is characterized in that after the creation carries the document of languages attribute, Further include:
The document identification for passing through content retrieval to be increased to the document with identical content and obtaining the document;
New document is created, the new document is identical as the document identification, the languages of the new document and the document Attribute is different.
6. a kind of document access device characterized by comprising
Receiving module, for receiving document access request, the document access request includes document identification and languages attribute;
Enquiry module is inquired from document database and is corresponded to for being based on the document identification and the languages attribute Document, wherein multiple documents of different language are stored in the document database, and the text that content is identical but languages are different Shelves document identification having the same;
Module is provided, for providing the document inquired.
7. device according to claim 6, which is characterized in that the document identification and the languages attribute are included in described In the access address of access request;
The access address includes:
Uniform resource position mark URL.
8. a kind of document access device characterized by comprising
First creation module instructs for the creation according to document, creates document identification;
Second creation module, for using document identification creation to carry the document of languages attribute, content is identical and languages not Same document, document identification having the same and different languages attributes;
Preserving module, for saving the content for inputting the document.
9. device according to claim 8, which is characterized in that the languages attribute includes:
The different numerical value of field, field indicate different languages.
10. device according to claim 8 or claim 9, which is characterized in that first creation module is also used to:
The document identification for passing through content retrieval to be increased to the document with identical content and obtaining the document;
Second creation module is also used to:
New document is created, the new document is identical as the document identification, the languages of the new document and the document Attribute is different.
CN201710779847.8A 2017-09-01 2017-09-01 A kind of document creation and access method, device Pending CN110020028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710779847.8A CN110020028A (en) 2017-09-01 2017-09-01 A kind of document creation and access method, device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710779847.8A CN110020028A (en) 2017-09-01 2017-09-01 A kind of document creation and access method, device

Publications (1)

Publication Number Publication Date
CN110020028A true CN110020028A (en) 2019-07-16

Family

ID=67186186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710779847.8A Pending CN110020028A (en) 2017-09-01 2017-09-01 A kind of document creation and access method, device

Country Status (1)

Country Link
CN (1) CN110020028A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398845A (en) * 2008-11-05 2009-04-01 深圳市金蝶中间件有限公司 Multi-language binding method and system in web applications
CN102109958A (en) * 2011-03-04 2011-06-29 深圳市开立科技有限公司 Method and system for realizing multilingual user interface
CN102333123A (en) * 2011-10-08 2012-01-25 北京星网锐捷网络技术有限公司 File storage method and device, searching method and device and network device
CN104951547A (en) * 2015-06-24 2015-09-30 曾万勇 Multi-language information issuing and displaying method based on two-dimensional code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398845A (en) * 2008-11-05 2009-04-01 深圳市金蝶中间件有限公司 Multi-language binding method and system in web applications
CN102109958A (en) * 2011-03-04 2011-06-29 深圳市开立科技有限公司 Method and system for realizing multilingual user interface
CN102333123A (en) * 2011-10-08 2012-01-25 北京星网锐捷网络技术有限公司 File storage method and device, searching method and device and network device
CN104951547A (en) * 2015-06-24 2015-09-30 曾万勇 Multi-language information issuing and displaying method based on two-dimensional code

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DANNY AYERS等, 机械工业出版社 *
王大王: "web多语言url的设计", 《HTTPS://WWW.CNBLOGS.COM/XIAOWANGBA/P/6313765.HTML》 *

Similar Documents

Publication Publication Date Title
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
US20190068690A1 (en) Automated management of resource attributes across network-based services
CN109683998B (en) Internationalization realization method, device and system
CN104424199A (en) Search method and device
US8903800B2 (en) System and method for indexing food providers and use of the index in search engines
CN105183912B (en) Abnormal log determines method and apparatus
CN109614402B (en) Multidimensional data query method and device
US20130091116A1 (en) Selecting and presenting search results based on distinct taxonomies
CN110795029B (en) Cloud hard disk management method, device, server and medium
US20130290323A1 (en) Systems and methods for automatically associating tags with files in a computer system
CN110851757A (en) Page resource loading method and terminal
CN105224554A (en) Search word is recommended to carry out method, system, server and the intelligent terminal searched for
US9705986B2 (en) Elastic scalability of a content transformation cluster
CN104516979A (en) Data query method and data query system based on quadratic search
US11082517B2 (en) Content transformations using a transformation node cluster
CN102819572A (en) Method and system for displaying directory data in file management system
CN104462026A (en) System and method for providing cloud word stock service
CN107193754B (en) Method and apparatus for data storage for searching
JP2014186719A (en) System for providing mobile url in mobile retrieval environment and method for the same
US20220070112A1 (en) Dynamic visualization of requests traveling through a microservice mesh
CN108604241B (en) Search system
CN110515979B (en) Data query method, device, equipment and storage medium
WO2020024824A1 (en) Method and device for determining user status identifier
CN110020028A (en) A kind of document creation and access method, device
CN115758016A (en) Webpage content staticizing processing method and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190716