Category:OSWda90a62a5b58532d8f9570da405213ee: Difference between revisions

add schema
([bot] update of page content)
Tag: Metadata slot edit
(add schema)
Tag: Metadata slot edit
jsonschema
Line 1: Line 1:
{}
{
    "@context": [
        {
            "nfdicore": "https://nfdi.fiz-karlsruhe.de/ontology/",
            "mwo": "http://purls.helmholtz-metadaten.de/mwo/",
            "pmdco": "https://w3id.org/pmd/co/",
            "iao": {
                "@id": "http://purl.obolibrary.org/obo/IAO_",
                "@prefix": true
            },
            "type": "@type",
            "value": "nfdicore:hasValue",
            "value*": "Property:nfdicore:hasValue",
            "first_name": "iao:0000235",
            "last_name": "iao:0000235",
            "first_name*": "Property:bfo:denotedBy",
            "last_name*": "Property:bfo:denotedBy"
        }
    ],
    "allOf": [
        {
            "$ref": "/wiki/Category:Item?action=raw\u0026slot=jsonschema"
        }
    ],
    "title": "Person",
    "type": "object",
    "required": [
        "type"
    ],
    "defaultProperties": [
        "first_name",
        "last_name"
    ],
    "properties": {
        "type": {
            "type": "array",
            "items": {
                "type": "string",
                "default": "Category:OSWda90a62a5b58532d8f9570da405213ee",
                "readOnly": true
            }
        },
        "first_name": {
            "type": "object",
            "title": "First Name",
            "properties": {
                "value": {
                    "type": "string",
                    "default": "Max"
                }
            }
        },
        "last_name": {
            "type": "object",
            "title": "Last Name",
            "properties": {
                "value": {
                    "type": "string",
                    "default": "Mustermann"
                }
            }
        }
    }
}