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 skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX p: <https://geokb.wikibase.cloud/prop/>
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 xsd: <http://www.w3.org/2001/XMLSchema#>
prefix wd: <https://geokb.wikibase.cloud/entity/>
prefix wd: <https://geokb.wikibase.cloud/entity/>
prefix wdt: <https://geokb.wikibase.cloud/prop/direct/>
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 = @<Organization>
START = @<MiningFacility>


<Organization> EXTRA wdt:P1 {
<MiningFacility> EXTRA p:P1 {
# Must be instance of a mining facility and any subclasses
# Must be instance of a mining facility and any subclasses
wdt:P1 @<MiningFacilityClass> * ;
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 wdt:P2 {
<MiningFacilityClass> EXTRA p:P2 {
   wdt:P2 [ wd:Q44143 ] * ;
   p:P2 [ wd:Q44143 ] * ;
}
}

Revision as of 15:57, 26 May 2023

language codelabeldescriptionaliasesedit
enMining Facilityitems that are classified according to one of a number of subclasses of facilityedit
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 ] * ;
}