Permalink
Fetching contributors…
Cannot retrieve contributors at this time
735 lines (734 sloc) 20.9 KB
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Notice",
"description": "A gazette notice",
"type": "object",
"properties": {
"identifier": {
"description": "The publisher's identifier for the notice, which may not be unique",
"type": [
"integer",
"string"
]
},
"uid": {
"description": "An internal, constructed, unique identifier, which may be the same as `identifier`",
"type": "string"
},
"date_published": {
"description": "The date of publication of the notice",
"type": "string",
"format": "date"
},
"summary": {
"description": "A brief summary of the notice's content",
"type": "string"
},
"subjects": {
"description": "The entities that the notice is primarily about",
"type": "array",
"items": {
"$ref": "includes/entity.json"
}
},
"related_entities": {
"description": "Other entities that the notice is about",
"type": "array",
"items": {
"$ref": "includes/entity.json"
}
},
"about": {
"description": "The content of the notice",
"type": "object",
"oneOf": [
{
"properties": {
"type": {
"description": "The class of content",
"type": "string",
"enum": [
"creation of subjects"
]
},
"classification": {
"description": "The type of creation",
"type": "array",
"items": {
"$ref": "includes/classification.json"
}
},
"body": {
"description": "The unstructured prose content",
"$ref": "#/definitions/body"
},
"registration_date": {
"description": "The date of registration",
"type": "string",
"format": "date"
},
"activity_start_date": {
"description": "The date on which activity started",
"type": "string",
"format": "date"
},
"previous_owners": {
"description": "The previous owners of the locations",
"type": "array",
"items": {
"$ref": "includes/entity.json"
}
},
"previous_operators": {
"description": "The previous operators of the locations",
"type": "array",
"items": {
"$ref": "includes/entity.json"
}
},
"locations": {
"description": "Some locations of the subjects",
"type": "array",
"items": {
"$ref": "#/definitions/location"
}
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"properties": {
"type": {
"description": "The class of content",
"type": "string",
"enum": [
"registration of locations"
]
},
"classification": {
"description": "The type of registration",
"type": "array",
"items": {
"$ref": "includes/classification.json"
}
},
"body": {
"description": "The unstructured prose content",
"$ref": "#/definitions/body"
},
"registration_date": {
"description": "The date on which the subjects are registered",
"type": "string",
"format": "date"
},
"activity_start_date": {
"description": "The date on which activity started",
"type": "string",
"format": "date"
},
"effective_date": {
"description": "The date from which the change is in effect",
"type": "string",
"format": "date"
},
"previous_owners": {
"description": "The previous owners of the locations",
"type": "array",
"items": {
"$ref": "includes/entity.json"
}
},
"previous_operators": {
"description": "The previous operators of the locations",
"type": "array",
"items": {
"$ref": "includes/entity.json"
}
},
"locations": {
"description": "Some locations of the subjects",
"type": "array",
"items": {
"$ref": "#/definitions/location"
}
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"properties": {
"type": {
"description": "The class of content",
"type": "string",
"enum": [
"sale of locations"
]
},
"classification": {
"description": "The type of sale",
"type": "array",
"items": {
"$ref": "includes/classification.json"
}
},
"body": {
"description": "The unstructured prose content",
"$ref": "#/definitions/body"
},
"registration_date": {
"description": "The date on which the subjects are registered",
"type": "string",
"format": "date"
},
"activity_start_date": {
"description": "The date on which activity started",
"type": "string",
"format": "date"
},
"effective_date": {
"description": "The date from which the change is in effect",
"type": "string",
"format": "date"
},
"publication": {
"description": "Another publication in which the notice is published",
"type": "object",
"properties": {
"title": {
"description": "The title of the publication",
"type": "string"
},
"date_published": {
"description": "The date of publication of the publication",
"type": "string",
"format": "date"
}
},
"additionalProperties": false,
"required": [
"title",
"date_published"
]
},
"opposition": {
"type": "string"
},
"statement_of_accounts": {
"type": "string"
},
"previous_owners": {
"description": "The previous owners of the locations",
"type": "array",
"items": {
"$ref": "includes/entity.json"
}
},
"previous_operators": {
"description": "The previous operators of the locations",
"type": "array",
"items": {
"$ref": "includes/entity.json"
}
},
"locations": {
"description": "Some locations of the subjects",
"type": "array",
"items": {
"$ref": "#/definitions/location"
}
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"properties": {
"type": {
"description": "The class of content",
"type": "string",
"enum": [
"judgment"
]
},
"classification": {
"description": "The type of judgment",
"type": "array",
"items": {
"$ref": "includes/classification.json"
}
},
"body": {
"description": "The unstructured prose content",
"$ref": "#/definitions/body"
},
"date": {
"description": "The date of the judgment",
"type": "string",
"format": "date"
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"properties": {
"type": {
"description": "The class of content",
"type": "string",
"enum": [
"other"
]
},
"classification": {
"description": "The type of judgment",
"type": "array",
"items": {
"$ref": "includes/classification.json"
}
},
"body": {
"description": "The unstructured prose content",
"$ref": "#/definitions/body"
},
"title": {
"description": "The title of the notice",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"type",
"body"
]
},
{
"properties": {
"type": {
"description": "The class of content",
"type": "string",
"enum": [
"modification of subjects"
]
},
"body": {
"description": "The unstructured prose content",
"$ref": "#/definitions/body"
},
"activity_start_date": {
"description": "The date on which activity started",
"type": "string",
"format": "date"
},
"effective_date": {
"description": "The date from which the change is in effect",
"type": "string",
"format": "date"
},
"previous_operators": {
"description": "The previous operators of the location",
"type": "array",
"items": {
"$ref": "includes/entity.json"
}
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"properties": {
"type": {
"description": "The class of content",
"type": "string",
"enum": [
"striking off of subjects"
]
},
"body": {
"description": "The unstructured prose content",
"$ref": "#/definitions/body"
},
"activity_end_date": {
"description": "The date on which activity ended",
"type": "string",
"format": "date"
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"properties": {
"type": {
"description": "The class of content",
"type": "string",
"enum": [
"filing"
]
},
"classification": {
"description": "The type of filing",
"type": "array",
"items": {
"$ref": "includes/classification.json"
}
},
"body": {
"description": "The unstructured prose content",
"$ref": "#/definitions/body"
},
"closing_date": {
"description": "The closing date of the filing",
"type": "string",
"format": "date"
}
},
"additionalProperties": false,
"required": [
"type"
]
}
]
},
"update_action": {
"description": "If this notice corrects or cancels an earlier notice, a description of the update",
"$ref": "#/definitions/update_action"
},
"issue": {
"description": "The issue of the gazette in which the notice is published. An issue contains many notices.",
"$ref": "#/definitions/issue"
},
"document": {
"description": "The section of the issue in which the notice is published. An issue may be split into many documents, each containing many notices.",
"$ref": "#/definitions/document"
},
"creator": {
"description": "The entity authoring the notice, for example a notary authoring a notice for a dissolution",
"$ref": "includes/entity.json"
},
"publisher": {
"description": "The publisher of the notice, for example a clerk entering the notice into the gazette",
"$ref": "#/definitions/publisher"
},
"url": {
"description": "The URL of the notice, at which a human may verify the data",
"type": "string",
"format": "uri"
},
"media_type": {
"description": "The media type of the URL resource",
"type": "string"
},
"source_url": {
"description": "The URL of the file from which the data was extracted by the scraper",
"type": "string",
"format": "uri"
},
"sample_date": {
"description": "A date on which the data is known to be true",
"type": "string",
"format": "date"
},
"retrieved_at": {
"description": "The time or date at which the source URL was requested",
"type": "string",
"format": "date"
},
"confidence": {
"description": "The scraper's author's confidence in the accuracy of the data",
"type": "string",
"enum": [
"HIGH",
"MEDIUM",
"LOW"
]
},
"other_attributes": {
"description": "Any other structured data from the notice",
"type": "object"
}
},
"additionalProperties": false,
"required": [
"issue",
"uid",
"source_url",
"sample_date",
"confidence"
],
"definitions": {
"issue": {
"title": "Issue",
"description": "An issue of a gazette",
"type": "object",
"properties": {
"publication": {
"description": "The gazette of which the issue is a part",
"$ref": "#/definitions/publication"
},
"identifier": {
"description": "The identifier of the issue",
"type": [
"string",
"integer"
]
},
"title": {
"description": "The title of the issue",
"type": "string"
},
"edition_id": {
"description": "The identifier of the edition of which the issue is a part",
"type": [
"string",
"integer"
]
},
"page_range": {
"description": "The page range of the issue within the edition",
"type": "string",
"pattern": "^[0-9]*(-[0-9]*)?$"
},
"url": {
"description": "The URL of the issue",
"type": "string",
"format": "uri"
},
"media_type": {
"description": "The media type of the URL resource",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"publication"
]
},
"publication": {
"title": "Publication",
"description": "A gazette",
"type": "object",
"properties": {
"publisher": {
"description": "The publisher of the gazette",
"$ref": "#/definitions/publisher"
},
"jurisdiction_code": {
"description": "The jurisdiction covered by the gazette",
"type": "string"
},
"title": {
"description": "The title of the gazette",
"type": "string"
},
"url": {
"description": "The URL of the gazette",
"type": "string",
"format": "uri"
},
"media_type": {
"description": "The media type of the URL resource",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"publisher"
]
},
"publisher": {
"title": "Publisher",
"description": "A gazette publisher",
"type": "object",
"properties": {
"name": {
"description": "The name of the publisher",
"type": "string"
},
"identifier": {
"description": "The identifier of the publisher",
"type": [
"integer",
"string"
]
},
"url": {
"description": "The URL of the publisher",
"type": "string",
"format": "uri"
},
"media_type": {
"description": "The media type of the URL resource",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"name"
]
},
"document": {
"title": "Document",
"description": "A section of an issue",
"type": "object",
"properties": {
"page_range": {
"description": "The page range of the document within the issue",
"type": "string",
"pattern": "^[0-9]*(-[0-9]*)?$"
},
"url": {
"description": "The URL of the document",
"type": "string",
"format": "uri"
},
"media_type": {
"description": "The media type of the URL resource",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"url"
]
},
"location": {
"title": "Location",
"description": "A business location",
"type": "object",
"properties": {
"type": {
"description": "The type of location",
"type": "string",
"enum": [
"primary",
"secondary",
"other"
]
},
"name": {
"description": "The name of the location",
"type": "string"
},
"activity": {
"description": "The business activity at the location",
"type": "string"
},
"address": {
"description": "The address of the location",
"$ref": "includes/address.json"
},
"origin": {
"description": "The origin of the location as an asset",
"type": "string"
}
},
"additionalProperties": false
},
"body": {
"title": "Body",
"description": "Content",
"type": "object",
"properties": {
"value": {
"description": "The content",
"type": "string"
},
"media_type": {
"description": "The media type of the content",
"type": "string",
"enum": [
"application/pdf",
"application/xml",
"text/plain",
"text/html"
]
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"update_action": {
"title": "Update action",
"description": "An act of changing an object",
"type": "object",
"properties": {
"type": {
"description": "The type of change",
"type": "string",
"enum": [
"cancellation",
"correction"
]
},
"object": {
"description": "The object that was changed",
"type": "object",
"properties": {
"identifier": {
"description": "The publisher's identifier for the notice, which may not be unique",
"type": [
"integer",
"string"
]
},
"date_published": {
"description": "The date of publication of the notice",
"type": "string",
"format": "date"
},
"issue": {
"description": "The issue of the gazette in which the notice is published. An issue contains many notices.",
"type": "object",
"properties": {
"identifier": {
"description": "The identifier of the issue",
"type": [
"string",
"integer"
]
},
"edition_id": {
"description": "The identifier of the edition of which the issue is a part",
"type": [
"string",
"integer"
]
}
},
"additionalProperties": false,
"required": [
"identifier"
]
}
},
"additionalProperties": false,
"required": [
"issue",
"identifier"
]
}
},
"additionalProperties": false,
"required": [
"object"
]
}
}
}