Skip to content

Date of birth

Rajaram edited this page Sep 7, 2021 · 8 revisions

Semantic model figure


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/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


:individual1 a sio:SIO_000498;
  sio:SIO_000008 :birthDate1. # has attribute


:birthDate1 a sio:SIO_000614; # attribute
  sio:SIO_000332 obo:NCIT_C68615; # is about
  sio:SIO_000300 "1993-01-01T00:15:00"^^xsd:dateTime . # has value

ShEx

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


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

:birthDateShape IRI {
  a [sio:SIO_000614];
  sio:SIO_000332 [obo:NCIT_C68615];
  sio:SIO_000300 xsd:dateTime
}

Clone this wiki locally