Study programme (E7)

From Mapping DH
language codelabeldescriptionaliasesedit
enStudy programmeAn entity schema for the class Q1236 (Study programme).edit
PREFIX wdt: <https://mapping-dh.wikibase.cloud/prop/direct/>
PREFIX wd: <https://mapping-dh.wikibase.cloud/entity/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 

start = @<programme>

# Any instance of the class Q1236 (Study programme) needs: 
<programme> EXTRA wdt:P17 {   

  # "instance of": Q1236 (Study programme) or one of its subclasses - exactly one
  wdt:P17 [wd:Q1236 wd:Q1234 wd:Q1235 wd:Q1801 wd:Q1802 wd:Q1803 wd:Q1805] {1}  ; 

  # "website": URL - zero or one
  wdt:P4 IRI {0,1} ;

  # "DHCR ID": external identifier - zero or one  
  wdt:P69 xsd:string {0,1}  ;

  # "field of work": any item of class Q7 or its subclasses - one to five
  wdt:P12 @<field> {1,5}  ;

  # "offered by": any item of class Q1176 or its subclasses - zero or one
  wdt:P103 @<institution> {1,5}  ;

}

# any item that is instance of class Q7 (Field of work)
<field> EXTRA wdt:P17 {
  wdt:P17 [wd:Q7] + ; }

# any item that is instance of class Q1176 (Institution) 
<institution> EXTRA wdt:P17 {
  wdt:P17 [wd:Q1176 wd:Q4 wd:Q1175 wd:Q1177 wd:Q39 wd:Q1247] + ; }