EntitySchema:E2: Difference between revisions
From geokb
(Updated Schema text: Initial cut at the organization schema) |
(Updated Schema text) |
||
Schema / Line 10: | Schema / Line 10: | ||
START = @<Organization> | START = @<Organization> | ||
<Organization> { | <Organization> EXTRA wdt:P1 { | ||
# # is a wikibase Item | # # is a wikibase Item | ||
rdf:type [wikibase:Item] ; | rdf:type [wikibase:Item] ; |
Revision as of 19:44, 25 May 2023
language code | label | description | aliases | edit |
---|---|---|---|---|
en | Organization | schema for describing an organization | edit |
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix schema: <http://schema.org/>
prefix wikibase: <http://wikiba.se/ontology#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix wd: <https://geokb.wikibase.cloud/entity/>
prefix wdt: <https://geokb.wikibase.cloud/prop/direct/>
START = @<Organization>
<Organization> EXTRA wdt:P1 {
# # is a wikibase Item
rdf:type [wikibase:Item] ;
# Labels, description and aliases
(rdfs:label rdf:langString ;
skos:prefLabel rdf:langString ;
schema:name rdf:langString ;
schema:description rdf:langString? ;
skos:altLabel rdf:langString* ;
)+ ;
# Must be instance of an organization and any subclasses
wdt:P1 @<OrgClass> * ;
# Part of another organization
wdt:P62 @<OrgClass> * ;
# Has another organization part
wdt:P63 @<OrgClass> * ;
# Operating area
wdt:P111 IRI ? ;
# Reference URL
wdt:P31 . ? ;
}
<OrgClass> EXTRA wdt:P2 {
wdt:P2 [ wd:Q4 ] * ;
}