{"$schema":"http://json-schema.org/draft-04/schema#","additionalProperties":false,"properties":{"$schema":{"minLength":7,"title":"Schema","type":"string"},"authorized_access_point":{"minLength":1,"title":"Authorized access point","type":"string"},"bnf_type":{"minLength":1,"title":"Genre or Form","type":"string"},"broader":{"items":{"properties":{"oneOf":[{"$ref":{"pattern":"^https://mef.rero.ch/api/.*/.*?$","type":"string"}},{"authorized_access_point":{"minLength":1,"title":"Authorized access point","type":"string"}}]},"type":"object"},"minItems":1,"title":"Generic term","type":"array"},"classification":{"items":{"properties":{"classificationPortion":{"minLength":1,"type":"string"},"name":{"minLength":1,"type":"string"},"type":{"const":"bf:ClassificiationDdc","type":"string"}},"type":"object"},"minItems":1,"title":"Dewey class","type":"array"},"closeMatch":{"items":{"properties":{"authorized_access_point":{"minLength":1,"type":"string"},"identifiedBy":{"items":{"properties":{"source":{"minLength":1,"type":"string"},"type":{"enum":["bf:Local","uri","bf:Nbn"]},"value":{"minLength":1,"type":"string"}},"required":["type","value"],"type":"object"},"minItems":1,"title":"Identifier","type":"array"},"source":{"minLength":1,"type":"string"}},"type":"object"},"minItems":1,"title":"Equivalent term other thesaurus","type":"array"},"deleted":{"format":"date-time","title":"Deletion date","type":"string"},"exactMatch":{"items":{"properties":{"authorized_access_point":{"minLength":1,"type":"string"},"identifiedBy":{"items":{"properties":{"source":{"minLength":1,"type":"string"},"type":{"enum":["bf:Local","uri","bf:Nbn"]},"value":{"minLength":1,"type":"string"}},"required":["type","value"],"type":"object"},"minItems":1,"title":"Identifier","type":"array"},"source":{"minLength":1,"type":"string"}},"type":"object"},"minItems":1,"title":"Exact term other thesaurus","type":"array"},"identifiedBy":{"items":{"properties":{"source":{"minLength":1,"type":"string"},"type":{"enum":["bf:Local","uri","bf:Nbn"]},"value":{"minLength":1,"type":"string"}},"required":["type","value"],"type":"object"},"minItems":1,"title":"Identifier","type":"array"},"md5":{"minLength":1,"title":"MD5","type":"string"},"narrower":{"items":{"properties":{"oneOf":[{"$ref":{"pattern":"^https://mef.rero.ch/api/.*/.*?$","type":"string"}},{"authorized_access_point":{"minLength":1,"title":"Authorized access point","type":"string"}}]},"type":"object"},"minItems":1,"title":"Specific term","type":"array"},"note":{"items":{"properties":{"label":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"noteType":{"enum":["dataSource","dataNotFound","general","nonPublic","seeReference","seeAlsoReference","REROtreatment"]}},"type":"object"},"minItems":1,"title":"Note","type":"array"},"pid":{"minLength":1,"title":"Concept record ID","type":"string"},"related":{"items":{"properties":{"oneOf":[{"$ref":{"pattern":"^https://mef.rero.ch/api/.*/.*?$","type":"string"}},{"authorized_access_point":{"minLength":1,"title":"Authorized access point","type":"string"}}]},"type":"object"},"minItems":1,"title":"Associated term","type":"array"},"relation_pid":{"properties":{"type":{"enum":["redirect_to","redirect_from"],"title":"Relation pid type","type":"string"},"value":{"minLength":1,"title":"Relation pid value","type":"string"}},"title":"Relation pid","type":"object"},"type":{"enum":["bf:Topic","bf:Temporal"],"title":"Type","type":"string"},"variant_access_point":{"items":{"minLength":1,"type":"string"},"minItems":1,"title":"Variant access point","type":"array"}},"required":["$schema","pid","type","authorized_access_point"],"title":"Schema for concepts","type":"object"}
