Item:OSWee501c0fa6a9407d99c058b5ff9d55b4: Difference between revisions

update from wiki-dev
(Install package: OSW Docs - Core)
 
(update from wiki-dev)
Tag: Metadata slot edit
 
Line 1: Line 1:
==JSON Application Tutorial==
==OO-LD==
Table of contents:
Meta-Standards that combines JSON-SCHEMA and JSON-LD [https://github.com/OO-LD/schema]
* context --> Mapping of JSON object properties to semantic properties
 
* defaultProperties --> properties that are shown in the JSON editor by default
== Playgrounds ==
* array use cases
<div style=" column-count: 2;">
** format: selectbox / checkbox
<div>[https://oo-ld.github.io/playground-yaml/?data=N4Ig9gDgLglmB2BnEAuUMDGCA2MBGqIAZglAIYDuApomALZUCsIANOHgFZUZQD62ZAJ5gArlELwwAJzplsrEIgwALKrNSgAAlnhQqAD3FpFKtWULKoUCCgD0tpatkA6aQHNbC%2BGQaFHZlG9fNjwYKShlABMhP1NZFFDw5QARMj0QAF82WChsKkIABSopWngFKEEIfJR2Lh4FKSoARxEwqkjUAG0QIPyQsIjowRAAXTYIKUhi2BoNHp9q0AqqvygpGHg3BUiaDHXoODKagDEwxCgAAjJ4SIuAGTJzi96FOg27qk2I1AAWNh2iGQRNgjCAAFLFNSCC7JaRlLIgRKDGLGZbVRRrDZbNgkGRpQjRdL%2FXb7WAIQgAFVUFyRUSEFzARAuESoFyqJXJGS5bEQyjAFF4xUmJUIGz0UjIPEO5Sc6LwYDAUHOEogPwUZA4ZH0qDWIiobAA1lQqBBeAgqIzeAA3OR65AoQHYRBUBEcUpzF41CGNOjQ2FSMr9JJDQgAJgADKGfgBacMADljAE5MhkgA%3D OO-LD Playground]
** format: table
<div class="QrCodeGenerator" data-config='{
** table with autocomplete
    "text": "https://t1p.de/oz6pr",
* Inheritance with "allOf": {"type": "object", "$ref": "..."}
    "heading": "OO-LD Playground",
    "image": true
}'></div>
</div>
<div>[https://oo-ld.github.io/playground-python-yaml/?data=N4Ig9gDgLglmB2BnEAuUMDGCA2MBGqIAZglAIYDuApomALZUCsIANOHgFZUZQD62ZAJ5gArlELwwAJzplsrEIgwALKrNSgAAlnhQqAD3FpFKtWULKoUCCgD0tpatkA6aQHNbC%2BGQaFHZlG9fAF82WChsKkIABSopWngFKEEIKJR2Lh4FKSoARxEYHIATVABtECCogF02CClIONgaDQqfNNBk1L8oKRh4NwUimgxe6DhE9IAxQsQoAAIyeCK5gBkyWbnKwaoiMhFsIxAAKTi1QTmAEWlE4Nu2RGUwCl44%2BvjCPr0pMh5xpKc0iA8GAwFBZt8IAAWBRkDhkfSoHoiKhsADWVCoEF4CCoYCIvAAbnJkcgULtsIgqKEQBwEi0tulooIoI94HMAOJUeBxMh6Eq3IA OO-LD Python Playground]
<div class="QrCodeGenerator" data-config='{
    "text": "https://t1p.de/mlt5v",
    "heading": "OO-LD Python Playground",
    "image": true
}'></div>
</div>
</div>
 
== Playgrounds (Advanced) ==
<div style=" column-count: 2;">
<div>[https://oo-ld.github.io/playground-yaml OO-LD Playground]
<div class="QrCodeGenerator" data-config='{
    "text": "https://oo-ld.github.io/playground-yaml",
    "heading": "OO-LD Playground",
    "image": true
}'></div>
</div>
<div>[https://oo-ld.github.io/playground-python-yaml OO-LD Python Playground]
<div class="QrCodeGenerator" data-config='{
    "text": "https://oo-ld.github.io/playground-python-yaml",  
    "heading": "OO-LD Python Playground",
    "image": true
}'></div>
</div>
</div>
 
 
 
==OO-LD Schema (1)==
{{#mermaid:
classDiagram
    class OOLD_Class_A {
        JSON-SCHEMA + JSON-LD
        @context: ...
        properties: a...
    }
 
    class OOLD_Class_B {
        JSON-SCHEMA + JSON-LD
        @context: ./A
        allOf: ./A
        properties: b...
    }
 
    class OOLD_Instance_B {
        JSON
        @context: ./B
        $schema: ./B
        a: ...
        b: ...
    }
 
    OOLD_Class_A <-- OOLD_Class_B: extends
 
    OOLD_Class_B <-- OOLD_Instance_B: type
|theme=neutral
}}
jsondata
Line 4: Line 4:
     ],
     ],
     "uuid": "ee501c0f-a6a9-407d-99c0-58b5ff9d55b4",
     "uuid": "ee501c0f-a6a9-407d-99c0-58b5ff9d55b4",
    "name": "JsonApplicationTutorial",
     "label": [
     "label": [
         {
         {
             "text": "JSON Application Tutorial",
             "text": "OO-LD Tutorial",
             "lang": "en"
             "lang": "en"
         }
         }
Line 13: Line 12:
     "description": [
     "description": [
         {
         {
             "text": "Exhibits some applications of JSON and JSON Schema, focussing on the JSON Editor.",
             "text": "Introduction to the Object-Oriented Linked Data (OO-LD) schema",
             "lang": "en"
             "lang": "en"
         }
         }
     ],
     ],
    "name": "OoLdTutorial",
     "image": "File:OSWef6806b8a17f472c9dd34bfe0c1ca6f1.png",
     "image": "File:OSWef6806b8a17f472c9dd34bfe0c1ca6f1.png",
     "required_predecessor": [
     "required_predecessor": [
         "Item:OSWf1df064239044b8fa3c968339fb93344",
         "Item:OSWf1df064239044b8fa3c968339fb93344",
         "Item:OSWf4a9514baed04859a4c6c374a7312f10"
         "Item:OSWf4a9514baed04859a4c6c374a7312f10",
    ],
    "optional_predecessor": [
         "Item:OSW911488771ea449a6a34051f8213d7f2f"
         "Item:OSW911488771ea449a6a34051f8213d7f2f"
     ],
     ],
    "optional_predecessor": [],
     "recommended_successor": []
     "recommended_successor": []
}
}