EntitySchema:E3: Difference between revisions
From geokb
(Created a new Schema: Mining Facility) |
(Updated Schema text: Validated full schema against test subjects) |
||
Schema / Line 1: | Schema / Line 1: | ||
PREFIX p: <https://geokb.wikibase.cloud/prop/> | |||
prefix xsd: <http://www.w3.org/2001/XMLSchema#> | prefix xsd: <http://www.w3.org/2001/XMLSchema#> | ||
prefix wd: <https://geokb.wikibase.cloud/entity/> | prefix wd: <https://geokb.wikibase.cloud/entity/> | ||
PREFIX psv: <https://geokb.wikibase.cloud/prop/statement/value/> | |||
PREFIX ps: <https://geokb.wikibase.cloud/prop/statement/> | |||
PREFIX geo: <http://www.opengis.net/ont/geosparql#> | |||
START = @< | START = @<MiningFacility> | ||
< | <MiningFacility> EXTRA p:P1 { | ||
# Must be instance of a mining facility and any subclasses | # Must be instance of a mining facility and any subclasses | ||
p:P1 @<MiningFacilityClass> * ; | |||
#coordinate location | |||
p:P6 { psv:P6 IRI *; ps:P6 geo:wktLiteral *; } +; | |||
#located in the administrative territorial entity | |||
p:P11 { ps:P11 IRI * } *; | |||
#GNIS Unique Feature ID | |||
p:P21 { ps:P21 xsd:string * } ?; | |||
#see also link to URL | |||
p:P103 { ps:P103 IRI * } *; | |||
} | } | ||
<MiningFacilityClass> EXTRA | <MiningFacilityClass> EXTRA p:P2 { | ||
p:P2 [ wd:Q44143 ] * ; | |||
} | } |
Revision as of 15:57, 26 May 2023
language code | label | description | aliases | edit |
---|---|---|---|---|
en | Mining Facility | items that are classified according to one of a number of subclasses of facility | edit |
PREFIX p: <https://geokb.wikibase.cloud/prop/>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix wd: <https://geokb.wikibase.cloud/entity/>
PREFIX psv: <https://geokb.wikibase.cloud/prop/statement/value/>
PREFIX ps: <https://geokb.wikibase.cloud/prop/statement/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
START = @<MiningFacility>
<MiningFacility> EXTRA p:P1 {
# Must be instance of a mining facility and any subclasses
p:P1 @<MiningFacilityClass> * ;
#coordinate location
p:P6 { psv:P6 IRI *; ps:P6 geo:wktLiteral *; } +;
#located in the administrative territorial entity
p:P11 { ps:P11 IRI * } *;
#GNIS Unique Feature ID
p:P21 { ps:P21 xsd:string * } ?;
#see also link to URL
p:P103 { ps:P103 IRI * } *;
}
<MiningFacilityClass> EXTRA p:P2 {
p:P2 [ wd:Q44143 ] * ;
}