Sex - xiaofengleo/phenopackets-rdf-schema GitHub Wiki

Semantic model figure


ShEx

PREFIX : <http://purl.org/ejp-rd/phenopackets-rdf-schema/v010/shex/>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX sio: <http://semanticscience.org/resource/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>


:individualShape IRI {
  a [obo:NCBITaxon_9606];
  sio:SIO_000008 @:sexShape
}

:sexShape IRI {
  a [sio:SIO_000614];
  sio:SIO_000332 [obo:NCIT_C28421];
  sio:SIO_000300 [obo:NCIT_C46113 obo:NCIT_C46112 obo:NCIT_C17998 obo:NCIT_C45908];
}

Example turtle

@prefix : <http://purl.org/ejp-rd/phenopackets-rdf-schema/v010/example-rdf/> .
@prefix obo: <http://purl.obolibrary.org/obo/> .
@prefix sio: <http://semanticscience.org/resource/> .


:individual1 a obo:NCBITaxon_9606;
  sio:SIO_000008 :gender1 . # has attribute

:gender1 a sio:SIO_000614; # attribute
 sio:SIO_000332 obo:NCIT_C28421; # is about
 sio:SIO_000300 obo:NCIT_C46113 .  # has value