Category:OSW0583b134c618484c9911a3dff145c7eb: Difference between revisions

Update package: OSW Lab
(Update package: OSW Lab)
(Update package: OSW Lab)
Line 1: Line 1:
== Created Instances ==
== {{#switch:{{USERLANGUAGECODE}}|#default=Chemical substances(Subcategories)|de=Chemische Substanzen(Sukategorien)}} ==
 
{{#ask: [[HasType::Category:OSW2afce49fe800460a95cf480cc0656757]]
    |mainlabel={{#switch:{{USERLANGUAGECODE}}|#default=Chemical substance|de=Chemische Substanz}}
    |?HasDescription=Description|+lang={{USERLANGUAGECODE}}
    |?HasMolecularWeight={{#switch:{{USERLANGUAGECODE}}|#default=Molecular weight|de=Molekulargewicht}}
    |?HasIupacName={{#switch:{{USERLANGUAGECODE}}|#default=IUPAC name|de=IUPAC-Name}}
    |?HasPubchemCid=PubChem CID
    |?HasPubchemSid=PubChem SID
    |?HasCasNumber=CAS No
    |?HasInchiId=InChI
    |?HasSmilesNotation={{#switch:{{USERLANGUAGECODE}}|#default=SMILES notation|de=SMILES-Notation}}
    |?HasSumFormula={{#switch:{{USERLANGUAGECODE}}|#default=Sum formula|de=Summenformel}}
    |format=datatable
    |datatables-searchPanes=true
    |datatables-searchPanes.initCollapsed=true
}}
 
== {{#switch:{{USERLANGUAGECODE}}|#default=Instances|de=Instanzen}} ==


{{#ask: [[{{FULLPAGENAME}}]]
{{#ask: [[{{FULLPAGENAME}}]]
|?HasPubchemId=PubChem CID
    |mainlabel={{#switch:{{USERLANGUAGECODE}}|#default=Chemical substance|de=Chemische Substanz}}
|format=datatable
    |?HasType={{#switch:{{USERLANGUAGECODE}}|#default=Type|de=Typ}}
    |?HasDescription=Description|+lang={{USERLANGUAGECODE}}
    |?HasSerialNumber={{#switch:{{USERLANGUAGECODE}}|#default=Serial/Batch No.|de=Serien-/Chargen-Nummer}}
    |?-HasOutput={{#switch:{{USERLANGUAGECODE}}|#default=Output of (process)|de=Output von (Prozess)}}
    |?-HasOutput.HasInput={{#switch:{{USERLANGUAGECODE}}|#default=Components|de=Komponenten}}
    |format=datatable
    |datatables-searchPanes=true
    |datatables-searchPanes.initCollapsed=true
}}
}}
jsondata
Line 1: Line 1:
{
{
    "type": [
"subclass_of": [
        "Category:Category"
"Category:OSW31ca9a739cb24079b36824045c0832aa"
    ],
],
    "subclass_of": [
"type": [
        "Category:OSW31ca9a739cb24079b36824045c0832aa"
"Category:Category"
    ],
],
    "utf8_icon": [
"uuid": "0583b134-c618-484c-9911-a3dff145c7eb",
        "🥏",
"label": [
        "⚗",
{
        "⚖"
"text": "Chemical substance",
    ],
"lang": "en"
    "uuid": "0583b134-c618-484c-9911-a3dff145c7eb",
},
    "name": "ChemicalCompound",
{
    "label": [
"text": "Chemische Substanz",
        {
"lang": "de"
            "text": "Chemical compound",
}
            "lang": "en"
],
        },
"description": [
        {
{
            "text": "Chemische Verbindung",
"text": "Chemical substance composed of many identical molecules",
            "lang": "de"
"lang": "en"
        }
}
    ],
],
    "description": [
"utf8_icon": [
        {
"🥏",
            "text": "Chemical substance composed of many identical molecules",
"⚗",
            "lang": "en"
"⚖"
        }
],
    ]
"name": "ChemicalSubstance",
"metaclass": [
"Category:OSW2afce49fe800460a95cf480cc0656757"
]
}
}
jsonschema
Line 1: Line 1:
{
{
    "@context": [
"@context": [
        "/wiki/Category:OSW31ca9a739cb24079b36824045c0832aa?action=raw\u0026slot=jsonschema",
{
        {
"mixing_process": {
            "pubchem_cid": "Property:HasPubchemId"
"@id": "Property:HasSourceProcess",
        }
"@type": "@id"
    ],
},
    "allOf": [
"source_process": {
        {
"@type": "@id"
            "$ref": "/wiki/Category:OSW31ca9a739cb24079b36824045c0832aa?action=raw\u0026slot=jsonschema"
}
        }
},
    ],
"/wiki/Category:OSW31ca9a739cb24079b36824045c0832aa?action=raw\u0026slot=jsonschema"
    "type": "object",
],
    "uuid": "0583b134-c618-484c-9911-a3dff145c7eb",
"allOf": [
    "title": "ChemicalCompound",
{
    "title*": {
"$ref": "/wiki/Category:OSW31ca9a739cb24079b36824045c0832aa?action=raw\u0026slot=jsonschema"
        "en": "Chemical compound",
}
        "de": "Chemische Verbindung"
],
    },
"type": "object",
    "data_source_maps": [
"uuid": "0583b134-c618-484c-9911-a3dff145c7eb",
        {
"title": "ChemicalSubstance",
            "id": "pubchem.ncbi.nlm.nih.gov",
"title*": {
            "source": "https://pubchem.ncbi.nlm.nih.gov/rest/pug_view/data/compound/{{pubchem_cid}}/JSON",
"en": "Chemical substance",
            "label": "PubChem",
"de": "Chemische Substanz"
            "required": [
},
                "pubchem_cid"
"description": "Chemical substance composed of many identical molecules",
            ],
"description*": {
            "object_map": {
"en": "Chemical substance composed of many identical molecules",
                "cas_numbers": "$..[?(@.TOCHeading=='CAS')].Information..Value.StringWithMarkup..String"
"de": "Chemische Substanz, die aus vielen identischen Molekülen besteht"
            }
},
        }
"required": [
    ],
"type",
    "properties": {
"source_process_"
        "pubchem_cid": {
],
            "title": "PubChem CID",
"defaultProperties": [
            "type": "string",
"quantity_statements",
            "options": {
"mixing_process"
                "conditional_visible": {
],
                    "modes": "query"
"properties": {
                }
"type": {
            },
"default": [
            "eval_template": [
"Category:OSW0583b134c618484c9911a3dff145c7eb"
                {
]
                    "type": "mustache-wikitext",
},
                    "mode": "render",
"source_process_": {
                    "value": "[https://pubchem.ncbi.nlm.nih.gov/compound/{{pubchem_cid}} {{pubchem_cid}}]"
"title": "Source process",
                }
"title*": {
            ]
"de": "Quellprozess"
        },
},
        "cas_numbers": {
"description": "Empty property to provide an eval template for a query",
            "type": "array",
"description*": {
            "title": "CAS Number(s)",
"de": "Leere Eigenschaft zur Bereitstellung einer Eval-Vorlage für eine Abfrage"
            "title*": {
},
                "de": "CAS Nummer(n)"
"type": "string",
            },
"default": "",
            "items": {
"eval_template": [
                "type": "string",
{
                "title": "CAS",
"type": "mustache-wikitext",
                "title*": {
"mode": "render",
                    "de": "CAS"
"value": "{{=\u003C% %\u003E=}} {{#ask:[[HasOutput::{{FULLPAGENAME}}]]|format=plain}}"
                }
}
            }
],
        },
"options": {
        "type": {
"hidden": true
            "default": [
}
                "Category:OSW0583b134c618484c9911a3dff145c7eb"
},
            ]
"mixing_process": {
        }
"allOf": [
    },
{
    "description": "Chemical substance composed of many identical molecules",
"$ref": "/wiki/Category:OSWb8435fabafcb48f985422448e9df5faa?action=raw\u0026slot=jsonschema"
    "description*": {
}
        "en": "Chemical substance composed of many identical molecules"
],
    },
"title": "Mixing (Source process)",
    "required": [
"title*": {
        "type"
"de": "Mischen (Ursprungsprozess)"
    ]
},
"description": "Process that describes the mixing of components to create this chemical substance. Addtional details of the mixing process can be stated.",
"description*": {
"de": "Prozess, der das Mischen der Komponenten zur Herstellung dieser chemischen Substanz beschreibt. Weitere Einzelheiten des Mischvorgangs können angegeben werden."
},
"eval_template": [
{
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}}\u003Cul\u003E\u003C%#mixing_process.input_components%\u003E\u003Cli\u003E\u003C%component_amount.component_amount_numerical_value%\u003E \u003C%component_amount.component_amount_unit%\u003E [[\u003C%component_instance%\u003E]] ({{#switch:{{USERLANGUAGECODE}}|en=Type|de=Typ|#default=Type}}: {{#ask:[[\u003C%component_instance%\u003E]]|?HasType=|format=plain|mainlabel=-}})\u003C/li\u003E\u003C%/mixing_process.input_componentss%\u003E\u003C/ul\u003E"
}
],
"required": [
"label",
"output_mixes"
],
"properties": {
"input_components": {
"propertyOrder": -10
},
"type": {
"options": {
"hidden": true
}
},
"label": {
"items": {
"properties": {
"text": {
"watch": {
"root_uuid": "uuid"
},
"readonly": true,
"dynamic_template": "Mixing of Item:OSW{{#replace '-' ''}}{{{root_uuid}}}{{/replace}}"
},
"lang": {
"readonly": true
}
}
},
"options": {
"hidden": true
}
},
"description": {
"description": "Description of the mixing process.",
"description*": {
"de": "Beschreibung des Mischprozesses"
},
"propertyOrder": -9
},
"output_mixes": {
"items": {
"watch": {
"root_uuid": "uuid"
},
"dynamic_template": "Item:OSW{{#replace '-' ''}}{{{root_uuid}}}{{/replace}}"
},
"minItems": 1,
"maxItems": 1,
"readonly": true,
"options": {
"hidden": true
}
}
}
}
}
}
}