From f47401add3829540038a16df6bb8a30947070464 Mon Sep 17 00:00:00 2001 From: Kudela Date: Wed, 8 Nov 2023 17:41:09 +0100 Subject: [PATCH] format files --- PROJECTS.json | 2 +- .../9734b5c3-fa35-4e45-878e-1deb62db97d5.json | 74 +++++-------------- .../97408d45-9570-4cad-a623-6007573bf070.json | 30 ++------ SCHEMATA/project_schema.ts | 58 +++++++-------- 4 files changed, 57 insertions(+), 107 deletions(-) diff --git a/PROJECTS.json b/PROJECTS.json index 65b705923..f796267f0 100644 --- a/PROJECTS.json +++ b/PROJECTS.json @@ -611,4 +611,4 @@ "title": "Zodiac - Ancient Astral Science in Transformation", "path": "/PROJECTS/zodiac/" } -} \ No newline at end of file +} diff --git a/PROJECTS/fihrist/9734b5c3-fa35-4e45-878e-1deb62db97d5.json b/PROJECTS/fihrist/9734b5c3-fa35-4e45-878e-1deb62db97d5.json index 94612b797..6a726cf6e 100644 --- a/PROJECTS/fihrist/9734b5c3-fa35-4e45-878e-1deb62db97d5.json +++ b/PROJECTS/fihrist/9734b5c3-fa35-4e45-878e-1deb62db97d5.json @@ -26,9 +26,7 @@ { "place_name": { "text": "Oxford", - "ref": [ - "https://www.geonames.org/2640729/oxford.html" - ] + "ref": ["https://www.geonames.org/2640729/oxford.html"] }, "coordinates": { "lat": "51.75222", @@ -38,9 +36,7 @@ { "place_name": { "text": "Cambridge", - "ref": [ - "https://www.geonames.org/2653941/cambridge.html" - ] + "ref": ["https://www.geonames.org/2653941/cambridge.html"] }, "coordinates": { "lat": "52.2", @@ -50,9 +46,7 @@ { "place_name": { "text": "Manchester", - "ref": [ - "https://www.geonames.org/2643123/manchester.html" - ] + "ref": ["https://www.geonames.org/2643123/manchester.html"] }, "coordinates": { "lat": "53.48095", @@ -62,9 +56,7 @@ { "place_name": { "text": "Birmingham", - "ref": [ - "https://www.geonames.org/2655603/birmingham.html" - ] + "ref": ["https://www.geonames.org/2655603/birmingham.html"] }, "coordinates": { "lat": "52.48142", @@ -74,9 +66,7 @@ { "place_name": { "text": "London", - "ref": [ - "https://www.geonames.org/2643743/london.html" - ] + "ref": ["https://www.geonames.org/2643743/london.html"] }, "coordinates": { "lat": "51.50853", @@ -84,9 +74,7 @@ } } ], - "lang": [ - "eng" - ], + "lang": ["eng"], "related_institutions": [ { "relation_type": "host", @@ -97,9 +85,7 @@ "https://ror.org/013meh722" ] }, - "websites": [ - "https://www.cam.ac.uk/" - ] + "websites": ["https://www.cam.ac.uk/"] }, { "relation_type": "host", @@ -110,9 +96,7 @@ "https://ror.org/052gg0110" ] }, - "websites": [ - "https://www.ox.ac.uk/" - ] + "websites": ["https://www.ox.ac.uk/"] }, { "relation_type": "cooperation", @@ -123,9 +107,7 @@ "https://ror.org/027m9bs27" ] }, - "websites": [ - "https://www.manchester.ac.uk/" - ] + "websites": ["https://www.manchester.ac.uk/"] }, { "relation_type": "cooperation", @@ -136,9 +118,7 @@ "https://ror.org/03angcq70" ] }, - "websites": [ - "https://www.birmingham.ac.uk/" - ] + "websites": ["https://www.birmingham.ac.uk/"] }, { "relation_type": "cooperation", @@ -149,9 +129,7 @@ "https://ror.org/04vrxay34" ] }, - "websites": [ - "https://www.soas.ac.uk/" - ] + "websites": ["https://www.soas.ac.uk/"] }, { "relation_type": "cooperation", @@ -162,33 +140,23 @@ "https://ror.org/05dhe8b71" ] }, - "websites": [ - "https://www.bl.uk/" - ] + "websites": ["https://www.bl.uk/"] }, { "relation_type": "cooperation", "org_name": { "text": "Royal Asiatic Society", - "ref": [ - "https://www.wikidata.org/wiki/Q1417172" - ] + "ref": ["https://www.wikidata.org/wiki/Q1417172"] }, - "websites": [ - "https://royalasiaticsociety.org/" - ] + "websites": ["https://royalasiaticsociety.org/"] }, { "relation_type": "cooperation", "org_name": { "text": "Wellcome Library", - "ref": [ - "https://www.wikidata.org/wiki/Q7981192" - ] + "ref": ["https://www.wikidata.org/wiki/Q7981192"] }, - "websites": [ - "https://wellcomelibrary.org/" - ] + "websites": ["https://wellcomelibrary.org/"] } ], "related_entities": [ @@ -204,12 +172,8 @@ "text": "Faghihi, Yasmin", "ref": [] }, - "roles": [ - "writing – review & editing" - ], - "websites": [ - "https://www.cdh.cam.ac.uk/about/people/yasmin-faghihi/" - ] + "roles": ["writing – review & editing"], + "websites": ["https://www.cdh.cam.ac.uk/about/people/yasmin-faghihi/"] } ], "research_data": { @@ -314,4 +278,4 @@ ], "comment": "" } -} \ No newline at end of file +} diff --git a/PROJECTS/ocimco/97408d45-9570-4cad-a623-6007573bf070.json b/PROJECTS/ocimco/97408d45-9570-4cad-a623-6007573bf070.json index 6fca2699b..5c60e7bfa 100644 --- a/PROJECTS/ocimco/97408d45-9570-4cad-a623-6007573bf070.json +++ b/PROJECTS/ocimco/97408d45-9570-4cad-a623-6007573bf070.json @@ -17,17 +17,13 @@ "to": "2011" } ], - "websites": [ - "https://www.fihrist.org.uk/" - ], + "websites": ["https://www.fihrist.org.uk/"], "project_desc": "This project aims to improve electronic access to the UK's significant Islamic manuscript collections at Oxford and Cambridge universities. It plans to create 10,000 summary records using a TEI P5 schema for future detailed descriptions, making these resources accessible through Oxford University Library Services and potentially contributing to the European Manuscriptorum. Collaboration with the Islamic Manuscript Association and other initiatives is a key focus.", "places": [ { "place_name": { "text": "Oxford", - "ref": [ - "https://www.geonames.org/2640729/oxford.html" - ] + "ref": ["https://www.geonames.org/2640729/oxford.html"] }, "coordinates": { "lat": "51.75222", @@ -37,9 +33,7 @@ { "place_name": { "text": "Cambridge", - "ref": [ - "https://www.geonames.org/2653941/cambridge.html" - ] + "ref": ["https://www.geonames.org/2653941/cambridge.html"] }, "coordinates": { "lat": "52.2", @@ -47,9 +41,7 @@ } } ], - "lang": [ - "eng" - ], + "lang": ["eng"], "related_institutions": [ { "relation_type": "host", @@ -60,9 +52,7 @@ "https://ror.org/013meh722" ] }, - "websites": [ - "https://www.cam.ac.uk/" - ] + "websites": ["https://www.cam.ac.uk/"] }, { "relation_type": "host", @@ -73,9 +63,7 @@ "https://ror.org/052gg0110" ] }, - "websites": [ - "https://www.ox.ac.uk/" - ] + "websites": ["https://www.ox.ac.uk/"] } ], "related_entities": [ @@ -91,9 +79,7 @@ "text": "Evison, Gillian", "ref": [] }, - "roles": [ - "supervision" - ], + "roles": ["supervision"], "websites": [] } ], @@ -199,4 +185,4 @@ ], "comment": "" } -} \ No newline at end of file +} diff --git a/SCHEMATA/project_schema.ts b/SCHEMATA/project_schema.ts index 889d23786..ab2decc18 100644 --- a/SCHEMATA/project_schema.ts +++ b/SCHEMATA/project_schema.ts @@ -86,7 +86,7 @@ export const projectSchema = z z.literal(""), ]), }) - .strict(), + .strict() ) .describe("List of active periods (YYYY-MM-DD)"), websites: z @@ -121,13 +121,13 @@ export const projectSchema = z }) .strict(), }) - .strict(), + .strict() ) .describe("Location(s) of the project"), lang: z .array(z.string().regex(isoCode)) .describe( - "List of languages used in the project's output (ISO-639-3 codes)", + "List of languages used in the project's output (ISO-639-3 codes)" ), related_institutions: z .array( @@ -146,10 +146,10 @@ export const projectSchema = z .array(z.string().url()) .describe("List of institutional website URLs"), }) - .strict(), + .strict() ) .describe( - "Universities or research organizations which host the project", + "Universities or research organizations which host the project" ), related_entities: z .array( @@ -164,7 +164,7 @@ export const projectSchema = z title: z.string(), uuid: z.string().uuid(), }) - .strict(), + .strict() ) .describe("Entities that are related to the project"), contacts: z @@ -182,15 +182,15 @@ export const projectSchema = z roles: z .array(z.enum(rolesEnum)) .describe( - "Roles held by the contact (following the CRediT taxonomy)", + "Roles held by the contact (following the CRediT taxonomy)" ), websites: z .array(z.string().url()) .describe( - "List of institutional and/or personal website URLs", + "List of institutional and/or personal website URLs" ), }) - .strict(), + .strict() ) .describe("Main contact(s) of the project"), research_data: z @@ -198,13 +198,13 @@ export const projectSchema = z lang: z .array(z.string().regex(isoCode)) .describe( - "List of languages of the project's research data (ISO-639-3 codes)", + "List of languages of the project's research data (ISO-639-3 codes)" ), sustainability_plan: z .boolean() .nullable() .describe( - "Is there a plan to ensure the sustainability and reusability of the project's research data and output?", + "Is there a plan to ensure the sustainability and reusability of the project's research data and output?" ), publications: z .object({ @@ -214,7 +214,7 @@ export const projectSchema = z .min(0) .max(100) .describe( - "Approximate percentage of publications that are available open-access", + "Approximate percentage of publications that are available open-access" ), licensing: z .array(z.string()) @@ -222,7 +222,7 @@ export const projectSchema = z }) .strict() .describe( - "Information about publication accessibility and licensing", + "Information about publication accessibility and licensing" ), data: z .object({ @@ -235,7 +235,7 @@ export const projectSchema = z licensing: z .array(z.string()) .describe( - "List of licenses that apply to the datatype", + "List of licenses that apply to the datatype" ), open_access: z .number() @@ -243,13 +243,13 @@ export const projectSchema = z .min(0) .max(100) .describe( - "Approximate percentage of this datatype available open-access", + "Approximate percentage of this datatype available open-access" ), }) - .strict(), + .strict() ) .describe( - "List of datatypes contained in the project's research data", + "List of datatypes contained in the project's research data" ), repositories: z .array( @@ -261,7 +261,7 @@ export const projectSchema = z accessibility: z .enum(["private", "public"]) .describe( - "Repository accessibility (private | public)", + "Repository accessibility (private | public)" ), ref: z .array(z.string().url()) @@ -269,13 +269,13 @@ export const projectSchema = z licensing: z .array(z.string()) .describe( - "List of licenses that apply to the repository", + "List of licenses that apply to the repository" ), description: z .string() .describe("Description of repository contents"), }) - .strict(), + .strict() ) .describe("Information about local or remote repositories"), }) @@ -291,16 +291,16 @@ export const projectSchema = z description: z .string() .describe( - "Description of the policy, e.g. 'Research Data Policy'", + "Description of the policy, e.g. 'Research Data Policy'" ), ref: z .array(z.string().url()) .describe("List of URLs relevant to the policy"), }) - .strict(), + .strict() ) .describe( - "Information about policies (e.g. RDP, RDM, OA) applicable to the project and its publications and data", + "Information about policies (e.g. RDP, RDM, OA) applicable to the project and its publications and data" ), stack: z .object({ @@ -316,7 +316,7 @@ export const projectSchema = z languages: z .array(z.string()) .describe( - "List of programming languages (defined broadly) in use", + "List of programming languages (defined broadly) in use" ), tools: z .array( @@ -332,10 +332,10 @@ export const projectSchema = z description: z .string() .describe( - "Description of the tool's purpose in the context of the project", + "Description of the tool's purpose in the context of the project" ), }) - .strict(), + .strict() ) .describe("List of tools that are used in the project"), }) @@ -346,8 +346,8 @@ export const projectSchema = z z .enum(keywordsEnum) .describe( - "Use lowercase letters, with underscore as a separator where needed", - ), + "Use lowercase letters, with underscore as a separator where needed" + ) ) .describe("List of keywords to describe the project"), comment: z @@ -359,5 +359,5 @@ export const projectSchema = z }) .strict() .describe( - "Project that deals in some way with the digital humanities, research data management, non-Latin scripts, or infrastructure", + "Project that deals in some way with the digital humanities, research data management, non-Latin scripts, or infrastructure" );