From e1dcd4694dc7cc59f71b834c641434d5fb90c6d3 Mon Sep 17 00:00:00 2001 From: Arpita kesharwani <107834813+KesharwaniArpita@users.noreply.github.com> Date: Mon, 7 Oct 2024 01:15:00 +0530 Subject: [PATCH] Created query_adjectives.sparql to extract Esperanto adjectives from wikidata --- .../adjectives/query_adjectives.sparql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql diff --git a/src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql new file mode 100644 index 00000000..87e64c02 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql @@ -0,0 +1,17 @@ +# tool: scribe-data +# All Esperanto (Q143) adjectives. +# Enter this query at https://query.wikidata.org/. + +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?adjective + +WHERE { + # Select lexemes in Esperanto that are adjectives + ?lexeme dct:language wd:Q143 ; + wikibase:lexicalCategory wd:Q34698 ; # Adjective category + wikibase:lemma ?adjective . + + # Ensure we get only the lexeme forms that are adjectives in Esperanto + FILTER(LANG(?adjective) = "eo") . +}