Skip to content

biologicalSample

Ola Ajigboye edited this page Jul 29, 2020 · 1 revision
{
   "BiologicalSample":{
      "identifier":"identifier",
      "name":"name",
      "description":"description",
      "inCatalog":{
         "catalog":{
            "identifier":"identifier",
            "alternative":"alternative",
            "about":{
                 "code":{
                    "id":"ID",
                    "url":"url",
                    "label":"label",
                    "description":"description"
                 }
              },
            "name":"name",
            "description":"description",
            "homepage":"homepage",
            "sameAs":"same as name",
            "location":{
              "organisation":{
              "name":"name",
              "facility": "facility",
              "department": "department",
              "address": {
                "location":{
                  "street": "street",
                  "city": "city",
                  "code": "code",
                  "country": "country"
                }
              }
            }

            }
         }
      }
,
      "Characteristics":{
         "PropertyValue":{
            "name":"name",
            "value":"value",
            "code":{
               "code":{
                  "id":"ID",
                  "url":"url",
                  "label":"label",
                  "description":"description"
               }
            }
         }
      }

   }
}

ShEx


PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX sio: <http://semanticscience.org/resource/>
PREFIX  dc: <http://purl.org/dc/elements/1.1/>
PREFIX  dcat: <http://www.w3.org/ns/dcat#>
PREFIX  dct: <http://purl.org/dc/terms/>
PREFIX  owl: <http://www.w3.org/2002/07/owl#>
PREFIX  rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  xml: <http://www.w3.org/XML/1998/namespace>
PREFIX  dcterms: <http://purl.org/dc/terms/>
PREFIX ejp: <http://purl.org/ejp-rd/vocabulary/>
PREFIX ejp-s: <http://purl.org/ejp-rd/metadata/shapes/>
PREFIX  obo: <http://purl.obolibrary.org/obo/>
PREFIX  efo: <http://www.ebi.ac.uk/efo/>

ejp-s:biologicalSampleShape {
                dc:identifier  xsd:string ;
                sio:SIO_000116 xsd:string ;
                sio:description xsd:string ;
                ejp:inCatalog @ejp:catalogShape ;
                ejp:characteristics @ejp-s:propertyvalueShape
                }

ejp-s:catalogShape{
                dc:identifier  xsd:string ;
                dcterms:alternativeSIO_000116 xsd:string ;
                sio:SIO_000116 xsd:string ;
                sio:description xsd:string ;
                ejp:about  @ejp-s:codeShape ;
                obo:location @ejp-s:organisationShape
                }

ejp-s:codeShape {
              ejp:id xsd:string ;
              sio:SIO_000811 xsd:string ;
              rdfs:label xsd:string ;
              ejp:descritpiton @ejp-s:bioBankShape
              }

ejp-s:bioBankShape {
                  dc:identifier IRI /^http:\/\/purl\.org\/dc\/elements\/1.1\/id#[0-9]+/ ;
                  ejp:hostinstitution xsd:string;
                  sio:SIO_000116 xsd:string ;
                  sio:SIO_000665 xsd:string ;
                  sio:SIO_000664 xsd:string
              }

ejp-s:organisationShape{
              obo:SIO_000116 xsd:string ;
              obo:NCIT_C62574 xsd:string ;
              obo:OMIABIS_0000017 xsd:string ;
              sio:SIO_000172 @ejp-s:locationShape
}

ejp-s:locationShape {
              sio:SIO_000665 xsd:string ;
              obo:code xsd:string ;
              sio:SIO_000664 xsd:string
              }



ejp-s:propertyvalueShape {
              sio:SIO_000116 xsd:string ;
              obo:NCIT_C25712 xsd:string ;
              ejp:code ejp:code
}


Example turtle

<http://ejprd.fair-dtls.surf-hosted.nl:8080/dataset/bbmri-eric:ID:DE_ASK-Tx:collection:all_samples> a <http://www.w3.org/ns/ldp#Resource>,
    <http://www.w3.org/ns/ldp#RDFResource> .

<https://directory.bbmri-eric.eu//api/v2/eu_bbmri_eric_collections/bbmri-eric:ID:DE_ASK-Tx:collection:all_samples> a <http://purl.org/ejp-rd/vocabulary/BiobankDataset>;
<http://purl.org/dc/terms/title> "Main collection of Asklepios Biobank für Lungenerkrankungen";
<http://purl.org/dc/terms/publisher> [
<http://purl.org/dc/terms/title> "Asklepios Biobank für Lungenerkrankungen";
<http://purl.org/dc/terms/spatial> [
<http://www.w3.org/ns/dcat#country-name> "DE";
<http://www.w3.org/ns/dcat#locality> ""
    ]
  ];
<http://www.w3.org/ns/dcat#theme> <http://identifiers.org/icd/C37>,
    <http://identifiers.org/icd/C78>,
    <http://identifiers.org/icd/Q85>,
    <http://identifiers.org/icd/J98>,
    <http://identifiers.org/icd/C34>,
    <http://identifiers.org/icd/J84>,
    <http://identifiers.org/icd/J70>,
    <http://identifiers.org/icd/B44>,
    <http://identifiers.org/icd/D21>,
    <http://identifiers.org/icd/D36>,
    <http://identifiers.org/icd/C45> .


<http://purl.org/ejp-rd/ejp-rd/vocabulary/>

Clone this wiki locally