{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "description": "Claim provided by a claimant.",
    "properties": {
        "arguments": {
            "description": "Arguments supporting the certainty of the claim",
            "properties": {
                "actor": {
                    "description": "Person who assessed the certainty",
                    "title": "Actor",
                    "type": "string"
                },
                "human": {
                    "description": "The claim was done by a human (1) or an algorithm (1)",
                    "enum": [
                        0,
                        1
                    ],
                    "title": "Human made",
                    "type": "number"
                },
                "role": {
                    "description": "Role of the actor (e.g. Cataloguer)",
                    "title": "Role",
                    "type": "string"
                }
            },
            "title": "Optional arguments",
            "type": "object"
        },
        "certainty": {
            "description": "Certainty of the claim. It must be a value between 0 and 1.0, being 1.0 a confident claim",
            "maximum": 1,
            "minLength": 1,
            "minimum": 0,
            "title": "Certainty",
            "type": "number"
        },
        "claimant": {
            "description": "Short name of the claimant that was used during the subscription (e.g. CERN)",
            "minLength": 1,
            "title": "Claimant",
            "type": "string"
        },
        "created": {
            "_format": "date-time",
            "description": "Datetime in which the claim was created",
            "minLength": 1,
            "title": "Creation datetime",
            "type": "string"
        },
        "object": {
            "additionalProperties": false,
            "description": "Object of the claim predicate",
            "properties": {
                "type": {
                    "description": "Type of persistent identifier (e.g. INSPIRE_RECORD_ID)",
                    "minLength": 1,
                    "title": "Identifier type",
                    "type": "string"
                },
                "value": {
                    "description": "Actual value of the identifier",
                    "minLength": 1,
                    "title": "Value",
                    "type": "string"
                }
            },
            "required": [
                "type",
                "value"
            ],
            "title": "Object",
            "type": "object"
        },
        "predicate": {
            "description": "Type of relation between the subject and the object",
            "enum": [
                "is_same_as",
                "is_variant_of",
                "is_author_of",
                "is_contributor_to",
                "is_erratum_of"
            ],
            "title": "Predicate",
            "type": "string"
        },
        "subject": {
            "additionalProperties": false,
            "description": "Subject of the claim predicate",
            "properties": {
                "type": {
                    "description": "Type of persistent identifier (e.g. INSPIRE_RECORD_ID)",
                    "minLength": 1,
                    "title": "Identifier type",
                    "type": "string"
                },
                "value": {
                    "description": "Actual value of the identifier",
                    "minLength": 1,
                    "title": "Identifier value",
                    "type": "string"
                }
            },
            "required": [
                "type",
                "value"
            ],
            "title": "Subject",
            "type": "object"
        }
    },
    "required": [
        "claimant",
        "subject",
        "predicate",
        "object",
        "certainty",
        "created"
    ],
    "title": "Claim data",
    "type": "object"
}