diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index aa7f12d..8cccdea 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -15,4 +15,3 @@ If you have edited any schema files: - [ ] Run `hsds_schema.py` to update `datapackage.json` and example files -- [ ] Update the [logical model](http://docs.openreferral.org/en/latest/hsds/logical_model/) page if relevant diff --git a/database/database_postgresql.sql b/database/database_postgresql.sql index de7fd83..61f5a04 100644 --- a/database/database_postgresql.sql +++ b/database/database_postgresql.sql @@ -245,7 +245,8 @@ CREATE TABLE public.attribute ( taxonomy_term_id character varying(250) NOT NULL, link_type text, link_entity text NOT NULL, - value text + value text, + label text ); @@ -293,6 +294,13 @@ COMMENT ON COLUMN public.attribute.link_entity IS 'The table of the Link Identif COMMENT ON COLUMN public.attribute.value IS 'The value (if any) of an attribute.'; +-- +-- Name: COLUMN attribute.label; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.attribute.label IS 'A free text label of the attribute.'; + + -- -- Name: contact; Type: TABLE; Schema: public; Owner: postgres -- @@ -1528,6 +1536,7 @@ COMMENT ON COLUMN public.service.last_modified IS 'The datetime when the service CREATE TABLE public.service_area ( id character varying(250) NOT NULL, service_id character varying(250), + service_at_location_id character varying(250), name text, description text, extent text, @@ -1552,6 +1561,13 @@ COMMENT ON COLUMN public.service_area.id IS 'The identifier for the service area COMMENT ON COLUMN public.service_area.service_id IS 'The identifier of the service for which this entry describes the service area'; +-- +-- Name: COLUMN service_area.service_at_location_id; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.service_area.service_at_location_id IS 'The identifier of the service at location object linked to this object.'; + + -- -- Name: COLUMN service_area.name; Type: COMMENT; Schema: public; Owner: postgres -- @@ -1629,6 +1645,72 @@ COMMENT ON COLUMN public.service_at_location.location_id IS 'The identifier of t COMMENT ON COLUMN public.service_at_location.description IS 'A free text description of the service at this specific location.'; +-- +-- Name: service_capacity; Type: TABLE; Schema: public; Owner: postgres +-- + +CREATE TABLE public.service_capacity ( + id character varying(250) NOT NULL, + service_id character varying(250) NOT NULL, + unit_id character varying(250) NOT NULL, + available numeric NOT NULL, + maximum numeric, + description text, + updated timestamp without time zone NOT NULL +); + + +ALTER TABLE public.service_capacity OWNER TO postgres; + +-- +-- Name: COLUMN service_capacity.id; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.service_capacity.id IS 'The identifier for the service_capacity object. Each service_capacity must have a unique identifier.'; + + +-- +-- Name: COLUMN service_capacity.service_id; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.service_capacity.service_id IS 'The identifier for the Service object associated with this service capacity object. Only required in the tabular representation.'; + + +-- +-- Name: COLUMN service_capacity.unit_id; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.service_capacity.unit_id IS 'The identifier for the unit object.'; + + +-- +-- Name: COLUMN service_capacity.available; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.service_capacity.available IS 'The number of units available as of the last update.'; + + +-- +-- Name: COLUMN service_capacity.maximum; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.service_capacity.maximum IS 'The maximum number of units that can be available for this service, if applicable'; + + +-- +-- Name: COLUMN service_capacity.description; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.service_capacity.description IS 'A Human-Friendly description of this service capacity e.g. “Beds available for people experiencing homelessness”'; + + +-- +-- Name: COLUMN service_capacity.updated; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.service_capacity.updated IS 'The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. '; + + -- -- Name: taxonomy; Type: TABLE; Schema: public; Owner: postgres -- @@ -1744,7 +1826,7 @@ COMMENT ON COLUMN public.taxonomy_term.taxonomy IS 'If this is an established ta -- Name: COLUMN taxonomy_term.language; Type: COMMENT; Schema: public; Owner: postgres -- -COMMENT ON COLUMN public.taxonomy_term.language IS 'An ISO 639-1, or ISO 639-2 [language code](available at http://www.loc.gov/standards/iso639-2/php/code_list.php) to represent the language of the term. The three-letter codes from ISO 639-2 provide greater accuracy when describing variants of languages, which may be relevant to particular communities.'; +COMMENT ON COLUMN public.taxonomy_term.language IS 'An ISO 639-1, ISO 639-2, or ISO 639-3 [language code](http://www.loc.gov/standards/iso639-2/php/code_list.php) to represent the language of the term. The three-letter codes from ISO 639-2 and ISO 639-3 provide greater accuracy when describing variants of languages, which may be relevant to particular communities.'; -- @@ -1761,6 +1843,56 @@ COMMENT ON COLUMN public.taxonomy_term.taxonomy_id IS 'The identifier of the tax COMMENT ON COLUMN public.taxonomy_term.term_uri IS 'URI of the term.'; +-- +-- Name: unit; Type: TABLE; Schema: public; Owner: postgres +-- + +CREATE TABLE public.unit ( + id character varying(250) NOT NULL, + name text NOT NULL, + scheme text, + identifier text, + uri text +); + + +ALTER TABLE public.unit OWNER TO postgres; + +-- +-- Name: COLUMN unit.id; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.unit.id IS 'The identifier for the unit object. Each unit must have a unique identifier.'; + + +-- +-- Name: COLUMN unit.name; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.unit.name IS 'The human-readable name for this unit e.g. “Bed” or “Hours”'; + + +-- +-- Name: COLUMN unit.scheme; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.unit.scheme IS 'The scheme which formalizes the unit, if applicable e.g. “SI” for Standard International Units such as Kilogram, Litre, etc.'; + + +-- +-- Name: COLUMN unit.identifier; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.unit.identifier IS 'The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.'; + + +-- +-- Name: COLUMN unit.uri; Type: COMMENT; Schema: public; Owner: postgres +-- + +COMMENT ON COLUMN public.unit.uri IS 'The URI to the definition of the unit, if applicable'; + + -- -- Name: url; Type: TABLE; Schema: public; Owner: postgres -- @@ -1963,6 +2095,14 @@ ALTER TABLE ONLY public.service_at_location ADD CONSTRAINT service_at_location_pkey PRIMARY KEY (id); +-- +-- Name: service_capacity service_capacity_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public.service_capacity + ADD CONSTRAINT service_capacity_pkey PRIMARY KEY (id); + + -- -- Name: service service_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- @@ -1995,6 +2135,14 @@ ALTER TABLE ONLY public.taxonomy_term ADD CONSTRAINT taxonomy_term_pkey PRIMARY KEY (id); +-- +-- Name: unit unit_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public.unit + ADD CONSTRAINT unit_pkey PRIMARY KEY (id); + + -- -- Name: url url_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- @@ -2203,6 +2351,14 @@ ALTER TABLE ONLY public.schedule ADD CONSTRAINT schedule_service_id_fkey FOREIGN KEY (service_id) REFERENCES public.service(id); +-- +-- Name: service_area service_area_service_at_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public.service_area + ADD CONSTRAINT service_area_service_at_location_id_fkey FOREIGN KEY (service_at_location_id) REFERENCES public.service_at_location(id); + + -- -- Name: service_area service_area_service_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- @@ -2227,6 +2383,22 @@ ALTER TABLE ONLY public.service_at_location ADD CONSTRAINT service_at_location_service_id_fkey FOREIGN KEY (service_id) REFERENCES public.service(id); +-- +-- Name: service_capacity service_capacity_service_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public.service_capacity + ADD CONSTRAINT service_capacity_service_id_fkey FOREIGN KEY (service_id) REFERENCES public.service(id); + + +-- +-- Name: service_capacity service_capacity_unit_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public.service_capacity + ADD CONSTRAINT service_capacity_unit_id_fkey FOREIGN KEY (unit_id) REFERENCES public.unit(id); + + -- -- Name: service service_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- diff --git a/datapackage.json b/datapackage.json index b91dadb..a54e309 100644 --- a/datapackage.json +++ b/datapackage.json @@ -1838,7 +1838,7 @@ "required": false, "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, { @@ -2761,6 +2761,18 @@ "schema": { "primaryKey": "id", "fields": [ + { + "name": "id", + "title": "Identifier", + "type": "string", + "constraints": { + "required": true, + "unique": true + }, + "format": "uuid", + "description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.", + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" + }, { "name": "service_id", "title": "Service Identifier", @@ -2771,7 +2783,7 @@ "required": true, "unique": false }, - "example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4" + "example": "ac148810-d857-441c-9679-408f346de14b" }, { "name": "unit_id", @@ -2783,7 +2795,51 @@ "required": true, "unique": false }, - "example": "187a37a2-7b40-11ef-9790-dbf7623d4407" + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" + }, + { + "name": "available", + "title": "Available", + "type": "number", + "constraints": { + "required": true, + "unique": false + }, + "description": "The number of units available as of the last update.", + "example": "12" + }, + { + "name": "maximum", + "title": "Maximum", + "type": "number", + "constraints": { + "required": false, + "unique": false + }, + "description": "The maximum number of units that can be available for this service, if applicable", + "example": "10" + }, + { + "name": "description", + "title": "Description", + "type": "string", + "constraints": { + "required": false, + "unique": false + }, + "description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d", + "example": "Beds available for people experiencing homelessness." + }, + { + "name": "updated", + "title": "Date Updated", + "type": "datetime", + "constraints": { + "required": true, + "unique": false + }, + "description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ", + "example": "2024-09-25T14:23:06.5+01:00" } ], "foreignKeys": [ @@ -2813,7 +2869,65 @@ "profile": "tabular-data-resource", "schema": { "primaryKey": "id", - "fields": [] + "fields": [ + { + "name": "id", + "type": "string", + "format": "uuid", + "constraints": { + "required": true, + "unique": true + }, + "title": "Identifier", + "description": "The identifier for the unit object. Each unit must have a unique identifier.", + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" + }, + { + "name": "name", + "type": "string", + "constraints": { + "required": true, + "unique": false + }, + "title": "Name", + "description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d", + "example": "Kilogram" + }, + { + "name": "scheme", + "type": "string", + "constraints": { + "required": false, + "unique": false + }, + "title": "Scheme", + "description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.", + "example": "SI" + }, + { + "name": "identifier", + "type": "string", + "constraints": { + "required": false, + "unique": false + }, + "title": "Unit Identifier", + "description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.", + "example": "kgm" + }, + { + "name": "uri", + "type": "string", + "constraints": { + "required": false, + "unique": false + }, + "format": "uri", + "title": "URI", + "description": "The URI to the definition of the unit, if applicable", + "example": "https://not-a-real-url.org/standard-international-units/kgm" + } + ] } }, { @@ -2870,7 +2984,8 @@ "constraints": { "required": false, "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, { "name": "service_id", @@ -2881,7 +2996,8 @@ "constraints": { "required": false, "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" } ], "foreignKeys": [ diff --git a/examples/csv/service_areas.csv b/examples/csv/service_areas.csv index 223a2a6..7532aba 100644 --- a/examples/csv/service_areas.csv +++ b/examples/csv/service_areas.csv @@ -1,2 +1,2 @@ id,service_id,service_at_location_id,name,description,extent,extent_type,uri -381c64f1-a724-4884-9c21-ac96c21cca3e,ac148810-d857-441c-9679-408f346de14b,af69894e-7bed-11ef-a85c-07e0918a608c,The service is available to all residents of the MyCity area. We provide the service in our offices or via video conferencing to any who can provide evidence of their residency.,"The service is available to all residents of the MyCity area, including all postcodes starting with AB1, AB2, and AB3",extent,geojson,http://example.com +381c64f1-a724-4884-9c21-ac96c21cca3e,ac148810-d857-441c-9679-408f346de14b,e94c9f38-1e8f-4564-91d4-d53501ab1765,The service is available to all residents of the MyCity area. We provide the service in our offices or via video conferencing to any who can provide evidence of their residency.,"The service is available to all residents of the MyCity area, including all postcodes starting with AB1, AB2, and AB3",extent,geojson,http://example.com diff --git a/examples/csv/service_capacity.csv b/examples/csv/service_capacity.csv index 83780ba..e0699d5 100644 --- a/examples/csv/service_capacity.csv +++ b/examples/csv/service_capacity.csv @@ -1,2 +1,2 @@ id,service_id,unit_id,available,maximum,description,updated -8896b788-7b3e-11ef-8db9-7f3d040352b3,f75b808e-7bdb-11ef-afaa-ab00a77dc5c4,187a37a2-7b40-11ef-9790-dbf7623d4407,12,10,Beds available for people experiencing homelessness.,2024-09-25T14:23:06.5+01:00 +8896b788-7b3e-11ef-8db9-7f3d040352b3,ac148810-d857-441c-9679-408f346de14b,8896b788-7b3e-11ef-8db9-7f3d040352b3,12,10,Beds available for people experiencing homelessness.,2024-09-25T14:23:06.5+01:00 diff --git a/examples/csv/url.csv b/examples/csv/url.csv index 41cfb4b..5c64ed3 100644 --- a/examples/csv/url.csv +++ b/examples/csv/url.csv @@ -1,2 +1,2 @@ -id,label,url -30951f94-7b24-11ef-ba1b-a79405d4dcaa,Website,https://example.org +id,label,url,organization_id,service_id +30951f94-7b24-11ef-ba1b-a79405d4dcaa,Website,https://example.org,d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610,ac148810-d857-441c-9679-408f346de14b diff --git a/schema/compiled/organization.json b/schema/compiled/organization.json index 3b1a9f0..593e46d 100644 --- a/schema/compiled/organization.json +++ b/schema/compiled/organization.json @@ -136,7 +136,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -146,7 +147,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -18585,7 +18587,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -18595,7 +18598,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -22555,7 +22559,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -23530,7 +23534,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -41305,7 +41309,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -41315,7 +41320,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -65913,6 +65919,10 @@ "name": "id", "title": "Identifier", "type": "string", + "constraints": { + "required": true, + "unique": true + }, "format": "uuid", "description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -65926,7 +65936,7 @@ "constraints": { "unique": false }, - "example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4" + "example": "ac148810-d857-441c-9679-408f346de14b" }, "unit": { "name": "unit", @@ -65944,6 +65954,10 @@ "name": "id", "type": "string", "format": "uuid", + "constraints": { + "required": true, + "unique": true + }, "title": "Identifier", "description": "The identifier for the unit object. Each unit must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -65951,6 +65965,10 @@ "name": { "name": "name", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "title": "Name", "description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d", "example": "Kilogram" @@ -65958,6 +65976,10 @@ "scheme": { "name": "scheme", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Scheme", "description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.", "example": "SI" @@ -65965,6 +65987,10 @@ "identifier": { "name": "identifier", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Unit Identifier", "description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.", "example": "kgm" @@ -65972,6 +65998,10 @@ "uri": { "name": "uri", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "format": "uri", "title": "URI", "description": "The URI to the definition of the unit, if applicable", @@ -66793,12 +66823,16 @@ "constraints": { "unique": false }, - "example": "187a37a2-7b40-11ef-9790-dbf7623d4407" + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" }, "available": { "name": "available", "title": "Available", "type": "number", + "constraints": { + "required": true, + "unique": false + }, "description": "The number of units available as of the last update.", "example": "12" }, @@ -66806,6 +66840,10 @@ "name": "maximum", "title": "Maximum", "type": "number", + "constraints": { + "required": false, + "unique": false + }, "description": "The maximum number of units that can be available for this service, if applicable", "example": "10" }, @@ -66813,6 +66851,10 @@ "name": "description", "title": "Description", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d", "example": "Beds available for people experiencing homelessness." }, @@ -66820,7 +66862,12 @@ "name": "updated", "title": "Date Updated", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "format": "date-time", + "datapackage_type": "datetime", "description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ", "example": "2024-09-25T14:23:06.5+01:00" }, diff --git a/schema/compiled/organization_package.json b/schema/compiled/organization_package.json index 60bd1dc..3964688 100644 --- a/schema/compiled/organization_package.json +++ b/schema/compiled/organization_package.json @@ -138,7 +138,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -148,7 +149,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -18587,7 +18589,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -18597,7 +18600,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -22557,7 +22561,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -23532,7 +23536,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -41307,7 +41311,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -41317,7 +41322,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -65915,6 +65921,10 @@ "name": "id", "title": "Identifier", "type": "string", + "constraints": { + "required": true, + "unique": true + }, "format": "uuid", "description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -65928,7 +65938,7 @@ "constraints": { "unique": false }, - "example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4" + "example": "ac148810-d857-441c-9679-408f346de14b" }, "unit": { "name": "unit", @@ -65946,6 +65956,10 @@ "name": "id", "type": "string", "format": "uuid", + "constraints": { + "required": true, + "unique": true + }, "title": "Identifier", "description": "The identifier for the unit object. Each unit must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -65953,6 +65967,10 @@ "name": { "name": "name", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "title": "Name", "description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d", "example": "Kilogram" @@ -65960,6 +65978,10 @@ "scheme": { "name": "scheme", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Scheme", "description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.", "example": "SI" @@ -65967,6 +65989,10 @@ "identifier": { "name": "identifier", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Unit Identifier", "description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.", "example": "kgm" @@ -65974,6 +66000,10 @@ "uri": { "name": "uri", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "format": "uri", "title": "URI", "description": "The URI to the definition of the unit, if applicable", @@ -66795,12 +66825,16 @@ "constraints": { "unique": false }, - "example": "187a37a2-7b40-11ef-9790-dbf7623d4407" + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" }, "available": { "name": "available", "title": "Available", "type": "number", + "constraints": { + "required": true, + "unique": false + }, "description": "The number of units available as of the last update.", "example": "12" }, @@ -66808,6 +66842,10 @@ "name": "maximum", "title": "Maximum", "type": "number", + "constraints": { + "required": false, + "unique": false + }, "description": "The maximum number of units that can be available for this service, if applicable", "example": "10" }, @@ -66815,6 +66853,10 @@ "name": "description", "title": "Description", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d", "example": "Beds available for people experiencing homelessness." }, @@ -66822,7 +66864,12 @@ "name": "updated", "title": "Date Updated", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "format": "date-time", + "datapackage_type": "datetime", "description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ", "example": "2024-09-25T14:23:06.5+01:00" }, diff --git a/schema/compiled/service.json b/schema/compiled/service.json index 70bf14a..747812a 100644 --- a/schema/compiled/service.json +++ b/schema/compiled/service.json @@ -146,7 +146,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -156,7 +157,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -4116,7 +4118,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -5091,7 +5093,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -22866,7 +22868,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -22876,7 +22879,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -47474,6 +47478,10 @@ "name": "id", "title": "Identifier", "type": "string", + "constraints": { + "required": true, + "unique": true + }, "format": "uuid", "description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -47487,7 +47495,7 @@ "constraints": { "unique": false }, - "example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4" + "example": "ac148810-d857-441c-9679-408f346de14b" }, "unit": { "name": "unit", @@ -47505,6 +47513,10 @@ "name": "id", "type": "string", "format": "uuid", + "constraints": { + "required": true, + "unique": true + }, "title": "Identifier", "description": "The identifier for the unit object. Each unit must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -47512,6 +47524,10 @@ "name": { "name": "name", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "title": "Name", "description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d", "example": "Kilogram" @@ -47519,6 +47535,10 @@ "scheme": { "name": "scheme", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Scheme", "description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.", "example": "SI" @@ -47526,6 +47546,10 @@ "identifier": { "name": "identifier", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Unit Identifier", "description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.", "example": "kgm" @@ -47533,6 +47557,10 @@ "uri": { "name": "uri", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "format": "uri", "title": "URI", "description": "The URI to the definition of the unit, if applicable", @@ -48354,12 +48382,16 @@ "constraints": { "unique": false }, - "example": "187a37a2-7b40-11ef-9790-dbf7623d4407" + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" }, "available": { "name": "available", "title": "Available", "type": "number", + "constraints": { + "required": true, + "unique": false + }, "description": "The number of units available as of the last update.", "example": "12" }, @@ -48367,6 +48399,10 @@ "name": "maximum", "title": "Maximum", "type": "number", + "constraints": { + "required": false, + "unique": false + }, "description": "The maximum number of units that can be available for this service, if applicable", "example": "10" }, @@ -48374,6 +48410,10 @@ "name": "description", "title": "Description", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d", "example": "Beds available for people experiencing homelessness." }, @@ -48381,7 +48421,12 @@ "name": "updated", "title": "Date Updated", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "format": "date-time", + "datapackage_type": "datetime", "description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ", "example": "2024-09-25T14:23:06.5+01:00" }, diff --git a/schema/compiled/service_at_location.json b/schema/compiled/service_at_location.json index d99d9e7..7252841 100644 --- a/schema/compiled/service_at_location.json +++ b/schema/compiled/service_at_location.json @@ -106,7 +106,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -16980,7 +16980,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -16990,7 +16991,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -20950,7 +20952,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -22851,7 +22853,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -22861,7 +22864,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -47459,6 +47463,10 @@ "name": "id", "title": "Identifier", "type": "string", + "constraints": { + "required": true, + "unique": true + }, "format": "uuid", "description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -47472,7 +47480,7 @@ "constraints": { "unique": false }, - "example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4" + "example": "ac148810-d857-441c-9679-408f346de14b" }, "unit": { "name": "unit", @@ -47490,6 +47498,10 @@ "name": "id", "type": "string", "format": "uuid", + "constraints": { + "required": true, + "unique": true + }, "title": "Identifier", "description": "The identifier for the unit object. Each unit must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -47497,6 +47509,10 @@ "name": { "name": "name", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "title": "Name", "description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d", "example": "Kilogram" @@ -47504,6 +47520,10 @@ "scheme": { "name": "scheme", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Scheme", "description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.", "example": "SI" @@ -47511,6 +47531,10 @@ "identifier": { "name": "identifier", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Unit Identifier", "description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.", "example": "kgm" @@ -47518,6 +47542,10 @@ "uri": { "name": "uri", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "format": "uri", "title": "URI", "description": "The URI to the definition of the unit, if applicable", @@ -48339,12 +48367,16 @@ "constraints": { "unique": false }, - "example": "187a37a2-7b40-11ef-9790-dbf7623d4407" + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" }, "available": { "name": "available", "title": "Available", "type": "number", + "constraints": { + "required": true, + "unique": false + }, "description": "The number of units available as of the last update.", "example": "12" }, @@ -48352,6 +48384,10 @@ "name": "maximum", "title": "Maximum", "type": "number", + "constraints": { + "required": false, + "unique": false + }, "description": "The maximum number of units that can be available for this service, if applicable", "example": "10" }, @@ -48359,6 +48395,10 @@ "name": "description", "title": "Description", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d", "example": "Beds available for people experiencing homelessness." }, @@ -48366,7 +48406,12 @@ "name": "updated", "title": "Date Updated", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "format": "date-time", + "datapackage_type": "datetime", "description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ", "example": "2024-09-25T14:23:06.5+01:00" }, diff --git a/schema/compiled/service_at_location_package.json b/schema/compiled/service_at_location_package.json index 2f038d1..ce2e9e1 100644 --- a/schema/compiled/service_at_location_package.json +++ b/schema/compiled/service_at_location_package.json @@ -108,7 +108,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -16982,7 +16982,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -16992,7 +16993,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -20952,7 +20954,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -22853,7 +22855,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -22863,7 +22866,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -47461,6 +47465,10 @@ "name": "id", "title": "Identifier", "type": "string", + "constraints": { + "required": true, + "unique": true + }, "format": "uuid", "description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -47474,7 +47482,7 @@ "constraints": { "unique": false }, - "example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4" + "example": "ac148810-d857-441c-9679-408f346de14b" }, "unit": { "name": "unit", @@ -47492,6 +47500,10 @@ "name": "id", "type": "string", "format": "uuid", + "constraints": { + "required": true, + "unique": true + }, "title": "Identifier", "description": "The identifier for the unit object. Each unit must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -47499,6 +47511,10 @@ "name": { "name": "name", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "title": "Name", "description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d", "example": "Kilogram" @@ -47506,6 +47522,10 @@ "scheme": { "name": "scheme", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Scheme", "description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.", "example": "SI" @@ -47513,6 +47533,10 @@ "identifier": { "name": "identifier", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Unit Identifier", "description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.", "example": "kgm" @@ -47520,6 +47544,10 @@ "uri": { "name": "uri", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "format": "uri", "title": "URI", "description": "The URI to the definition of the unit, if applicable", @@ -48341,12 +48369,16 @@ "constraints": { "unique": false }, - "example": "187a37a2-7b40-11ef-9790-dbf7623d4407" + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" }, "available": { "name": "available", "title": "Available", "type": "number", + "constraints": { + "required": true, + "unique": false + }, "description": "The number of units available as of the last update.", "example": "12" }, @@ -48354,6 +48386,10 @@ "name": "maximum", "title": "Maximum", "type": "number", + "constraints": { + "required": false, + "unique": false + }, "description": "The maximum number of units that can be available for this service, if applicable", "example": "10" }, @@ -48361,6 +48397,10 @@ "name": "description", "title": "Description", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d", "example": "Beds available for people experiencing homelessness." }, @@ -48368,7 +48408,12 @@ "name": "updated", "title": "Date Updated", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "format": "date-time", + "datapackage_type": "datetime", "description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ", "example": "2024-09-25T14:23:06.5+01:00" }, diff --git a/schema/compiled/service_package.json b/schema/compiled/service_package.json index 9e0aacf..8de87b2 100644 --- a/schema/compiled/service_package.json +++ b/schema/compiled/service_package.json @@ -148,7 +148,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -158,7 +159,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -4118,7 +4120,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -5093,7 +5095,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -22868,7 +22870,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -22878,7 +22881,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -47476,6 +47480,10 @@ "name": "id", "title": "Identifier", "type": "string", + "constraints": { + "required": true, + "unique": true + }, "format": "uuid", "description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -47489,7 +47497,7 @@ "constraints": { "unique": false }, - "example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4" + "example": "ac148810-d857-441c-9679-408f346de14b" }, "unit": { "name": "unit", @@ -47507,6 +47515,10 @@ "name": "id", "type": "string", "format": "uuid", + "constraints": { + "required": true, + "unique": true + }, "title": "Identifier", "description": "The identifier for the unit object. Each unit must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -47514,6 +47526,10 @@ "name": { "name": "name", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "title": "Name", "description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d", "example": "Kilogram" @@ -47521,6 +47537,10 @@ "scheme": { "name": "scheme", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Scheme", "description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.", "example": "SI" @@ -47528,6 +47548,10 @@ "identifier": { "name": "identifier", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Unit Identifier", "description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.", "example": "kgm" @@ -47535,6 +47559,10 @@ "uri": { "name": "uri", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "format": "uri", "title": "URI", "description": "The URI to the definition of the unit, if applicable", @@ -48356,12 +48384,16 @@ "constraints": { "unique": false }, - "example": "187a37a2-7b40-11ef-9790-dbf7623d4407" + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" }, "available": { "name": "available", "title": "Available", "type": "number", + "constraints": { + "required": true, + "unique": false + }, "description": "The number of units available as of the last update.", "example": "12" }, @@ -48369,6 +48401,10 @@ "name": "maximum", "title": "Maximum", "type": "number", + "constraints": { + "required": false, + "unique": false + }, "description": "The maximum number of units that can be available for this service, if applicable", "example": "10" }, @@ -48376,6 +48412,10 @@ "name": "description", "title": "Description", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d", "example": "Beds available for people experiencing homelessness." }, @@ -48383,7 +48423,12 @@ "name": "updated", "title": "Date Updated", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "format": "date-time", + "datapackage_type": "datetime", "description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ", "example": "2024-09-25T14:23:06.5+01:00" }, diff --git a/schema/compiled/service_with_definitions.json b/schema/compiled/service_with_definitions.json index 35a9b7e..c7a5460 100644 --- a/schema/compiled/service_with_definitions.json +++ b/schema/compiled/service_with_definitions.json @@ -2094,7 +2094,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { @@ -3075,110 +3075,6 @@ "description" ] }, - "service_capacity": { - "name": "service_capacity", - "path": "service_capacity.csv", - "description": "The details of service capacities for services.", - "datapackage_metadata": { - "format": "csv", - "mediatype": "text/csv", - "profile": "tabular-data-resource", - "order": 99 - }, - "type": "object", - "properties": { - "id": { - "name": "id", - "title": "Identifier", - "type": "string", - "format": "uuid", - "description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.", - "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" - }, - "service_id": { - "name": "service_id", - "title": "Service Identifier", - "type": "string", - "format": "uuid", - "description": "The identifier for the Service object associated with this service capacity object. Only required in the tabular representation.", - "constraints": { - "unique": false - }, - "example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4" - }, - "unit": { - "$ref": "#/definitions/unit" - }, - "unit_id": { - "name": "unit_id", - "title": "Unit ID", - "type": "string", - "format": "uuid", - "description": "The identifier for the unit object.", - "constraints": { - "unique": false - }, - "example": "187a37a2-7b40-11ef-9790-dbf7623d4407" - }, - "available": { - "name": "available", - "title": "Available", - "type": "number", - "description": "The number of units available as of the last update.", - "example": "12" - }, - "maximum": { - "name": "maximum", - "title": "Maximum", - "type": "number", - "description": "The maximum number of units that can be available for this service, if applicable", - "example": "10" - }, - "description": { - "name": "description", - "title": "Description", - "type": "string", - "description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d", - "example": "Beds available for people experiencing homelessness." - }, - "updated": { - "name": "updated", - "title": "Date Updated", - "type": "string", - "format": "date-time", - "description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ", - "example": "2024-09-25T14:23:06.5+01:00" - }, - "attributes": { - "name": "attributes", - "type": "array", - "title": "Attributes", - "description": "A link between a service and one or more classifications that describe the nature of the service provided.", - "items": { - "$ref": "#/definitions/attribute" - } - }, - "metadata": { - "name": "metadata", - "type": "array", - "title": "Metadata", - "description": "A record of the changes that have been made to the data in order to maintain provenance information.", - "items": { - "$ref": "#/definitions/metadata" - } - } - }, - "required": [ - "id", - "unit", - "available", - "updated" - ], - "tabular_required": [ - "unit_id", - "service_id" - ] - }, "url": { "name": "url", "path": "url.csv", @@ -3231,7 +3127,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -3241,7 +3138,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes", @@ -3283,6 +3181,10 @@ "name": "id", "type": "string", "format": "uuid", + "constraints": { + "required": true, + "unique": true + }, "title": "Identifier", "description": "The identifier for the unit object. Each unit must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -3290,6 +3192,10 @@ "name": { "name": "name", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "title": "Name", "description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d", "example": "Kilogram" @@ -3297,6 +3203,10 @@ "scheme": { "name": "scheme", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Scheme", "description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.", "example": "SI" @@ -3304,6 +3214,10 @@ "identifier": { "name": "identifier", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Unit Identifier", "description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.", "example": "kgm" @@ -3311,6 +3225,10 @@ "uri": { "name": "uri", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "format": "uri", "title": "URI", "description": "The URI to the definition of the unit, if applicable", @@ -3339,6 +3257,131 @@ "id", "name" ] + }, + "service_capacity": { + "name": "service_capacity", + "path": "service_capacity.csv", + "description": "The details of service capacities for services.", + "datapackage_metadata": { + "format": "csv", + "mediatype": "text/csv", + "profile": "tabular-data-resource", + "order": 99 + }, + "type": "object", + "properties": { + "id": { + "name": "id", + "title": "Identifier", + "type": "string", + "constraints": { + "required": true, + "unique": true + }, + "format": "uuid", + "description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.", + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" + }, + "service_id": { + "name": "service_id", + "title": "Service Identifier", + "type": "string", + "format": "uuid", + "description": "The identifier for the Service object associated with this service capacity object. Only required in the tabular representation.", + "constraints": { + "unique": false + }, + "example": "ac148810-d857-441c-9679-408f346de14b" + }, + "unit": { + "$ref": "#/definitions/unit" + }, + "unit_id": { + "name": "unit_id", + "title": "Unit ID", + "type": "string", + "format": "uuid", + "description": "The identifier for the unit object.", + "constraints": { + "unique": false + }, + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" + }, + "available": { + "name": "available", + "title": "Available", + "type": "number", + "constraints": { + "required": true, + "unique": false + }, + "description": "The number of units available as of the last update.", + "example": "12" + }, + "maximum": { + "name": "maximum", + "title": "Maximum", + "type": "number", + "constraints": { + "required": false, + "unique": false + }, + "description": "The maximum number of units that can be available for this service, if applicable", + "example": "10" + }, + "description": { + "name": "description", + "title": "Description", + "type": "string", + "constraints": { + "required": false, + "unique": false + }, + "description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d", + "example": "Beds available for people experiencing homelessness." + }, + "updated": { + "name": "updated", + "title": "Date Updated", + "type": "string", + "constraints": { + "required": true, + "unique": false + }, + "format": "date-time", + "datapackage_type": "datetime", + "description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ", + "example": "2024-09-25T14:23:06.5+01:00" + }, + "attributes": { + "name": "attributes", + "type": "array", + "title": "Attributes", + "description": "A link between a service and one or more classifications that describe the nature of the service provided.", + "items": { + "$ref": "#/definitions/attribute" + } + }, + "metadata": { + "name": "metadata", + "type": "array", + "title": "Metadata", + "description": "A record of the changes that have been made to the data in order to maintain provenance information.", + "items": { + "$ref": "#/definitions/metadata" + } + } + }, + "required": [ + "id", + "unit", + "available", + "updated" + ], + "tabular_required": [ + "unit_id", + "service_id" + ] } } } \ No newline at end of file diff --git a/schema/service_area.json b/schema/service_area.json index d73a823..6972831 100644 --- a/schema/service_area.json +++ b/schema/service_area.json @@ -43,7 +43,7 @@ "constraints": { "unique": false }, - "example": "af69894e-7bed-11ef-a85c-07e0918a608c", + "example": "e94c9f38-1e8f-4564-91d4-d53501ab1765", "core": "Y" }, "name": { diff --git a/schema/service_capacity.json b/schema/service_capacity.json index eedb295..4cb6105 100644 --- a/schema/service_capacity.json +++ b/schema/service_capacity.json @@ -14,6 +14,10 @@ "name": "id", "title": "Identifier", "type": "string", + "constraints": { + "required": true, + "unique": true + }, "format": "uuid", "description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -27,7 +31,7 @@ "constraints": { "unique": false }, - "example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4" + "example": "ac148810-d857-441c-9679-408f346de14b" }, "unit": { "$ref": "unit.json" @@ -41,12 +45,16 @@ "constraints": { "unique": false }, - "example": "187a37a2-7b40-11ef-9790-dbf7623d4407" + "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" }, "available": { "name": "available", "title": "Available", "type": "number", + "constraints": { + "required": true, + "unique": false + }, "description": "The number of units available as of the last update.", "example": "12" }, @@ -54,6 +62,10 @@ "name": "maximum", "title": "Maximum", "type": "number", + "constraints": { + "required": false, + "unique": false + }, "description": "The maximum number of units that can be available for this service, if applicable", "example": "10" }, @@ -61,6 +73,10 @@ "name": "description", "title": "Description", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "description": "A Human-Friendly description of this service capacity e.g. “Beds available for people experiencing homelessness”", "example": "Beds available for people experiencing homelessness." }, @@ -68,7 +84,12 @@ "name": "updated", "title": "Date Updated", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "format": "date-time", + "datapackage_type": "datetime", "description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ", "example": "2024-09-25T14:23:06.5+01:00" }, diff --git a/schema/unit.json b/schema/unit.json index 7632caf..bc03ce3 100644 --- a/schema/unit.json +++ b/schema/unit.json @@ -14,6 +14,10 @@ "name": "id", "type": "string", "format": "uuid", + "constraints": { + "required": true, + "unique": true + }, "title": "Identifier", "description": "The identifier for the unit object. Each unit must have a unique identifier.", "example": "8896b788-7b3e-11ef-8db9-7f3d040352b3" @@ -21,6 +25,10 @@ "name": { "name": "name", "type": "string", + "constraints": { + "required": true, + "unique": false + }, "title": "Name", "description": "The human-readable name for this unit e.g. “Bed” or “Hours”", "example": "Kilogram" @@ -28,6 +36,10 @@ "scheme": { "name": "scheme", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Scheme", "description": "The scheme which formalizes the unit, if applicable e.g. “SI” for Standard International Units such as Kilogram, Litre, etc.", "example": "SI" @@ -35,6 +47,10 @@ "identifier": { "name": "identifier", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "title": "Unit Identifier", "description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.", "example": "kgm" @@ -42,6 +58,10 @@ "uri": { "name": "uri", "type": "string", + "constraints": { + "required": false, + "unique": false + }, "format": "uri", "title": "URI", "description": "The URI to the definition of the unit, if applicable", diff --git a/schema/url.json b/schema/url.json index 1daf216..f6519a0 100644 --- a/schema/url.json +++ b/schema/url.json @@ -50,7 +50,8 @@ "description": "The identifier for the organization associated with this URL object", "constraints": { "unique": false - } + }, + "example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610" }, "service_id": { "name": "service_id", @@ -60,7 +61,8 @@ "description": "The identifier for the service associated with this URL object", "constraints": { "unique": false - } + }, + "example": "ac148810-d857-441c-9679-408f346de14b" }, "attributes": { "name": "attributes",