Anonymous

Main Page: Difference between revisions

From geokb
Line 402: Line 402:
GROUP BY ?item ?itemLabel
GROUP BY ?item ?itemLabel
HAVING (COUNT(?indexId) > 1)
HAVING (COUNT(?indexId) > 1)
</sparql>
== Research Methods ==
Linkable research methods are incorporated into the GeoKB to support cases where we need these as filters or other factors in analyses.
* [[Item_talk:Q152412|research methods discussion]]
<sparql tryit="1">
PREFIX wd: <https://geokb.wikibase.cloud/entity/>
PREFIX wdt: <https://geokb.wikibase.cloud/prop/direct/>
SELECT ?method ?methodLabel ?method_alt_label ?subclass_of ?subclass_ofLabel
WHERE {
  ?method wdt:P2* wd:Q152412 ; # Gets all subclasses of research method
          wdt:P2 ?subclass_of . # gets the subclass identifier itself so we can graph this
  OPTIONAL {
    ?method skos:altLabel ?method_alt_label . # gets any aliases individually so we can run name matching
    FILTER (lang(?method_alt_label)='en')
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
</sparql>
</sparql>