{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "id": "https://github.com/myedibleenso/processors-server/tree/master/src/main/resources/json/schema/sentence.json",
    "properties": {
        "words": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "id": "words"
        },
        "startOffsets": {
            "type": "array",
            "items": {
                "type": "integer"
            },
            "id": "startOffsets"
        },
        "endOffsets": {
            "type": "array",
            "items": {
                "type": "integer"
            },
            "id": "endOffsets"
        },
        "tags": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "id": "tags"
        },
        "lemmas": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "id": "lemmas"
        },
        "entities": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "id": "entities"
        },
        "norms": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "id": "norms"
        },
        "chunks": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "id": "chunks"
        },
        "graphs": {
            "type": "object",
            "properties": {
                "stanford-basic": {
                    "type": "object",
                    "properties": {
                        "edges": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "source": {
                                        "type": "integer",
                                        "id": "source"
                                    },
                                    "destination": {
                                        "type": "integer",
                                        "id": "destination"
                                    },
                                    "relation": {
                                        "type": "string",
                                        "id": "relation"
                                    }
                                },
                                "id": "9",
                                "required": [
                                    "source",
                                    "destination",
                                    "relation"
                                ]
                            },
                            "id": "edges"
                        },
                        "roots": {
                            "type": "array",
                            "items": {
                                "type": "integer"
                            },
                            "id": "roots"
                        }
                    },
                    "id": "stanford-basic",
                    "required": [
                        "edges",
                        "roots"
                    ]
                },
                "stanford-collapsed": {
                    "type": "object",
                    "properties": {
                        "edges": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "source": {
                                        "type": "integer",
                                        "id": "source"
                                    },
                                    "destination": {
                                        "type": "integer",
                                        "id": "destination"
                                    },
                                    "relation": {
                                        "type": "string",
                                        "id": "relation"
                                    }
                                },
                                "id": "9",
                                "required": [
                                    "source",
                                    "destination",
                                    "relation"
                                ]
                            },
                            "id": "edges"
                        },
                        "roots": {
                            "type": "array",
                            "items": {
                                "type": "integer"
                            },
                            "id": "roots"
                        }
                    },
                    "id": "stanford-collapsed",
                    "required": [
                        "edges",
                        "roots"
                    ]
                }
            },
            "id": "graphs",
            "required": [
                "stanford-basic",
                "stanford-collapsed"
            ]
        }
    },
    "required": [
        "words",
        "startOffsets",
        "endOffsets"
    ]
}