Skip to content

Organisation

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

Metadata model figure

{
  "organisation":{
  "name":"name",
  "facility": "facility",
  "department": "department",
  "address": {
    "location":{
      "street": "street",
      "city": "city",
      "code": "code",
      "country": "country"
    }
  }
}

ShEx

Organisation

@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:OrganisationShape
a rdfs:Class, sh:NodeShape ;
sh:nodeKind sh:IRI;
sh:targetClass ejp:Organisation ;
rdfs:label "Organisation" ;
rdfs:subClassOf rdfs:Resource ;

sh:property [
    sh:path dct:spatial ;
    sh:name "Location" ;
    sh:description "The country where the organisation is situated." ;
    sh:class ejp:Location;
    sh:node ejp-s:LocationShape ;
    sh:maxCount 1 ;
    sh:minCount 1 ;
] .

Example turtle

An example rdf of Organisation

@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#> .

ejp:ErdriDOR  a      ejp:Organisation ;
        dct:spatial  ejp:ErdriDOR_Location ;
        foaf:page    "https://eu-rd-platform.jrc.ec.europa.eu/erdridor/" .

Clone this wiki locally