Skip to content

BioBank

Ola Ajigboye edited this page Jul 29, 2020 · 1 revision
{
   "biobank":{
      "identifier":"identifier",
      "hostInstituition":"hostInstituition",
      "name":"name",
      "location":{
          "street": "street",
          "city": "city",
          "code": "code",
          "country": "country"
        }
    }

}

ShEx


PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX ejp: <http://purl.org/ejp-rd/vocabulary/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX sio: <http://semanticscience.org/resource/>
PREFIX ejprd: <https://www.ejprarediseases.org/metadata/core#>


ejp-s:BioBankShape {
    dc:identifier IRI /^http:\/\/purl\.org\/dc\/elements\/1.1\/id#[0-9]+/ ;
    ejprd:hostejpituition xsd:string;
    ejp:location @LocationShape.

ejp-s:LocationShape
    a rdfs:Class, sh:NodeShape ;
      sh:nodeKind sh:IRI ;
      sh:targetClass ejp:Location ;
      rdfs:label "Localtion" ;
      rdfs:subClassOf rdfs:Resource .

}


Example turtle

@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix ejp: <http://purl.org/ejp-rd/vocabulary/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix sio: <http://semanticscience.org/resource/> .
@prefix ejprd: <https://www.ejprarediseases.org/metadata/core#> .


<https://www.ejprarediseases.org/metadata/>
  a               ejp:BioBank ;
                  dc:identifier xsd:anyURI ;
                  ejprd:hostInstituition xsd:string;
                  sio:name xsd:string ;
                  sio:city xsd:string ;
                  sio:country xsd:string .

Clone this wiki locally