EntitySchema:E2: Difference between revisions
From geokb
(Created a new Schema: mining facility schema) |
(Updated Schema text: changed organization to recursive call) |
||
(12 intermediate revisions by 2 users not shown) | |||
Labels / en | Labels / en | ||
mining facility schema | Organization | ||
Descriptions / en | Descriptions / en | ||
Schema for describing different kinds of mine-related facilities | schema for describing an organization | ||
Schema / Line 1: | Schema / Line 1: | ||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | |||
PREFIX wd: <https://geokb.wikibase.cloud/entity/> | PREFIX wd: <https://geokb.wikibase.cloud/entity/> | ||
PREFIX wdt: <https://geokb.wikibase.cloud/prop/direct/> | PREFIX wdt: <https://geokb.wikibase.cloud/prop/direct/> | ||
< | START = @<Organization> | ||
wdt:P1 [ wd: | |||
<Organization> EXTRA wdt:P62 { | |||
# Must have an Instance Of | |||
wdt:P1 . ; | |||
# "part of" (transitive) "USGS" | |||
wdt:P62 @<SubclassUSGS> ; | |||
# Alias(es) | |||
skos:altLabel . *; | |||
# Reference URL | |||
wdt:P31 IRI + ; | |||
} | |||
<SubclassUSGS> { | |||
( wdt:P62 [ wd:Q44210 ]; wdt:P62 . * ) | | |||
( wdt:P62 @<SubclassUSGS>; wdt:P62 . *) *; | |||
} | } |
Latest revision as of 18:49, 7 June 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 wd: <https://geokb.wikibase.cloud/entity/>
PREFIX wdt: <https://geokb.wikibase.cloud/prop/direct/>
START = @<Organization>
<Organization> EXTRA wdt:P62 {
# Must have an Instance Of
wdt:P1 . ;
# "part of" (transitive) "USGS"
wdt:P62 @<SubclassUSGS> ;
# Alias(es)
skos:altLabel . *;
# Reference URL
wdt:P31 IRI + ;
}
<SubclassUSGS> {
( wdt:P62 [ wd:Q44210 ]; wdt:P62 . * ) |
( wdt:P62 @<SubclassUSGS>; wdt:P62 . *) *;
}