Institution (independent) (E5)

From Mapping DH
language codelabeldescriptionaliasesedit
enInstitution (independent)A schema for the class Q1176 "Institution (independent)".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 = @<Institution>

# Any instance of the class Institution (independent) needs: 
<Institution> EXTRA wdt:P17 {   

  # "instance of": Q1176 (Institution) or its subclasses  - exactly one
  wdt:P17 [wd:Q1176 wd:Q4 wd:Q1175 wd:Q1177 wd:Q39 wd:Q1247] {1}  ;    

  # "in city: item of class Q41 (City or town) – one or two
  wdt:P36 @<city> {1,2}  ; 

  # "ROR ID: external identifier - zero or one (but expected)
  wdt:P67 xsd:string {0,1}  ;     

  # "Wikidata ID": external identifier - zero or one (but expected)  
  wdt:P56 xsd:string {0,1}  ;     

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

  # "abbreviation": string - zero or one
  wdt:P14 xsd:string {0,1} ;
}

# any item that is instance of class Q41 (City or town)
<city> EXTRA wdt:P17 {
  wdt:P17 [wd:Q41] + ; }