EntitySchema:E2: Difference between revisions

Updated Schema text: Wrote based on SPARQL example
(Updated Schema text)
(Updated Schema text: Wrote based on SPARQL example)
Schema / Line 1: Schema / Line 1:
prefix wd: <https://geokb.wikibase.cloud/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
prefix wdt: <https://geokb.wikibase.cloud/prop/direct/>
PREFIX wd: <https://geokb.wikibase.cloud/entity/>
PREFIX wdt: <https://geokb.wikibase.cloud/prop/direct/>


START = @<Organization>
START = @<Organization>


<Organization> EXTRA wdt:P1 {
<Organization> EXTRA wdt:P62 {
# Must be instance of an organization and any subclasses
    # Must have an Instance Of
wdt:P1 @<OrgClass> * ;
    wdt:P1 . ;


  # Part of another organization
    # "part of" (transitive) "USGS"
wdt:P62 @<OrgClass> * ;   
    wdt:P62 [ wd:Q44210 ] ;   
  
  
  # Has another organization part
    # Alias(es)
wdt:P63 @<OrgClass> * ;
    skos:altLabel . *;
 
  # Operating area
  wdt:P111 IRI ? ;


# Reference URL
    # Reference URL
  wdt:P31 . ? ;
    wdt:P31 . ? ;
}
 
<OrgClass> EXTRA wdt:P2 {
  wdt:P2 [ wd:Q4 ] * ;
}
}