bio-tools / biotoolsSchema

biotoolsSchema : Tool description data model for computational tools in life sciences
Creative Commons Attribution Share Alike 4.0 International
36 stars 12 forks source link

Add support for ROR ID as a type of institutional ID #198

Open joncison opened 4 years ago

joncison commented 4 years ago

i.e. alongside GRID id

joncison commented 4 years ago

@hansioan this will go in as "rorid" (alongside "orcidid" and "gridid")

hansioan commented 4 years ago

@joncison thanks , will also need a regex for this

joncison commented 4 years ago

Yup. Syntax is a leading 0 followed by 6 characters and a 2-digit checksum, see https://dev.ror.org/facts/

Will paste an XSD style regex here shortly ...

joncison commented 4 years ago

<xs:pattern value="0[0-9a-zA-Z]{6}[0-9]{2}"/>

joncison commented 4 years ago

@hansioan could you pls. paste a JSON style regex here? thanks. So I can update JSON schema + API usage guide.

hansioan commented 4 years ago

@joncison I don't know about a JSON style regex, but in the backend I will add the regex: ^0[0-9a-zA-Z]{6}[0-9]{2}$ I've basically included the start character ^ and the end character $