{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.twindev.org/w3c-odrl/OdrlDuty",
	"title": "OdrlDuty",
	"description": "Interface for Duty Rules.\nA Duty is the obligation to exercise an action, with all refinements satisfied.\nA Duty is fulfilled if all constraints are satisfied and if its action has been exercised.\nhttps://www.w3.org/TR/odrl-model/#duty",
	"type": "object",
	"properties": {
		"attributedParty": {
			"type": "string",
			"description": "The party to be attributed\nUsed when the duty involves attribution"
		},
		"trackingParty": {
			"type": "string",
			"description": "The party performing the tracking\nUsed when the duty involves tracking"
		},
		"consequence": {
			"anyOf": [
				{
					"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
				},
				{
					"type": "array",
					"items": {
						"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
					}
				}
			],
			"description": "The consequences if the duty is not fulfilled.\nOnly applicable when the Duty is referenced by a Rule with duty or obligation\nproperties."
		},
		"compensatedParty": {
			"type": "string",
			"description": "The party to be compensated\nUsed when the duty involves compensation"
		}
	},
	"allOf": [
		{
			"$ref": "https://schema.twindev.org/w3c-odrl/OdrlRule"
		}
	]
}
