문서 보기이전 판역링크맨 위로 이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. <= [[syntax:plugins:struct|Struct Plugin]] ====== Struct Plugin: Schema Editing 스키마 편집 ====== 스키마는 페이지에 할당할 수 있는 구조화된 데이터를 관리하는 데 사용됩니다. 테이블 정의로 생각할 수 있습니다. 스키마는 사용할 수 있는 필드와 포함할 [[syntax:plugins:struct:type|type]]을 정의합니다. \\ Schemas are used to manage the structured data that can be assigned to pages. You can think of them as a table definition. A schema defines which fields will be available and what [[syntax:plugins:struct:type|type]] they have. 스키마는 데이터가 사용되는 방식에 구애받지 않습니다. 이전 버전의 플러그인에서는 스키마를 페이지에 할당할지(//page schema//) 어디에서나 사용할 자유 유동 데이터를 포함할지(//lookup schema//) 미리 결정해야 했습니다. 더 이상 그렇지 않습니다. \\ Schemas are agnostic of how the data is going to be used. In previous versions of the plugin you had to decide up-front if your schema would be assigned to pages (//page schema//) or contain free-floating data to be used anywhere (//lookup schema//). This is no longer the case. 새 스키마를 생성하려면 관리자 페이지에 액세스합니다. "추가 플러그인" 섹션에서 "Struct Schema Editor"를 선택합니다. 양식을 사용하여 새 스키마를 생성합니다. \\ To create a new schema, log in as a [[config:manager|Manager]] and access the "Admin" page. Select the "Struct Schema Editor" from the "Additional Plugins" section. Use the form to create a new schema. 스키마 이름은 소문자로 시작해야 하며 소문자, 숫자 및 밑줄 문자((https://github.com/cosmocode/dokuwiki-plugin-struct/issues/595))를 포함할 수 있습니다. 즉, 정규식 ''^[a-z][a-z0-9_]*$''와 일치해야 합니다. 이 이름과 일치하지 않는 이름은 스키마를 저장할 때 잘못된 문자가 제거됩니다. \\ Schema names must start with a lowercase letter, then can contain lowercase letters, numerals, and the underscore character((https://github.com/cosmocode/dokuwiki-plugin-struct/issues/595)). In other words, must match the regular expression ''^[a-z][a-z0-9_]*$''. Names that don't match this will have offending characters removed when you save the schema. 목차에서 기존 스키마를 선택하고 편집할 수 있습니다. \\ Existing schemas can be selected in the table of contents and can be edited there. **중요:** 필드는 삭제할 수 없으며 비활성화만 가능합니다! \\ **Important:** Fields can not be deleted, only be disabled! ===== 데이터 관리를 위한 스키마 사용 Schema Usage for Data Mangement ===== 다음 세 가지 방법으로 데이터를 관리하기 위해 스키마를 배포할 수 있습니다. \\ Schemas can be deployed to manage data in the three following ways: * **페이지 데이터**는 입력된 정확히 한 페이지와 직접 연결됩니다. 편집 모드에서 양식을 통해 페이지 데이터를 입력할 수 있으려면 [[syntax:plugins:struct:assignments|Assignments]]를 통해 스키마를 페이지에 할당해야 합니다. 페이지 데이터를 페이지에 대한 추가 메타데이터로 생각할 수 있습니다. 이것은 이전 [[syntax:plugins:data|data plugin]]에서 알 수 있는 것입니다. 그리고 데이터 플러그인과 같은 방식으로 페이지에는 연결된 각 스키마의 페이지 데이터 집합(행)이 하나만 있을 수 있습니다. 페이지 데이터는 연결된 페이지와 함께 개정됩니다. \\ **Page data** is directly associated with exactly the one page it was entered for. To be able to enter page data via a form in edit mode, the schema has to be assigned to the page via [[plugin:struct:assignments|Assignments]]. You can think of page data as additional metadata for a page. This is what you may know from the old [[plugin:data|data plugin]]. And in the same way as with the data plugin, a page can only have one set (row) of page data from each of the associated schemas. Page data is revisioned with the page, it is associated to. * **전역 데이터**(이전에는 조회 스키마라고 함)는 페이지에 할당되지 않습니다. 전 세계적으로 보관되는 데이터 세트(행)의 모음입니다. 이는 [[syntax:plugins:struct:type_lookup|조회 소스]]로 사용하려는 데이터 또는 항목당 페이지를 정당화하지 않는 데이터에 유용합니다. 전역 데이터를 입력하고 편집하려면 [[syntax:plugins:struct:globaledit|전역 데이터 편집기]]를 아무 페이지에나 추가하세요. 모든 집계에서 해당 값을 참조할 수 있습니다. 전역 데이터에는 개정이나 기록이 없습니다. \\ **Global data** (previously called lookup schemas) is not assigned to pages. It is a collection of datasets (rows) held globally. This is useful for data that you want to use as a [[syntax:plugins:struct:type_lookup|Lookup source]] or for data that doesn't justify a page per entry. To enter and edit global data, add a [[syntax:plugins:struct:globaledit|Global Data Editor]] to any page. You can reference their values in any aggregation. Global data has no revisions or history. * **직렬 데이터**는 페이지 데이터와 유사하게 [[syntax:plugins:struct:assignments|할당 관리자]]를 통해 Wiki 페이지에 바인딩됩니다. 동시에 전역 데이터와 마찬가지로 페이지(및 스키마)당 많은 직렬 데이터세트(행)를 가질 수 있습니다. 직렬 데이터를 입력하고 편집하려면 페이지에 [[syntax:plugins:struct:serialedit|직렬 데이터 편집기]]를 추가합니다. 그러나 직렬 데이터에는 개정이나 이력이 없습니다. \\ **Serial data** is bound to a Wiki page via the [[syntax:plugins:struct:assignments|assignments manager]], similar to page data. At the same time, you can have many serial datasets (rows) per page (and schema), similar to global data. To enter and edit serial data, add a [[syntax:plugins:struct:serialedit|Serial Data Editor]] to a page. However, serial data has no revisions or history. **Notes:** 이전 버전의 플러그인에서는 스키마를 만들 때 향후 스키마 사용을 정의해야 했습니다. 더 이상 그렇지 않습니다. 위의 세 가지 사용 사례 모두에 대해 스키마를 동시에 사용할 수 있지만 실제로는 거의 사용하지 않을 것입니다. \\ In older versions of the plugin, the future use of the schema had to be defined when creating it. This is no longer the case. A schema can be used for all three of the above use cases simultaneously, though this will probably rarely be the case in the real world. 구조체 데이터 구조에 대한 자세한 내용은 [[syntax:plugins:struct:dbinternals#data|struct database internals]] 및 [[syntax:plugins:struct:csvimport|csv import]]를 참조하세요. \\ For more details on the structure of struct data, see [[syntax:plugins:struct:dbinternals#data|struct database internals]] and [[syntax:plugins:struct:csvimport|csv import]]. syntax/plugins/struct/schemaedit/ko.txt 마지막으로 수정됨: 2023/07/20 00:57저자 writer