{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "targetType": "document_surface1d",
    "schemaType": "NamedEntity",
    "title": "Named Entity",
    "type": "object",
    "required": [
        "schemaType",
        "_corpusID",
        "_documentID",
        "offsets"
    ],
    "properties": {
        "schemaType": {
            "type": "string",
            "description": "Schema type",
            "searchable": true,
            "searchModes": [
                "noop"
            ],
            "locked": true
        },
        "_documentID": {
            "type": "string",
            "description": "Internal document GUID",
            "searchable": true,
            "searchModes": [
                "noop"
            ],
            "locked": true
        },
        "_corpusID": {
            "type": "string",
            "description": "Internal Corpus GUID",
            "searchable": true,
            "searchModes": [
                "noop"
            ],
            "locked": true
        },
        "offsets": {
            "searchable": true,
            "locked": true,
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "object",
                "properties": {
                    "begin": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "end": {
                        "type": "integer",
                        "minimum": 0
                    }
                }
            }
        },
        "TypeNE": {
            "type": "string",
            "description": "Named entity's type.",
            "enum": [
                "personne",
                "lieu",
                "organisation",
                "autre"
            ],
            "searchable": true,
            "searchModes": [
                "basic"
            ],
            "locked": true
        },
        "TypeEn_Wikipedia": {
            "type": "array",
            "_uniqueItems": true,
            "description": "Type of entity on Wikipedia.",
            "searchable": true,
            "searchModes": [
                "basic"
            ],
            "locked": false,
            "minItems": 0,
            "items": {
                "type": "string"
            }
        },
        "description": {
            "type": "string",
            "description": "Description of the named entity.",
            "searchable": true,
            "searchModes": [
                "basic"
            ],
            "locked": false
        },
        "wikipedia": {
            "type": "string",
            "description": "Reference URL for the entityt on Wikipedia",
            "searchable": true,
            "searchModes": [
                "basic"
            ],
            "locked": false
        }
    }
}