Commit 1cbc2609 authored by amarcic's avatar amarcic
Browse files

add JSON Schema for iDAI.chronontology data model

parent 641c97c9
{
"$schema": "http://json-schema.org/schema#",
"$id": "http://...incomplete",
"title": "iDAI.chronontology data model",
"description": "A period in iDAI.chronontology",
"type": "object",
"properties": {
"id": {"type": "string"},
"type": {"type": "string"},
"externalId": {"type": "string"},
"names": {
"type": "object",
"properties": {
"de": {"type": "array","items": {"type": "string", "minItems": 1}},
"en": {"type": "array","items": {"type": "string", "minItems": 1}},
"ar": {"type": "array","items": {"type": "string", "minItems": 1}},
"fr": {"type": "array","items": {"type": "string", "minItems": 1}}
},
"minProperties": 1
},
"types": {
"type": "array",
"items": {
"type": "string",
"enum": ["geological","political","cultural","material_culture","technological",
"abbreviated_century/millenium/etc.","chronological_subdivision","all meanings"],
"minItems": 1
}
},
"provenance": {
"type": "string",
"default": "chronontology"
},
"definition": {
"type": "string"
},
"description": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"note": {
"description": "is visible in the ChronOntology frontend",
"type": "string"
},
"note2": {
"description": "contains internal notes that should be visible only to registered users",
"type": "string"
},
"note3": {
"type": "string"
},
"ongoing": {
"type": "boolean"
},
"hasTimespan": {
"type": "array",
"items": {
"type": "object",
"properties": {
"sourceOriginal": {
"type": "string"
},
"sourceURL": {
"type": "string",
"format": "uri"
},
"timeOriginal":{
"type": "string"
},
"calender": {
"type": "string"
},
"begin": {
"type": "object",
"properties": {
"at": {
"type": "number"
},
"atPrecision": {
"type": "string"
}
}
},
"end": {
"type": "object",
"properties": {
"at": {
"type": "number"
},
"atPrecision": {
"type": "string"
}
}
}
}
}
},
"spatiallyPartOfRegion": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"hasCoreArea": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"isNamedAfter": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"relations": {
"type": "object",
"properties": {
"hasPart": {
"type": "array",
"items": {
"type": "string"
}
},
"isPartOf": {
"type": "array",
"items": {
"type": "string"
}
},
"fallsWithin": {
"type": "array",
"items": {
"type": "string"
}
},
"contains": {
"type": "array",
"items": {
"type": "string"
}
},
"lists": {
"type": "array",
"items": {
"type": "string"
}
},
"isListedIn": {
"type": "array",
"items": {
"type": "string"
}
},
"hasSense": {
"type": "array",
"items": {
"type": "string"
}
},
"isSenseOf": {
"type": "array",
"items": {
"type": "string"
}
},
"follows": {
"type": "array",
"items": {
"type": "string"
}
},
"isFollowedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"sameAs": {
"type": "array",
"items": {
"type": "string"
}
},
"isSimilarTo": {
"type": "array",
"items": {
"type": "string"
}
},
"isEqualOrFinerThan": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"required": ["id", "names", "types", "provenance"]
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment