EntitySchema:E2: Difference between revisions

From geokb
(Updated Schema text: Wrote based on SPARQL example)
(Updated Schema text: changed organization to recursive call)
 
(3 intermediate revisions by the same user not shown)
Schema / Line 6: Schema / Line 6:


<Organization> EXTRA wdt:P62 {
<Organization> EXTRA wdt:P62 {
    # Must have an Instance Of
  # Must have an Instance Of
     wdt:P1 . ;
     wdt:P1 . ;


    # "part of" (transitive) "USGS"
  # "part of" (transitive) "USGS"
    wdt:P62 [ wd:Q44210 ] ;
  wdt:P62 @<SubclassUSGS> ;
  
  
    # Alias(es)
  # Alias(es)
     skos:altLabel . *;
     skos:altLabel . *;


    # Reference URL
  # Reference URL
     wdt:P31 . ? ;
     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 codelabeldescriptionaliasesedit
enOrganizationschema for describing an organizationedit
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 . *) *;
}