{
    "$id": "http://schemas.nationella-riktlinjer.se/nrb-concept.2.schema.json",
    "title": "NRB Concept",
    "description": "Definition of a concept as specified in http://nationella-riktlinjer.se",
    "type": "object",
    "properties": {
        "_schema": { "$ref": "http://schemas.nationella-riktlinjer.se/nrb-identification.1.schema.json#/definitions/_schema" },
        "id": { "$ref": "http://schemas.nationella-riktlinjer.se/nrb-identification.1.schema.json#/definitions/id" },
        "slug": { "$ref": "http://schemas.nationella-riktlinjer.se/nrb-identification.1.schema.json#/definitions/slug" },
        "language": { "$ref": "http://schemas.nationella-riktlinjer.se/nrb-language.1.schema.json" },
        "term": {
            "type": "string",
            "minLength": 1,
            "title": "Term",
            "description": "For nouns, term shall be expressed in indefinitied form singular",
            "examples": ["modell"]
        },
        "inflections": {
            "type": "array",
            "minItems": 1,
            "title": "Inflections",
            "description": "Expands all inflections in the order: defite form singular, indefinitied form plural, defite form plural",
            "examples": [["modellen", "modeller", "modellerna"]]
        },
        "abbrevation": {
            "type": "string",
            "minLength": 1
        },
        "source": {
            "type": "string",
            "minLength": 1,
            "title": "Source"
        },
        "source_long": {
            "type": "string",
            "minLength": 1,
            "title": "Source long",
            "description": "Use only if source text in longer then max length of property source"
        },
        "definition": {
            "type": "string",
            "minLength": 1
        },
        "comment": {
            "type": "string",
            "minLength": 1
        },
        "synonyms": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "A list of concept slugs for synynoms as definied in https://en.wikipedia.org/wiki/Synonym. Remember that a vaild synomym must be present within the same version of the list"
        },
        "links": {
            "type": "array",
            "items": {
                "$ref": "http://schemas.nationella-riktlinjer.se/nrb-link.1.schema.json"
            }
        },
        "contributors": {
            "type": "array",
            "items": {
                "$ref": "http://schemas.nationella-riktlinjer.se/nrb-person.1.schema.json"
            }
        }
    },
    "required": [
        "_schema",
        "id",
        "slug",
        "language",
        "term",
        "source",
        "definition"
    ]
}