{ "$schema": "http://json-schema.org/schema#", "title": "Search result schema", "description": "Ksearch search result schema", "version": "1.0", "type": "object", "required": [ "id", "schema", "source" ], "properties": { "id": { "description": "The id of the retrieved document. It can be a dataset UUID or an ontology term URI", "type": "string" }, "score": { "description": "The score of the retrieved entity", "type": "number" }, "schema": { "description": "A URL to the json schema of the retrieved entity in source field", "type": "string" }, "source": { "type": "object", "description": "The json source of the retrieved document", "oneOf": [ { "$ref": "https://raw.githubusercontent.com/HumanBrainProject/hbp-data-schemas/master/neuroinformatics/search/search-dataset-schema-v1.0.json" }, { "$ref": "https://raw.githubusercontent.com/HumanBrainProject/hbp-data-schemas/master/neuroinformatics/search/search-ontology-term-schema-v1.0.json" } ] }, "highlights": { "type": "array", "items": { "type": "object", "properties": { "field": { "description": "The name of a field that match the user query and from which text fragments (thanks to a fragment size) are extracted", "type": "string" }, "fragments": { "type": "array", "minItems": 1, "items": { "description": "A text fragment (thanks to a fragment size) that match the user query. Occurrences of user query tokens can be delimited whithin fragments by html tags", "type": "string" } } } } } } }