Procedures - 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 lnc: <http://purl.bioontology.org/ontology/LNC/> 

:sampleShape IRI {
  a [obo:NCIT_C43412];
  sio:SIO_000253  @:bodysiteShape
}

:procedureShapeShape IRI {
  a /^http:\/\/purl.obolibrary.org\/obo\/NCIT_/;
  sio:SIO_001403 @:sampleShape
}
:bodysiteShape IRI {
 a [lnc:MTHU017829];
 sio:SIO_000300 /^http:\/\/purl.obolibrary.org\/obo\/UBERON_/ 
}

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 lnc: <http://purl.bioontology.org/ontology/LNC/> .

:sample1 a obo:NCIT_C43412;
sio:SIO_000253  :bodySite1 .

:procedure1 a obo:NCIT_C28743; # attribute
     sio:SIO_001403 :sample1. # is associated with

:bodySite1 a lnc:MTHU017829;
sio:SIO_000300 obo:UBERON_0003403 .