Skip to content

DiseaseCodeSystem

Ola Ajigboye edited this page Jul 29, 2020 · 1 revision

Metadata model figure

{
	"codingSystem": {
		"id": "id",
		"url": "url",
		"label": "label",
		"description": {
			"catalog-biobank": {
				"recruiting": "recruiting"
			}

		}
	}
}

ShEx

Disease Code System

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ejp-s: <http://purl.org/ejp-rd/metadata/shapes/> .
@prefix ejp: <http://purl.org/ejp-rd/vocabulary/> .
@prefix dct: <http://purl.org/dc/terms#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

ejp-s:DiseaseCodeShape
a rdfs:Class, sh:NodeShape ;
sh:nodeKind sh:IRI;
sh:targetClass ejp:DiseaseCode ;
rdfs:label "DiseaseCode" ;
rdfs:subClassOf rdfs:Resource ;

sh:property [
    sh:path skos:inConceptSchema ;
    sh:name "PopulationCoverage" ;
    sh:description "The country from which the patients in the dataset come from." ;
    sh:node ejp:DiseaseCodeSystem ;
    sh:maxCount 1 ;
    sh:minCount 1 ;
] .

Example turtle

An example rdf of Disease Code System

@prefix :      <http://purl.org/ejp-rd/vocabulary/> .
@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 ejp:   <http://purl.org/ejp-rd/vocabulary/> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix ordo:  <http://www.orpha.net/ORDO/> .
@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 xsd:   <http://www.w3.org/2001/XMLSchema#> .

Clone this wiki locally