From b106dc843cdc60902b0c6d423291584086fd2868 Mon Sep 17 00:00:00 2001 From: lltommy Date: Tue, 14 Apr 2020 22:56:33 +0200 Subject: Updated yaml schema and examples - plus ShEX shape to go along with it. Still work in progress but getting better and better I guess --- bh20sequploader/validation_shape.rdf | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 bh20sequploader/validation_shape.rdf (limited to 'bh20sequploader/validation_shape.rdf') diff --git a/bh20sequploader/validation_shape.rdf b/bh20sequploader/validation_shape.rdf new file mode 100644 index 0000000..1d1e7d2 --- /dev/null +++ b/bh20sequploader/validation_shape.rdf @@ -0,0 +1,59 @@ +PREFIX : +PREFIX MainSchema: +PREFIX hostSchema: +PREFIX xsd: +PREFIX obo: +PREFIX sio: +PREFIX efo: +PREFIX evs: +PREFIX edam: + +:submissionShape { + MainSchema:host @:hostShape ; + MainSchema:sample @:sampleShape ; + MainSchema:submitter @:submitterShape ; + MainSchema:technology @:technologyShape ; + MainSchema:virus @:virusShape; +} + +:hostShape { + efo:EFO_0000532 [ obo:NCBITaxon_~ ] ; + obo:PATO_0000047 [ obo:NCIT_C20197 obo:NCIT_C27993 obo:NCIT_C17998 ] ; + sio:SIO_000115 xsd:string ; + obo:PATO_0000011 xsd:integer ?; + obo:NCIT_C42574 [ obo:UO_~ ] ?; + sio:SIO_001167 xsd:string ?; + efo:EFO_0000727 xsd:string ?; +} + +:sampleShape { + obo:OBI_0001895 xsd:string ; + sio:SIO_000115 xsd:string ; + sio:SIO_001167 xsd:string ; + evs:C25164 xsd:string ?; + obo:GAZ_00000448 [obo:GAZ_~] ?; + obo:OBI_0001472 xsd:string ?; + obo:OBI_0001479 xsd:string ?; +} + +:submitterShape { + sio:SIO_000116 xsd:string ; + obo:NCIT_C37984 xsd:string ; + obo:NCIT_C37900 xsd:string ?; + obo:NCIT_C42781 xsd:string ?; + obo:OBI_0600047 xsd:string ?; + sio:SIO_000115 /https:\u002F\u002Forcid.org\u002F[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}/?; + sio:SIO_000172 xsd:string ?; + efo:EFO_0001741 xsd:string ?; +} + +:technologyShape { + obo:OBI_0600047 xsd:string ; + obo:FLU_0000848 xsd:integer ?; + efo:EFO_0002699 xsd:string ?; +} + +:virusShape{ + edam:data_1875 [ obo:NCBITaxon_~ ] ; + sio:SIO_010055 xsd:string ?; +} \ No newline at end of file -- cgit v1.2.3