BioSchemas / BioschemasMarkupGenerator

A tool for prototyping markup against the Bioschemas profiles.
http://www.macs.hw.ac.uk/SWeL/BioschemasGenerator/
4 stars 2 forks source link

Fails if definition for expected type can't be found #9

Closed kcmcleod closed 4 years ago

kcmcleod commented 4 years ago

If it can't find a description for a Schema.org type it throws an error but works. HOWEVER, if it cannot find the BSc description it throws an error and fails without telling you. The yaml looks OK, but cannot be loaded.

AlasdairGray commented 4 years ago

Which type is missing? What yaml looks ok?

http://www.macs.hw.ac.uk/~ajg33


From: Ken McLeod notifications@github.com Sent: Friday, November 15, 2019 7:27:52 PM To: HW-SWeL/BioschemasMarkupGenerator BioschemasMarkupGenerator@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [HW-SWeL/BioschemasMarkupGenerator] Fails if definition for expected type can't be found (#9)

If it can't find a description for a Schema.org type it throws an error but works. HOWEVER, if it cannot find the BSc description it throws an error and fails without telling you. The yaml looks OK, but cannot be loaded.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/HW-SWeL/BioschemasMarkupGenerator/issues/9?email_source=notifications&email_token=AAIWUEKBLIJZ2TU44GIVB7DQT3S2RA5CNFSM4JN6T7I2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZV2ZDA, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIWUEKCGLGVEHFLOOGBF53QT3S2RANCNFSM4JN6T7IQ.


Heriot-Watt University is The Times & The Sunday Times International University of the Year 2018

Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences. This email is generated from the Heriot-Watt University Group, which includes:

  1. Heriot-Watt University, a Scottish charity registered under number SC000278
  2. Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.

The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system.

AlasdairGray commented 4 years ago

Came across this issue today with DNA being an expected type for a property but there is no associated Bioschemas profile for it. I have fixed the code (b1c1c552f92d7a5959a56c621ea99e511d010e9c ) so that it will now allow the property to be included but requires an @id link to a resource that has the detail.