miwafu/src/schema/entry.json

149 lines
4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://fedran.com/miwafu/schema/entry.json",
"title": "Miwāfu Dictionary Entry",
"description": "A dictionary entry for Miwāfu, a constructed language by D. Moonfire",
"type": "object",
"properties": {
"base": {
"description": "The base word without any accents",
"type": "string"
},
"pos": {
"description": "The parts of speech for the entry",
"type": "object",
"properties": {
"adj": {
"description": "Entries for using the word as an adjective",
"type": "array",
"items": {
"$ref": "#/$defs/definition"
}
}
},
"adv": {
"description": "Entries for using the word as an adverb",
"type": "array",
"items": {
"$ref": "#/$defs/definition"
}
}
},
"noun": {
"description": "Entries for using the word as a noun",
"type": "object",
"properties": {
"masculine": {
"description": "Masculine or male uses of the word",
"type": "array",
"items": {
"$ref": "#/$defs/definition"
}
},
"neuter": {
"description": "Neuter or neutral uses of the word",
"type": "array",
"items": {
"$ref": "#/$defs/definition"
}
},
"feminine": {
"description": "Feminine or female uses of the word",
"type": "array",
"items": {
"$ref": "#/$defs/definition"
}
}
}
},
"verb": {
"description": "Entries for using the word as a verb",
"type": "object",
"properties": {
"masculine": {
"description": "Masculine or male uses of the word",
"type": "array",
"items": {
"$ref": "#/$defs/definition"
}
},
"neuter": {
"description": "Neuter or neutral uses of the word",
"type": "array",
"items": {
"$ref": "#/$defs/definition"
}
},
"feminine": {
"description": "Feminine or female uses of the word",
"type": "array",
"items": {
"$ref": "#/$defs/definition"
}
}
}
}
},
"required": [
"base"
],
"$defs": {
"definition": {
"description": "A definition of a Miwāfu word",
"type": "object",
"properties": {
"def": {
"description": "The description of the definition",
"type": "string"
},
"example": {
"description": "Example sentence or phrases",
"type": "array",
"items": {
"type": "object",
"properties": {
"miw": {
"description": "The Miwāfu sentence or phrase",
"type": "string"
},
"en": {
"description": "The English translation of the sentence or phrase",
"type": "string"
}
}
}
},
"reference": {
"description": "A list of references to the word",
"type": "array",
"items": {
"type": "object",
"properties": {
"identifier": {
"description": "The Fedran identifier for a POV and volume",
"type": "string"
},
"title": {
"description": "The title of the piece referenced",
"type": "string"
},
"url": {
"description": "The URL to the specific piece and chapter",
"type": "string"
},
"excerpt": {
"description": "A multi-line excert that contains a long reference",
"type": "string"
},
"chapter": {
"description": "The chapter within the piece",
"type": "number"
}
}
}
}
}
}
}
}