Sample_age_at_collection - 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 xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX sio: <http://semanticscience.org/resource/>
PREFIX lnc: <http://purl.bioontology.org/ontology/LNC/> 

:sampleShape IRI {
  a [obo:NCIT_C43412];
  sio:SIO_000008  :ageAtCollectionShape
}
:ageAtCollectionShape IRI {
  a [sio:SIO_000614];
  sio:SIO_000332 [lnc:MTHU016624];  
  sio:SIO_000300 xsd:string;
}

Example turtle

@prefix : <http://purl.org/ejp-rd/phenopackets-rdf-schema/v010/example-rdf/> .
@prefix obo: <http://purl.obolibrary.org/obo/> .
@prefix lnc: <http://purl.bioontology.org/ontology/LNC/> .
@prefix sio: <http://semanticscience.org/resource/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

:sample1 a obo:NCIT_C43412;
 sio:SIO_000008  :age-at_collection1 .

:age-at_collection1 a sio:SIO_000614; # attribute
    sio:SIO_000332  lnc:MTHU016624; # is about
    sio:SIO_000300 "P25Y3M2D"^^xsd:string . # has value