Item:OSWab674d663a5b472f838d8e1eb43e6784: Difference between revisions

From OSL Demo
Item:OSWab674d663a5b472f838d8e1eb43e6784
(Update package: OSW Docs - Core)
 
mNo edit summary
Tag: 2017 source edit
Line 16: Line 16:


===Overview===
===Overview===
{{Template:ELN/Editor/DrawIO|file_name=diagram-01|page_name=Item:OSWab674d663a5b472f838d8e1eb43e6784|uuid=2f275e34-41c8-4f63-a6cb-ee2861c488f2}}
{{Template:Editor/DrawIO|file_name=diagram-01|page_name=Item:OSWab674d663a5b472f838d8e1eb43e6784|uuid=2f275e34-41c8-4f63-a6cb-ee2861c488f2}}


{{#mermaid:
{{#mermaid:
Line 125: Line 125:
===Meta-Schemas===
===Meta-Schemas===
[[:Category:Category]] ist the default Metacategory / -class for all categories / classes. Its slot schema_template contains a handlebars template that sets schema attributes like title, allOf, description, etc. from the user generated jsondata. Additional Metacategories can be created as subclasses of  [[:Category:Category]] to simplify the creation of complex schemas, e. g. [[:Category:OSWecff4345b4b049218f8d6628dc2f2f21]]. This feature is compareable to python metaclasses.
[[:Category:Category]] ist the default Metacategory / -class for all categories / classes. Its slot schema_template contains a handlebars template that sets schema attributes like title, allOf, description, etc. from the user generated jsondata. Additional Metacategories can be created as subclasses of  [[:Category:Category]] to simplify the creation of complex schemas, e. g. [[:Category:OSWecff4345b4b049218f8d6628dc2f2f21]]. This feature is compareable to python metaclasses.
{{Template:ELN/Editor/DrawIO|file_name=meta-schema|page_name=Item:OSWab674d663a5b472f838d8e1eb43e6784|uuid=49d68bb7-a5de-413b-a107-7bc5f459a766|full_width=0|width=1200px}}Matecategories /-classes contain a handlebars template within the schema_template slot. The templated is evaluated with the jsondata-slot content to create / update the jsonschema-slot content of any derivated class on every edit.
{{Template:Editor/DrawIO|file_name=meta-schema|page_name=Item:OSWab674d663a5b472f838d8e1eb43e6784|uuid=49d68bb7-a5de-413b-a107-7bc5f459a766|full_width=0|width=1200px}}Matecategories /-classes contain a handlebars template within the schema_template slot. The templated is evaluated with the jsondata-slot content to create / update the jsonschema-slot content of any derivated class on every edit.




===Json-Schema===
===Json-Schema===
{{Template:ELN/Editor/DrawIO|file_name=diagram-json|page_name=Item:OSWab674d663a5b472f838d8e1eb43e6784|uuid=95a74be1-e22d-4b6e-9e4f-836127d5915a|full_width=0}}
{{Template:Editor/DrawIO|file_name=diagram-json|page_name=Item:OSWab674d663a5b472f838d8e1eb43e6784|uuid=95a74be1-e22d-4b6e-9e4f-836127d5915a|full_width=0}}


====Base====
====Base====

Revision as of 15:59, 19 April 2023

OSW Schema [OSWab674d663a5b472f838d8e1eb43e6784]
ID OSWab674d663a5b472f838d8e1eb43e6784
UUID ab674d66-3a5b-472f-838d-8e1eb43e6784
Label OSW Schema
Machine compatible name OswSchema
Statements (outgoing)
Statements (incoming)
Keywords

Description


📎 Select files (or drop them here)... 📷 Camera
    jsondata
    type
    "Category:OSW92cc6b1a2e6b4bb7bad470dfdcfdaf26"
    uuid"ab674d66-3a5b-472f-838d-8e1eb43e6784"
    label
    text"OSW Schema"
    lang"en"
    description
    text"Documentation about to OSW data schema"
    lang"en"
    name"OswSchema"
    attachments
    "File:OSW2f275e3441c84f63a6cbee2861c488f2.drawio.svg"
    "File:OSW49d68bb7a5de413ba1077bc5f459a766.drawio.svg"
    "File:OSW61f1999ee6d145c9b76fb55d02578ce5.drawio.svg"
    "File:OSW95a74be1e22d4b6e9e4f836127d5915a.drawio.svg"
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.