From da47ffd6d3078a10581e4ac8595211bc3454678f Mon Sep 17 00:00:00 2001 From: Omar Agiez Date: Thu, 31 Oct 2024 23:22:22 +0200 Subject: [PATCH 1/4] Adds a new function to validate the order of variables in SPARQL based on our lexeme_forms_json file --- src/scribe_data/check/check_query_forms.py | 111 ++++++++++++++++++++- 1 file changed, 106 insertions(+), 5 deletions(-) diff --git a/src/scribe_data/check/check_query_forms.py b/src/scribe_data/check/check_query_forms.py index d6d60b0f..40f463a4 100644 --- a/src/scribe_data/check/check_query_forms.py +++ b/src/scribe_data/check/check_query_forms.py @@ -27,17 +27,23 @@ import re from pathlib import Path -from scribe_data.utils import LANGUAGE_DATA_EXTRACTION_DIR, lexeme_form_metadata +from scribe_data.utils import ( + LANGUAGE_DATA_EXTRACTION_DIR, + lexeme_form_metadata, + data_type_metadata, +) lexeme_form_qid_order = [] -# lexeme_form_labels = [] +lexeme_form_labels_order = [] for key, value in lexeme_form_metadata.items(): lexeme_form_qid_order.extend( sub_value["qid"] for sub_key, sub_value in value.items() if "qid" in sub_value ) - # lexeme_form_labels.extend( - # sub_value["label"] for sub_key, sub_value in value.items() if "label" in sub_value - # ) + lexeme_form_labels_order.extend( + sub_value["label"] + for sub_key, sub_value in value.items() + if "label" in sub_value + ) # MARK: Extract Forms @@ -361,6 +367,96 @@ def check_docstring(query_text: str) -> bool: ) +# MARK: Variable Order + + +def check_forms_order(query_text): + """ + Parses and orders variable names from a SPARQL query text based on a lexeme_form_metadata.json. + + Parameters + ---------- + query_text : str + The SPARQL query text containing the SELECT statement with variables. + + Returns + ------- + list or bool + A sorted list of variables if the ordering differs from the original, + otherwise a boolean indicating that the order matches. + """ + select_pattern = r"SELECT\s+(.*?)\s+WHERE" + # Extracting the variables from the SELECT statement. + if select_match := re.search(select_pattern, query_text, flags=re.DOTALL): + select_vars = re.findall(r"\?(\w+)", select_match[1]) + # Hardcoded labels provided by the labeling service. + labeling_service_cols = ["case", "gender", "auxiliaryVerb"] + select_vars = select_vars[2:] + # Split each column label into components. + split_vars = [] + for col in set(select_vars) - set(labeling_service_cols): + components = re.findall(r"[A-Za-z][^A-Z]*", col) + valid_components = [] + temp_component = "" + + for component in components: + temp_component += component.lower() + + # Append valid components in lexeme_form_labels_order. + if temp_component in map(str.lower, lexeme_form_labels_order): + valid_components.append(temp_component) + temp_component = "" # Reset temp component. + if temp_component: + valid_components.append(temp_component) + + split_vars.append(valid_components) + + # Create a map for fast component position lookup. + order_map = { + item.lower(): index for index, item in enumerate(lexeme_form_labels_order) + } + + # Group columns by component length for sorting. + grouped_columns = {} + for col in split_vars: + grouped_columns.setdefault(len(col), []).append(col) + + # Sorting function for multi-level component-based sorting. + def compare_key(components): + return [order_map.get(comp, float("inf")) for comp in components] + + # Sort and reassemble columns. + sorted_columns = [] + for length in sorted(grouped_columns.keys()): + sorted_group = sorted(grouped_columns[length], key=compare_key) + sorted_columns.extend( + "".join(comp.capitalize() for comp in col) for col in sorted_group + ) + + # Append labeling service columns to the end. + sorted_columns.extend( + col.lower() for col in labeling_service_cols if col in select_vars + ) + + # Ensure specific types appear at the start if in select_vars. + data_types = [ + re.sub(r"[^a-zA-Z]", "", key).lower() for key in data_type_metadata.keys() + ] + for dt in data_types: + base_dt = dt[:-1] + if base_dt in select_vars: + sorted_columns.remove(base_dt.capitalize()) + sorted_columns.insert(0, base_dt) + # Return sorted columns or validate if it matches select_vars. + sorted_lower = [i.lower() for i in sorted_columns] + select_lower = [i.lower() for i in select_vars] + if select_lower != sorted_lower: + # Note : I returned the sorted cols in the state they are in the sparql file for easier comparison. + return sorted_columns + + return sorted_lower == select_lower + + # MARK: Main Validation @@ -382,6 +478,11 @@ def check_query_forms() -> None: f"\n{index}. {query_file_str}:\n - {docstring_check_result}\n" ) index += 1 + # Check forms ordering. + forms_order_result = check_forms_order(query_text) + if forms_order_result is not True: + error_output += f"\n{index}. {query_file_str}:\n Forms ordering for above file should be:\n- {forms_order_result}\n" + index += 1 # Check that all variables in the WHERE and SELECT clauses are ordered, defined and returned. if forms_order_and_definition_check := validate_forms(query_text): From 549d05f11f07c0b87ab70ca6f2ff47049aedca90 Mon Sep 17 00:00:00 2001 From: Omar Agiez Date: Fri, 8 Nov 2024 00:02:27 +0200 Subject: [PATCH 2/4] Match case in error message to lowerCamelCase format used in SPARQL files. --- src/scribe_data/check/check_query_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scribe_data/check/check_query_forms.py b/src/scribe_data/check/check_query_forms.py index 40f463a4..dd181977 100644 --- a/src/scribe_data/check/check_query_forms.py +++ b/src/scribe_data/check/check_query_forms.py @@ -452,7 +452,7 @@ def compare_key(components): select_lower = [i.lower() for i in select_vars] if select_lower != sorted_lower: # Note : I returned the sorted cols in the state they are in the sparql file for easier comparison. - return sorted_columns + return [i[0].lower() + i[1:] for i in sorted_columns] return sorted_lower == select_lower From 98b79c077b72e40049cd85951b476c0741691bc2 Mon Sep 17 00:00:00 2001 From: Omar Agiez Date: Sat, 9 Nov 2024 14:19:02 +0200 Subject: [PATCH 3/4] Handling more edge cases in the order function and fixing all the queries order issues --- src/scribe_data/check/check_query_forms.py | 24 +- .../arabic/adjectives/query_adjectives.sparql | 183 ++++---- .../arabic/nouns/query_nouns.sparql | 182 ++++---- .../arabic/verbs/query_verbs_1.sparql | 72 +-- .../arabic/verbs/query_verbs_2.sparql | 82 ++-- .../arabic/verbs/query_verbs_3.sparql | 36 +- .../czech/verbs/query_verbs_1.sparql | 150 ++++--- .../czech/verbs/query_verbs_2.sparql | 117 ++--- .../dagbani/adverbs/query_adverbs.sparql | 56 +-- .../dagbani/verbs/query_verbs.sparql | 17 +- .../adjectives/query_adjectives_2.sparql | 38 +- .../danish/nouns/query_nouns_1.sparql | 30 +- .../danish/verbs/query_verbs.sparql | 88 ++-- .../english/verbs/query_verbs.sparql | 41 +- .../esperanto/nouns/query_nouns.sparql | 17 +- .../proper_nouns/query_proper_nouns.sparql | 18 +- .../esperanto/verbs/query_verbs.sparql | 44 +- .../adjectives/query_adjectives_3.sparql | 31 +- .../estonian/adverbs/query_adverbs_2.sparql | 32 +- .../french/verbs/query_verbs_1.sparql | 57 +-- .../french/verbs/query_verbs_2.sparql | 95 ++-- .../german/verbs/query_verbs_1.sparql | 29 +- .../german/verbs/query_verbs_2.sparql | 41 +- .../greek/verbs/query_verbs.sparql | 28 +- .../hausa/adjectives/query_adjectives.sparql | 17 +- .../hebrew/adjectives/query_adjectives.sparql | 51 +-- .../hebrew/verbs/query_verbs_1.sparql | 16 +- .../hebrew/verbs/query_verbs_2.sparql | 16 +- .../hebrew/verbs/query_verbs_3.sparql | 57 +-- .../hebrew/verbs/query_verbs_4.sparql | 58 +-- .../hindi/adjectives/query_adjectives.sparql | 103 ++--- .../hindustani/hindi/verbs/query_verbs.sparql | 59 +-- .../urdu/adjectives/query_adjectives.sparql | 100 ++--- .../hindustani/urdu/verbs/query_verbs.sparql | 24 +- .../italian/verbs/query_verbs_1.sparql | 29 +- .../italian/verbs/query_verbs_2.sparql | 28 +- .../italian/verbs/query_verbs_3.sparql | 29 +- .../japanese/verbs/query_verbs.sparql | 20 +- .../malayalam/verbs/query_verbs.sparql | 20 +- .../bokm\303\245l/nouns/query_nouns.sparql" | 18 +- .../bokm\303\245l/verbs/query_verbs_1.sparql" | 30 +- .../bokm\303\245l/verbs/query_verbs_2.sparql" | 35 +- .../adjectives/query_adjectives.sparql | 38 +- .../nynorsk/nouns/query_nouns.sparql | 18 +- .../proper_nouns/query_proper_nouns.sparql | 19 +- .../nynorsk/verbs/query_verbs.sparql | 147 ++++--- .../persian/verbs/query_verbs_2.sparql | 32 +- .../persian/verbs/query_verbs_3.sparql | 28 +- .../persian/verbs/query_verbs_4.sparql | 28 +- .../persian/verbs/query_verbs_5.sparql | 28 +- .../pidgin/nigerian/nouns/query_nouns.sparql | 4 +- .../polish/verbs/query_verbs.sparql | 176 ++++---- .../adjectives/query_adjectives.sparql | 15 +- .../portuguese/verbs/query_verbs.sparql | 149 ++++--- .../adjectives/query_adjectives.sparql | 411 +++++++++--------- .../russian/verbs/query_verbs.sparql | 90 ++-- .../adjectives/query_adjectives_1.sparql | 13 +- .../adjectives/query_adjectives_2.sparql | 15 +- .../adjectives/query_adjectives_3.sparql | 14 +- .../adjectives/query_adjectives_4.sparql | 22 +- .../adjectives/query_adjectives_5.sparql | 14 +- .../adjectives/query_adjectives_6.sparql | 14 +- .../adjectives/query_adjectives.sparql | 47 +- .../spanish/nouns/query_nouns.sparql | 32 +- .../proper_nouns/query_proper_nouns.sparql | 39 +- .../spanish/verbs/query_verbs_1.sparql | 29 +- .../spanish/verbs/query_verbs_2.sparql | 27 +- .../spanish/verbs/query_verbs_3.sparql | 27 +- .../swedish/nouns/query_nouns.sparql | 33 +- .../swedish/verbs/query_verbs.sparql | 115 +++-- .../adjectives/query_adjectives.sparql | 41 +- 71 files changed, 1991 insertions(+), 1892 deletions(-) diff --git a/src/scribe_data/check/check_query_forms.py b/src/scribe_data/check/check_query_forms.py index dd181977..3c883114 100644 --- a/src/scribe_data/check/check_query_forms.py +++ b/src/scribe_data/check/check_query_forms.py @@ -318,6 +318,7 @@ def validate_forms(query_text: str) -> str: # Check if the order of variables matches, excluding lexeme and lexemeID. elif select_vars != where_vars: + # print('select vars is ',select_vars, '\n where vars is \n', where_vars) error_messages.append( "The order of variables in the SELECT statement does not match their order in the WHERE clause." ) @@ -399,22 +400,25 @@ def check_forms_order(query_text): valid_components = [] temp_component = "" - for component in components: - temp_component += component.lower() + for index, component in enumerate(components): + temp_component += component.capitalize() # Append valid components in lexeme_form_labels_order. - if temp_component in map(str.lower, lexeme_form_labels_order): - valid_components.append(temp_component) - temp_component = "" # Reset temp component. + if index + 1 != len(components): + if ( + temp_component.lower() in map(str.lower, lexeme_form_labels_order) + and temp_component + components[index + 1] + not in lexeme_form_labels_order + ): + valid_components.append(temp_component) + temp_component = "" # Reset temp component. if temp_component: valid_components.append(temp_component) split_vars.append(valid_components) # Create a map for fast component position lookup. - order_map = { - item.lower(): index for index, item in enumerate(lexeme_form_labels_order) - } + order_map = {item: index for index, item in enumerate(lexeme_form_labels_order)} # Group columns by component length for sorting. grouped_columns = {} @@ -429,9 +433,7 @@ def compare_key(components): sorted_columns = [] for length in sorted(grouped_columns.keys()): sorted_group = sorted(grouped_columns[length], key=compare_key) - sorted_columns.extend( - "".join(comp.capitalize() for comp in col) for col in sorted_group - ) + sorted_columns.extend("".join(comp for comp in col) for col in sorted_group) # Append labeling service columns to the end. sorted_columns.extend( diff --git a/src/scribe_data/wikidata/language_data_extraction/arabic/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/arabic/adjectives/query_adjectives.sparql index eae27703..c00cd03b 100644 --- a/src/scribe_data/wikidata/language_data_extraction/arabic/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/arabic/adjectives/query_adjectives.sparql @@ -6,29 +6,30 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective ?nominativeFeminineIndefiniteSingular - ?nominativeMasculineIndefiniteSingular - ?nominativeFeminineIndefiniteDual - ?nominativeMasculineIndefiniteDual ?nominativeFeminineIndefinitePlural + ?nominativeFeminineIndefiniteDual + ?nominativeMasculineIndefiniteSingular ?nominativeMasculineIndefinitePlural - ?accusativeFeminineIndefiniteSingular - ?accusativeMasculineIndefiniteSingular - ?accusativeFeminineIndefiniteDual - ?accusativeMasculineIndefiniteDual - ?accusativeFeminineIndefinitePlural - ?accusativeMasculineIndefinitePlural + ?nominativeMasculineIndefiniteDual ?genitiveFeminineIndefiniteSingular - ?genitiveMasculineIndefiniteSingular - ?genitiveFeminineIndefiniteDual - ?genitiveMasculineIndefiniteDual ?genitiveFeminineIndefinitePlural + ?genitiveFeminineIndefiniteDual + ?genitiveMasculineIndefiniteSingular ?genitiveMasculineIndefinitePlural + ?genitiveMasculineIndefiniteDual + ?accusativeFeminineIndefiniteSingular + ?accusativeFeminineIndefinitePlural + ?accusativeFeminineIndefiniteDual + ?accusativeMasculineIndefiniteSingular + ?accusativeMasculineIndefinitePlural + ?accusativeMasculineIndefiniteDual ?pausalFeminineIndefiniteSingular - ?pausalMasculineIndefiniteSingular - ?pausalFeminineIndefiniteDual - ?pausalMasculineIndefiniteDual ?pausalFeminineIndefinitePlural + ?pausalFeminineIndefiniteDual + ?pausalMasculineIndefiniteSingular ?pausalMasculineIndefinitePlural + ?pausalMasculineIndefiniteDual + WHERE { ?lexeme dct:language wd:Q13955 ; @@ -37,7 +38,7 @@ WHERE { # MARK: Nominative - # Singular + # Feminine OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefiniteSingularForm . @@ -46,31 +47,24 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefiniteSingularForm . - ?nominativeMasculineIndefiniteSingularForm ontolex:representation ?nominativeMasculineIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q131105, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefinitePluralForm . + ?nominativeFeminineIndefinitePluralForm ontolex:representation ?nominativeFeminineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q131105, wd:Q53997857 . } # Dual - OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefiniteDualForm . ?nominativeFeminineIndefiniteDualForm ontolex:representation ?nominativeFeminineIndefiniteDual ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q131105, wd:Q53997857 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefiniteDualForm . - ?nominativeMasculineIndefiniteDualForm ontolex:representation ?nominativeMasculineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q131105, wd:Q53997857 . - } - - # Plural + # Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefinitePluralForm . - ?nominativeFeminineIndefinitePluralForm ontolex:representation ?nominativeFeminineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q131105, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefiniteSingularForm . + ?nominativeMasculineIndefiniteSingularForm ontolex:representation ?nominativeMasculineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q131105, wd:Q53997857 . } OPTIONAL { @@ -79,97 +73,100 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q131105, wd:Q53997857 . } - # MARK: Accusative + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefiniteDualForm . + ?nominativeMasculineIndefiniteDualForm ontolex:representation ?nominativeMasculineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q131105, wd:Q53997857 . + } - # Singular + # MARK: Genitive + + # Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteSingularForm . - ?accusativeFeminineIndefiniteSingularForm ontolex:representation ?accusativeFeminineIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146078, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteSingularForm . + ?genitiveFeminineIndefiniteSingularForm ontolex:representation ?genitiveFeminineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146233, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteSingularForm . - ?accusativeMasculineIndefiniteSingularForm ontolex:representation ?accusativeMasculineIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146078, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefinitePluralForm . + ?genitiveFeminineIndefinitePluralForm ontolex:representation ?genitiveFeminineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146233, wd:Q53997857 . } - # Dual - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteDualForm . - ?accusativeFeminineIndefiniteDualForm ontolex:representation ?accusativeFeminineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146078, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteDualForm . + ?genitiveFeminineIndefiniteDualForm ontolex:representation ?genitiveFeminineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146233, wd:Q53997857 . } + # Masculine + OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteDualForm . - ?accusativeMasculineIndefiniteDualForm ontolex:representation ?accusativeMasculineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146078, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteSingularForm . + ?genitiveMasculineIndefiniteSingularForm ontolex:representation ?genitiveMasculineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146233, wd:Q53997857 . } - # Plural - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefinitePluralForm . - ?accusativeFeminineIndefinitePluralForm ontolex:representation ?accusativeFeminineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146078, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefinitePluralForm . + ?genitiveMasculineIndefinitePluralForm ontolex:representation ?genitiveMasculineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146233, wd:Q53997857 . } + OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefinitePluralForm . - ?accusativeMasculineIndefinitePluralForm ontolex:representation ?accusativeMasculineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146078, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteDualForm . + ?genitiveMasculineIndefiniteDualForm ontolex:representation ?genitiveMasculineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146233, wd:Q53997857 . } - # MARK: Genitive + + # MARK: Accusative # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteSingularForm . - ?genitiveFeminineIndefiniteSingularForm ontolex:representation ?genitiveFeminineIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146233, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteSingularForm . + ?accusativeFeminineIndefiniteSingularForm ontolex:representation ?accusativeFeminineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146078, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteSingularForm . - ?genitiveMasculineIndefiniteSingularForm ontolex:representation ?genitiveMasculineIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146233, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefinitePluralForm . + ?accusativeFeminineIndefinitePluralForm ontolex:representation ?accusativeFeminineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146078, wd:Q53997857 . } - # Dual - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteDualForm . - ?genitiveFeminineIndefiniteDualForm ontolex:representation ?genitiveFeminineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146233, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteDualForm . + ?accusativeFeminineIndefiniteDualForm ontolex:representation ?accusativeFeminineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146078, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteDualForm . - ?genitiveMasculineIndefiniteDualForm ontolex:representation ?genitiveMasculineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146233, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteSingularForm . + ?accusativeMasculineIndefiniteSingularForm ontolex:representation ?accusativeMasculineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146078, wd:Q53997857 . } - # Plural - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefinitePluralForm . - ?genitiveFeminineIndefinitePluralForm ontolex:representation ?genitiveFeminineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146233, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefinitePluralForm . + ?accusativeMasculineIndefinitePluralForm ontolex:representation ?accusativeMasculineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146078, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefinitePluralForm . - ?genitiveMasculineIndefinitePluralForm ontolex:representation ?genitiveMasculineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146233, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteDualForm . + ?accusativeMasculineIndefiniteDualForm ontolex:representation ?accusativeMasculineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146078, wd:Q53997857 . } + # MARK: Pausal - # Singular + # Feminine OPTIONAL { ?lexeme ontolex:lexicalForm ?pausalFeminineIndefiniteSingularForm . @@ -178,36 +175,36 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteSingularForm . - ?pausalMasculineIndefiniteSingularForm ontolex:representation ?pausalMasculineIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q117262361, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?pausalFeminineIndefinitePluralForm . + ?pausalFeminineIndefinitePluralForm ontolex:representation ?pausalFeminineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q117262361, wd:Q53997857 . } - # Dual - OPTIONAL { ?lexeme ontolex:lexicalForm ?pausalFeminineIndefiniteDualForm . ?pausalFeminineIndefiniteDualForm ontolex:representation ?pausalFeminineIndefiniteDual ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q117262361, wd:Q53997857 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteDualForm . - ?pausalMasculineIndefiniteDualForm ontolex:representation ?pausalMasculineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q117262361, wd:Q53997857 . - } - - # Plural + # Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?pausalFeminineIndefinitePluralForm . - ?pausalFeminineIndefinitePluralForm ontolex:representation ?pausalFeminineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q117262361, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteSingularForm . + ?pausalMasculineIndefiniteSingularForm ontolex:representation ?pausalMasculineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q117262361, wd:Q53997857 . } + # Dual + OPTIONAL { ?lexeme ontolex:lexicalForm ?pausalMasculineIndefinitePluralForm . ?pausalMasculineIndefinitePluralForm ontolex:representation ?pausalMasculineIndefinitePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q117262361, wd:Q53997857 . } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteDualForm . + ?pausalMasculineIndefiniteDualForm ontolex:representation ?pausalMasculineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q117262361, wd:Q53997857 . + } } diff --git a/src/scribe_data/wikidata/language_data_extraction/arabic/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/arabic/nouns/query_nouns.sparql index c321b912..2e62e9b1 100644 --- a/src/scribe_data/wikidata/language_data_extraction/arabic/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/arabic/nouns/query_nouns.sparql @@ -7,32 +7,33 @@ SELECT ?noun ?nominativeFeminineIndefiniteSingular - ?nominativeMasculineIndefiniteSingular - ?nominativeFeminineIndefiniteDual - ?nominativeMasculineIndefiniteDual ?nominativeFeminineIndefinitePlural + ?nominativeFeminineIndefiniteDual + ?nominativeMasculineIndefiniteSingular ?nominativeMasculineIndefinitePlural - - ?accusativeFeminineIndefiniteSingular - ?accusativeMasculineIndefiniteSingular - ?accusativeFeminineIndefiniteDual - ?accusativeMasculineIndefiniteDual - ?accusativeFeminineIndefinitePlural - ?accusativeMasculineIndefinitePlural + ?nominativeMasculineIndefiniteDual ?genitiveFeminineIndefiniteSingular - ?genitiveMasculineIndefiniteSingular - ?genitiveFeminineIndefiniteDual - ?genitiveMasculineIndefiniteDual ?genitiveFeminineIndefinitePlural + ?genitiveFeminineIndefiniteDual + ?genitiveMasculineIndefiniteSingular ?genitiveMasculineIndefinitePlural + ?genitiveMasculineIndefiniteDual + + ?accusativeFeminineIndefiniteSingular + ?accusativeFeminineIndefinitePlural + ?accusativeFeminineIndefiniteDual + ?accusativeMasculineIndefiniteSingular + ?accusativeMasculineIndefinitePlural + ?accusativeMasculineIndefiniteDual ?pausalFeminineIndefiniteSingular - ?pausalMasculineIndefiniteSingular - ?pausalFeminineIndefiniteDual - ?pausalMasculineIndefiniteDual ?pausalFeminineIndefinitePlural + ?pausalFeminineIndefiniteDual + ?pausalMasculineIndefiniteSingular ?pausalMasculineIndefinitePlural + ?pausalMasculineIndefiniteDual + WHERE { ?lexeme dct:language wd:Q13955 ; @@ -49,6 +50,18 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q131105, wd:Q53997857 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefinitePluralForm . + ?nominativeFeminineIndefinitePluralForm ontolex:representation ?nominativeFeminineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q131105, wd:Q53997857 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefiniteDualForm . + ?nominativeFeminineIndefiniteDualForm ontolex:representation ?nominativeFeminineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q131105, wd:Q53997857 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefiniteSingularForm . ?nominativeMasculineIndefiniteSingularForm ontolex:representation ?nominativeMasculineIndefiniteSingular ; @@ -58,9 +71,9 @@ WHERE { # Dual OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefiniteDualForm . - ?nominativeFeminineIndefiniteDualForm ontolex:representation ?nominativeFeminineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q131105, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefinitePluralForm . + ?nominativeMasculineIndefinitePluralForm ontolex:representation ?nominativeMasculineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q131105, wd:Q53997857 . } OPTIONAL { @@ -69,107 +82,94 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q131105, wd:Q53997857 . } - # Plural + # MARK: Genitive + + # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefinitePluralForm . - ?nominativeFeminineIndefinitePluralForm ontolex:representation ?nominativeFeminineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q131105, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteSingularForm . + ?genitiveFeminineIndefiniteSingularForm ontolex:representation ?genitiveFeminineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146233, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefinitePluralForm . - ?nominativeMasculineIndefinitePluralForm ontolex:representation ?nominativeMasculineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q131105, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefinitePluralForm . + ?genitiveFeminineIndefinitePluralForm ontolex:representation ?genitiveFeminineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146233, wd:Q53997857 . } - # MARK: Accusative - # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteSingularForm . - ?accusativeFeminineIndefiniteSingularForm ontolex:representation ?accusativeFeminineIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146078, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteDualForm . + ?genitiveFeminineIndefiniteDualForm ontolex:representation ?genitiveFeminineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146233, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteSingularForm . - ?accusativeMasculineIndefiniteSingularForm ontolex:representation ?accusativeMasculineIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146078, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteSingularForm . + ?genitiveMasculineIndefiniteSingularForm ontolex:representation ?genitiveMasculineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146233, wd:Q53997857 . } - # Dual - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteDualForm . - ?accusativeFeminineIndefiniteDualForm ontolex:representation ?accusativeFeminineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146078, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefinitePluralForm . + ?genitiveMasculineIndefinitePluralForm ontolex:representation ?genitiveMasculineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146233, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteDualForm . - ?accusativeMasculineIndefiniteDualForm ontolex:representation ?accusativeMasculineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146078, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteDualForm . + ?genitiveMasculineIndefiniteDualForm ontolex:representation ?genitiveMasculineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146233, wd:Q53997857 . } - # Plural + # MARK: Accusative - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefinitePluralForm . - ?accusativeFeminineIndefinitePluralForm ontolex:representation ?accusativeFeminineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146078, wd:Q53997857 . - } + # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefinitePluralForm . - ?accusativeMasculineIndefinitePluralForm ontolex:representation ?accusativeMasculineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146078, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteSingularForm . + ?accusativeFeminineIndefiniteSingularForm ontolex:representation ?accusativeFeminineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146078, wd:Q53997857 . } - # MARK: Genitive + # Dual - # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteSingularForm . - ?genitiveFeminineIndefiniteSingularForm ontolex:representation ?genitiveFeminineIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146233, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefinitePluralForm . + ?accusativeFeminineIndefinitePluralForm ontolex:representation ?accusativeFeminineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146078, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteSingularForm . - ?genitiveMasculineIndefiniteSingularForm ontolex:representation ?genitiveMasculineIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146233, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteDualForm . + ?accusativeFeminineIndefiniteDualForm ontolex:representation ?accusativeFeminineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146078, wd:Q53997857 . } - # Dual + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteSingularForm . + ?accusativeMasculineIndefiniteSingularForm ontolex:representation ?accusativeMasculineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146078, wd:Q53997857 . + } OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteDualForm . - ?genitiveFeminineIndefiniteDualForm ontolex:representation ?genitiveFeminineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146233, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefinitePluralForm . + ?accusativeMasculineIndefinitePluralForm ontolex:representation ?accusativeMasculineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146078, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteDualForm . - ?genitiveMasculineIndefiniteDualForm ontolex:representation ?genitiveMasculineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146233, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteDualForm . + ?accusativeMasculineIndefiniteDualForm ontolex:representation ?accusativeMasculineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146078, wd:Q53997857 . } # Plural - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefinitePluralForm . - ?genitiveFeminineIndefinitePluralForm ontolex:representation ?genitiveFeminineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146233, wd:Q53997857 . - } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefinitePluralForm . - ?genitiveMasculineIndefinitePluralForm ontolex:representation ?genitiveMasculineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146233, wd:Q53997857 . - } # MARK: Pausal @@ -181,6 +181,18 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q117262361, wd:Q53997857 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pausalFeminineIndefinitePluralForm . + ?pausalFeminineIndefinitePluralForm ontolex:representation ?pausalFeminineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q117262361, wd:Q53997857 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pausalFeminineIndefiniteDualForm . + ?pausalFeminineIndefiniteDualForm ontolex:representation ?pausalFeminineIndefiniteDual ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q117262361, wd:Q53997857 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteSingularForm . ?pausalMasculineIndefiniteSingularForm ontolex:representation ?pausalMasculineIndefiniteSingular ; @@ -190,11 +202,12 @@ WHERE { # Dual OPTIONAL { - ?lexeme ontolex:lexicalForm ?pausalFeminineIndefiniteDualForm . - ?pausalFeminineIndefiniteDualForm ontolex:representation ?pausalFeminineIndefiniteDual ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q117262361, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?pausalMasculineIndefinitePluralForm . + ?pausalMasculineIndefinitePluralForm ontolex:representation ?pausalMasculineIndefinitePlural ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q117262361, wd:Q53997857 . } + OPTIONAL { ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteDualForm . ?pausalMasculineIndefiniteDualForm ontolex:representation ?pausalMasculineIndefiniteDual ; @@ -203,15 +216,4 @@ WHERE { # Plural - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pausalFeminineIndefinitePluralForm . - ?pausalFeminineIndefinitePluralForm ontolex:representation ?pausalFeminineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q117262361, wd:Q53997857 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pausalMasculineIndefinitePluralForm . - ?pausalMasculineIndefinitePluralForm ontolex:representation ?pausalMasculineIndefinitePlural ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q117262361, wd:Q53997857 . - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_1.sparql index 6251f4f1..3f2643e1 100644 --- a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_1.sparql @@ -6,16 +6,20 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb ?indicativeFirstPersonSingularFiilMudari + ?indicativeFirstPersonPluralFiilMudari + ?indicativeSecondPersonDualFiilMudari + ?feminineIndicativeSecondPersonSingularFiilMudari - ?masculineIndicativeSecondPersonSingularFiilMudari + ?feminineIndicativeSecondPersonPluralFiilMudari ?feminineIndicativeThirdPersonSingularFiilMudari - ?masculineIndicativeThirdPersonSingularFiilMudari - ?indicativeSecondPersonDualFiilMudari ?feminineIndicativeThirdPersonDualFiilMudari - ?masculineIndicativeThirdPersonDualFiilMudari - ?indicativeFirstPersonPluralFiilMudari - ?feminineIndicativeSecondPersonPluralFiilMudari + + ?masculineIndicativeSecondPersonSingularFiilMudari ?masculineIndicativeSecondPersonPluralFiilMudari + ?masculineIndicativeThirdPersonSingularFiilMudari + ?masculineIndicativeThirdPersonDualFiilMudari + + WHERE { ?lexeme dct:language wd:Q13955 ; @@ -31,33 +35,33 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineIndicativeSecondPersonSingularFiilMudariForm . - ?feminineIndicativeSecondPersonSingularFiilMudariForm ontolex:representation ?feminineIndicativeSecondPersonSingularFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1775415, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?indicativeFirstPersonPluralFiilMudariForm . + ?indicativeFirstPersonPluralFiilMudariForm ontolex:representation ?indicativeFirstPersonPluralFiilMudari ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineIndicativeSecondPersonSingularFiilMudariForm . - ?masculineIndicativeSecondPersonSingularFiilMudariForm ontolex:representation ?masculineIndicativeSecondPersonSingularFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q499327, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?indicativeSecondPersonDualFiilMudariForm . + ?indicativeSecondPersonDualFiilMudariForm ontolex:representation ?indicativeSecondPersonDualFiilMudari ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110022, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineIndicativeThirdPersonSingularFiilMudariForm . - ?feminineIndicativeThirdPersonSingularFiilMudariForm ontolex:representation ?feminineIndicativeThirdPersonSingularFiilMudari ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q1775415, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?feminineIndicativeSecondPersonSingularFiilMudariForm . + ?feminineIndicativeSecondPersonSingularFiilMudariForm ontolex:representation ?feminineIndicativeSecondPersonSingularFiilMudari ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1775415, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineIndicativeThirdPersonSingularFiilMudariForm . - ?masculineIndicativeThirdPersonSingularFiilMudariForm ontolex:representation ?masculineIndicativeThirdPersonSingularFiilMudari ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q499327, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?feminineIndicativeSecondPersonPluralFiilMudariForm . + ?feminineIndicativeSecondPersonPluralFiilMudariForm ontolex:representation ?feminineIndicativeSecondPersonPluralFiilMudari ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1775415, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeSecondPersonDualFiilMudariForm . - ?indicativeSecondPersonDualFiilMudariForm ontolex:representation ?indicativeSecondPersonDualFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110022, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?feminineIndicativeThirdPersonSingularFiilMudariForm . + ?feminineIndicativeThirdPersonSingularFiilMudariForm ontolex:representation ?feminineIndicativeThirdPersonSingularFiilMudari ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q1775415, wd:Q682111, wd:Q12230930 . } OPTIONAL { @@ -67,26 +71,28 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineIndicativeThirdPersonDualFiilMudariForm . - ?masculineIndicativeThirdPersonDualFiilMudariForm ontolex:representation ?masculineIndicativeThirdPersonDualFiilMudari ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q499327, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?masculineIndicativeSecondPersonSingularFiilMudariForm . + ?masculineIndicativeSecondPersonSingularFiilMudariForm ontolex:representation ?masculineIndicativeSecondPersonSingularFiilMudari ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q499327, wd:Q682111, wd:Q12230930 . } + OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeFirstPersonPluralFiilMudariForm . - ?indicativeFirstPersonPluralFiilMudariForm ontolex:representation ?indicativeFirstPersonPluralFiilMudari ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?masculineIndicativeSecondPersonPluralFiilMudariForm . + ?masculineIndicativeSecondPersonPluralFiilMudariForm ontolex:representation ?masculineIndicativeSecondPersonPluralFiilMudari ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q499327, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineIndicativeSecondPersonPluralFiilMudariForm . - ?feminineIndicativeSecondPersonPluralFiilMudariForm ontolex:representation ?feminineIndicativeSecondPersonPluralFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1775415, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?masculineIndicativeThirdPersonSingularFiilMudariForm . + ?masculineIndicativeThirdPersonSingularFiilMudariForm ontolex:representation ?masculineIndicativeThirdPersonSingularFiilMudari ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q499327, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineIndicativeSecondPersonPluralFiilMudariForm . - ?masculineIndicativeSecondPersonPluralFiilMudariForm ontolex:representation ?masculineIndicativeSecondPersonPluralFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q499327, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?masculineIndicativeThirdPersonDualFiilMudariForm . + ?masculineIndicativeThirdPersonDualFiilMudariForm ontolex:representation ?masculineIndicativeThirdPersonDualFiilMudari ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q499327, wd:Q682111, wd:Q12230930 . } + } diff --git a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_2.sparql index f69837ae..a1c917ba 100644 --- a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_2.sparql @@ -4,18 +4,21 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?verb - ?activePerformativeFirstPersonSingular - ?feminineActivePerformativeSecondPersonSingular - ?masculineActivePerformativeSecondPersonSingular - ?feminineActivePerformativeThirdPersonSingular - ?masculineActivePerformativeThirdPersonSingular - ?activePerformativeSecondPersonDual - ?feminineActivePerformativeThirdPersonDual - ?masculineActivePerformativeThirdPersonDual - ?activePerformativeFirstPersonPlural - ?feminineActivePerformativeSecondPersonPlural - ?masculineActivePerformativeSecondPersonPlural +?verb +?activePerformativeFirstPersonSingular +?activePerformativeFirstPersonPlural +?activePerformativeSecondPersonDual + +?feminineActivePerformativeSecondPersonSingular +?feminineActivePerformativeSecondPersonPlural +?feminineActivePerformativeThirdPersonSingular +?feminineActivePerformativeThirdPersonDual + +?masculineActivePerformativeSecondPersonSingular +?masculineActivePerformativeSecondPersonPlural +?masculineActivePerformativeThirdPersonSingular +?masculineActivePerformativeThirdPersonDual + WHERE { ?lexeme dct:language wd:Q13955 ; @@ -30,6 +33,18 @@ WHERE { wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q1317831, wd:Q124351233 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?activePerformativeFirstPersonPluralForm . + ?activePerformativeFirstPersonPluralForm ontolex:representation ?activePerformativeFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q1317831, wd:Q124351233 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?activePerformativeSecondPersonDualForm . + ?activePerformativeSecondPersonDualForm ontolex:representation ?activePerformativeSecondPersonDual ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110022, wd:Q1317831, wd:Q124351233 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineActivePerformativeSecondPersonSingularForm . ?feminineActivePerformativeSecondPersonSingularForm ontolex:representation ?feminineActivePerformativeSecondPersonSingular ; @@ -37,9 +52,9 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineActivePerformativeSecondPersonSingularForm . - ?masculineActivePerformativeSecondPersonSingularForm ontolex:representation ?masculineActivePerformativeSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q499327, wd:Q1317831, wd:Q124351233 . + ?lexeme ontolex:lexicalForm ?feminineActivePerformativeSecondPersonPluralForm . + ?feminineActivePerformativeSecondPersonPluralForm ontolex:representation ?feminineActivePerformativeSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1775415, wd:Q1317831, wd:Q124351233 . } OPTIONAL { @@ -48,17 +63,6 @@ WHERE { wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q1775415, wd:Q1317831, wd:Q124351233 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineActivePerformativeThirdPersonSingularForm . - ?masculineActivePerformativeThirdPersonSingularForm ontolex:representation ?masculineActivePerformativeThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q499327, wd:Q1317831, wd:Q124351233 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?activePerformativeSecondPersonDualForm . - ?activePerformativeSecondPersonDualForm ontolex:representation ?activePerformativeSecondPersonDual ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110022, wd:Q1317831, wd:Q124351233 . - } OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineActivePerformativeThirdPersonDualForm . @@ -67,26 +71,28 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineActivePerformativeThirdPersonDualForm . - ?masculineActivePerformativeThirdPersonDualForm ontolex:representation ?masculineActivePerformativeThirdPersonDual ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q499327, wd:Q1317831, wd:Q124351233 . + ?lexeme ontolex:lexicalForm ?masculineActivePerformativeSecondPersonSingularForm . + ?masculineActivePerformativeSecondPersonSingularForm ontolex:representation ?masculineActivePerformativeSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q499327, wd:Q1317831, wd:Q124351233 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?activePerformativeFirstPersonPluralForm . - ?activePerformativeFirstPersonPluralForm ontolex:representation ?activePerformativeFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q1317831, wd:Q124351233 . + ?lexeme ontolex:lexicalForm ?masculineActivePerformativeSecondPersonPluralForm . + ?masculineActivePerformativeSecondPersonPluralForm ontolex:representation ?masculineActivePerformativeSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q499327, wd:Q1317831, wd:Q124351233 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineActivePerformativeSecondPersonPluralForm . - ?feminineActivePerformativeSecondPersonPluralForm ontolex:representation ?feminineActivePerformativeSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1775415, wd:Q1317831, wd:Q124351233 . + ?lexeme ontolex:lexicalForm ?masculineActivePerformativeThirdPersonSingularForm . + ?masculineActivePerformativeThirdPersonSingularForm ontolex:representation ?masculineActivePerformativeThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q499327, wd:Q1317831, wd:Q124351233 . } + OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineActivePerformativeSecondPersonPluralForm . - ?masculineActivePerformativeSecondPersonPluralForm ontolex:representation ?masculineActivePerformativeSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q499327, wd:Q1317831, wd:Q124351233 . + ?lexeme ontolex:lexicalForm ?masculineActivePerformativeThirdPersonDualForm . + ?masculineActivePerformativeThirdPersonDualForm ontolex:representation ?masculineActivePerformativeThirdPersonDual ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q499327, wd:Q1317831, wd:Q124351233 . } + } diff --git a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_3.sparql b/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_3.sparql index 4184579e..56d00532 100644 --- a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_3.sparql @@ -5,23 +5,22 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb - ?masculineIndicativeSecondPersonSingularFiilMudari - ?feminineIndicativeSecondPersonSingularFiilMudari ?indicativeSecondPersonDualFiilMudari - ?masculineIndicativeSecondPersonPluralFiilMudari + ?feminineIndicativeSecondPersonSingularFiilMudari ?feminineIndicativeSecondPersonPluralFiilMudari + ?masculineIndicativeSecondPersonSingularFiilMudari + ?masculineIndicativeSecondPersonPluralFiilMudari + WHERE { ?lexeme dct:language wd:Q13955 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . - # MARK: Imperative - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineIndicativeSecondPersonSingularFiilMudariForm . - ?masculineIndicativeSecondPersonSingularFiilMudariForm ontolex:representation ?masculineIndicativeSecondPersonSingularFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q499327, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?indicativeSecondPersonDualFiilMudariForm . + ?indicativeSecondPersonDualFiilMudariForm ontolex:representation ?indicativeSecondPersonDualFiilMudari ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110022, wd:Q682111, wd:Q12230930 . } OPTIONAL { @@ -31,9 +30,16 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeSecondPersonDualFiilMudariForm . - ?indicativeSecondPersonDualFiilMudariForm ontolex:representation ?indicativeSecondPersonDualFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110022, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?feminineIndicativeSecondPersonPluralFiilMudariForm . + ?feminineIndicativeSecondPersonPluralFiilMudariForm ontolex:representation ?feminineIndicativeSecondPersonPluralFiilMudari ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1775415, wd:Q682111, wd:Q12230930 . + } + + # MARK: Imperative + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masculineIndicativeSecondPersonSingularFiilMudariForm . + ?masculineIndicativeSecondPersonSingularFiilMudariForm ontolex:representation ?masculineIndicativeSecondPersonSingularFiilMudari ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q499327, wd:Q682111, wd:Q12230930 . } OPTIONAL { @@ -42,9 +48,7 @@ WHERE { wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q499327, wd:Q682111, wd:Q12230930 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineIndicativeSecondPersonPluralFiilMudariForm . - ?feminineIndicativeSecondPersonPluralFiilMudariForm ontolex:representation ?feminineIndicativeSecondPersonPluralFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1775415, wd:Q682111, wd:Q12230930 . - } + + + } diff --git a/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_1.sparql index f3c32b63..fd26cda2 100644 --- a/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_1.sparql @@ -4,69 +4,92 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?infinitive - ?indicativePresentFirstPersonSingular - ?indicativePresentSecondPersonSingular - ?indicativePresentThirdPersonSingular - ?indicativePresentFirstPersonPlural - ?indicativePresentSecondPersonPlural - ?indicativePresentThirdPersonPlural - ?imperativeFirstPersonPlural - ?imperativeSecondPersonSingular - ?imperativeSecondPersonPlural - ?feminineSingularActiveParticiple - ?masculineAnimateSingularActiveParticiple - ?masculineInanimateSingularActiveParticiple - ?neuterSingularActiveParticiple - ?femininePluralActiveParticiple - ?masculineAnimatePluralActiveParticiple - ?masculineInanimatePluralActiveParticiple - ?neuterPluralActiveParticiple + +?infinitive + +?feminineSingularActiveParticiple +?femininePluralActiveParticiple + +?masculineInanimateSingularActiveParticiple +?masculineInanimatePluralActiveParticiple +?masculineAnimateSingularActiveParticiple +?masculineAnimatePluralActiveParticiple + +?neuterSingularActiveParticiple +?neuterPluralActiveParticiple + +?imperativeFirstPersonPlural +?imperativeSecondPersonSingular +?imperativeSecondPersonPlural + +?indicativePresentFirstPersonSingular +?indicativePresentFirstPersonPlural +?indicativePresentSecondPersonSingular +?indicativePresentSecondPersonPlural +?indicativePresentThirdPersonSingular +?indicativePresentThirdPersonPlural + WHERE { ?lexeme dct:language wd:Q9056 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?infinitive . - # MARK: Indicative Present + + # MARK: Imperative + OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . - ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . + ?lexeme ontolex:lexicalForm ?feminineSingularActiveParticipleForm . + ?feminineSingularActiveParticipleForm ontolex:representation ?feminineSingularActiveParticiple ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249355 . } + OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . - ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . + ?lexeme ontolex:lexicalForm ?femininePluralActiveParticipleForm . + ?femininePluralActiveParticipleForm ontolex:representation ?femininePluralActiveParticiple ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . - ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . + ?lexeme ontolex:lexicalForm ?masculineInanimateSingularActiveParticipleForm . + ?masculineInanimateSingularActiveParticipleForm ontolex:representation ?masculineInanimateSingularActiveParticiple ; + wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . - ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . + ?lexeme ontolex:lexicalForm ?masculineInanimatePluralActiveParticipleForm . + ?masculineInanimatePluralActiveParticipleForm ontolex:representation ?masculineInanimatePluralActiveParticiple ; + wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . - ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . + ?lexeme ontolex:lexicalForm ?masculineAnimateSingularActiveParticipleForm . + ?masculineAnimateSingularActiveParticipleForm ontolex:representation ?masculineAnimateSingularActiveParticiple ; + wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q72249355 . } + + OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . - ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . + ?lexeme ontolex:lexicalForm ?masculineAnimatePluralActiveParticipleForm . + ?masculineAnimatePluralActiveParticipleForm ontolex:representation ?masculineAnimatePluralActiveParticiple ; + wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249355 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?neuterSingularActiveParticipleForm . + ?neuterSingularActiveParticipleForm ontolex:representation ?neuterSingularActiveParticiple ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249355 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?neuterPluralActiveParticipleForm . + ?neuterPluralActiveParticipleForm ontolex:representation ?neuterPluralActiveParticiple ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249355 . } - # MARK: Imperative OPTIONAL { ?lexeme ontolex:lexicalForm ?imperativeFirstPersonPluralForm . @@ -88,51 +111,46 @@ WHERE { # MARK: Active Participle - OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineSingularActiveParticipleForm . - ?feminineSingularActiveParticipleForm ontolex:representation ?feminineSingularActiveParticiple ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249355 . - } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAnimateSingularActiveParticipleForm . - ?masculineAnimateSingularActiveParticipleForm ontolex:representation ?masculineAnimateSingularActiveParticiple ; - wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q72249355 . - } + + + # MARK: Indicative Present OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineInanimateSingularActiveParticipleForm . - ?masculineInanimateSingularActiveParticipleForm ontolex:representation ?masculineInanimateSingularActiveParticiple ; - wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . + ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterSingularActiveParticipleForm . - ?neuterSingularActiveParticipleForm ontolex:representation ?neuterSingularActiveParticiple ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . + ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePluralActiveParticipleForm . - ?femininePluralActiveParticipleForm ontolex:representation ?femininePluralActiveParticiple ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAnimatePluralActiveParticipleForm . - ?masculineAnimatePluralActiveParticipleForm ontolex:representation ?masculineAnimatePluralActiveParticiple ; - wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . + ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineInanimatePluralActiveParticipleForm . - ?masculineInanimatePluralActiveParticipleForm ontolex:representation ?masculineInanimatePluralActiveParticiple ; - wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . } + OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterPluralActiveParticipleForm . - ?neuterPluralActiveParticipleForm ontolex:representation ?neuterPluralActiveParticiple ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . + ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . } + } diff --git a/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_2.sparql index 1100549b..b51398f7 100644 --- a/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_2.sparql @@ -5,23 +5,25 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?femininePastTransgressiveSingular + ?femininePastTransgressivePlural ?feminineSingularPassiveParticiple - ?masculineAnimateSingularPassiveParticiple - ?masculineInanimateSingularPassiveParticiple - ?neuterSingularPassiveParticiple ?femininePluralPassiveParticiple - ?masculineAnimatePluralPassiveParticiple - ?masculineInanimatePluralPassiveParticiple - ?neuterPluralPassiveParticiple - ?femininePastTransgressiveSingular - ?masculineAnimatePastTransgressiveSingular ?masculineInanimatePastTransgressiveSingular - ?neuterPastTransgressiveSingular - ?femininePastTransgressivePlural - ?masculineAnimatePastTransgressivePlural ?masculineInanimatePastTransgressivePlural + ?masculineInanimateSingularPassiveParticiple + ?masculineInanimatePluralPassiveParticiple + ?masculineAnimatePastTransgressiveSingular + ?masculineAnimatePastTransgressivePlural + ?masculineAnimateSingularPassiveParticiple + ?masculineAnimatePluralPassiveParticiple + + ?neuterPastTransgressiveSingular ?neuterPastTransgressivePlural + ?neuterSingularPassiveParticiple + ?neuterPluralPassiveParticiple + WHERE { ?lexeme dct:language wd:Q9056 ; @@ -30,27 +32,21 @@ WHERE { # MARK: Passive Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineSingularPassiveParticipleForm . - ?feminineSingularPassiveParticipleForm ontolex:representation ?feminineSingularPassiveParticiple ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249544 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAnimateSingularPassiveParticipleForm . - ?masculineAnimateSingularPassiveParticipleForm ontolex:representation ?masculineAnimateSingularPassiveParticiple ; - wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q72249544 . + ?lexeme ontolex:lexicalForm ?femininePastTransgressiveSingularForm . + ?femininePastTransgressiveSingularForm ontolex:representation ?femininePastTransgressiveSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q12750232 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineInanimateSingularPassiveParticipleForm . - ?masculineInanimateSingularPassiveParticipleForm ontolex:representation ?masculineInanimateSingularPassiveParticiple ; - wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249544 . + ?lexeme ontolex:lexicalForm ?femininePastTransgressivePluralForm . + ?femininePastTransgressivePluralForm ontolex:representation ?femininePastTransgressivePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q12750232 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterSingularPassiveParticipleForm . - ?neuterSingularPassiveParticipleForm ontolex:representation ?neuterSingularPassiveParticiple ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249544 . + ?lexeme ontolex:lexicalForm ?feminineSingularPassiveParticipleForm . + ?feminineSingularPassiveParticipleForm ontolex:representation ?feminineSingularPassiveParticiple ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249544 . } OPTIONAL { @@ -60,9 +56,21 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAnimatePluralPassiveParticipleForm . - ?masculineAnimatePluralPassiveParticipleForm ontolex:representation ?masculineAnimatePluralPassiveParticiple ; - wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249544 . + ?lexeme ontolex:lexicalForm ?masculineInanimatePastTransgressiveSingularForm . + ?masculineInanimatePastTransgressiveSingularForm ontolex:representation ?masculineInanimatePastTransgressiveSingular ; + wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q12750232 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masculineInanimatePastTransgressivePluralForm . + ?masculineInanimatePastTransgressivePluralForm ontolex:representation ?masculineInanimatePastTransgressivePlural ; + wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q12750232 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masculineInanimateSingularPassiveParticipleForm . + ?masculineInanimateSingularPassiveParticipleForm ontolex:representation ?masculineInanimateSingularPassiveParticiple ; + wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249544 . } OPTIONAL { @@ -72,29 +80,29 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterPluralPassiveParticipleForm . - ?neuterPluralPassiveParticipleForm ontolex:representation ?neuterPluralPassiveParticiple ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249544 . + ?lexeme ontolex:lexicalForm ?masculineAnimatePastTransgressiveSingularForm . + ?masculineAnimatePastTransgressiveSingularForm ontolex:representation ?masculineAnimatePastTransgressiveSingular ; + wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q12750232 . } - # MARK: Past Transgressive + OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePastTransgressiveSingularForm . - ?femininePastTransgressiveSingularForm ontolex:representation ?femininePastTransgressiveSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q12750232 . + ?lexeme ontolex:lexicalForm ?masculineAnimatePastTransgressivePluralForm . + ?masculineAnimatePastTransgressivePluralForm ontolex:representation ?masculineAnimatePastTransgressivePlural ; + wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q12750232 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAnimatePastTransgressiveSingularForm . - ?masculineAnimatePastTransgressiveSingularForm ontolex:representation ?masculineAnimatePastTransgressiveSingular ; - wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q12750232 . + ?lexeme ontolex:lexicalForm ?masculineAnimateSingularPassiveParticipleForm . + ?masculineAnimateSingularPassiveParticipleForm ontolex:representation ?masculineAnimateSingularPassiveParticiple ; + wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineInanimatePastTransgressiveSingularForm . - ?masculineInanimatePastTransgressiveSingularForm ontolex:representation ?masculineInanimatePastTransgressiveSingular ; - wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q12750232 . + ?lexeme ontolex:lexicalForm ?masculineAnimatePluralPassiveParticipleForm . + ?masculineAnimatePluralPassiveParticipleForm ontolex:representation ?masculineAnimatePluralPassiveParticiple ; + wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249544 . } OPTIONAL { @@ -104,26 +112,23 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePastTransgressivePluralForm . - ?femininePastTransgressivePluralForm ontolex:representation ?femininePastTransgressivePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q12750232 . + ?lexeme ontolex:lexicalForm ?neuterPastTransgressivePluralForm . + ?neuterPastTransgressivePluralForm ontolex:representation ?neuterPastTransgressivePlural ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q12750232 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAnimatePastTransgressivePluralForm . - ?masculineAnimatePastTransgressivePluralForm ontolex:representation ?masculineAnimatePastTransgressivePlural ; - wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q12750232 . - } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineInanimatePastTransgressivePluralForm . - ?masculineInanimatePastTransgressivePluralForm ontolex:representation ?masculineInanimatePastTransgressivePlural ; - wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q12750232 . + ?lexeme ontolex:lexicalForm ?neuterSingularPassiveParticipleForm . + ?neuterSingularPassiveParticipleForm ontolex:representation ?neuterSingularPassiveParticiple ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterPastTransgressivePluralForm . - ?neuterPastTransgressivePluralForm ontolex:representation ?neuterPastTransgressivePlural ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q12750232 . + ?lexeme ontolex:lexicalForm ?neuterPluralPassiveParticipleForm . + ?neuterPluralPassiveParticipleForm ontolex:representation ?neuterPluralPassiveParticiple ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249544 . } + + # MARK: Past Transgressive } diff --git a/src/scribe_data/wikidata/language_data_extraction/dagbani/adverbs/query_adverbs.sparql b/src/scribe_data/wikidata/language_data_extraction/dagbani/adverbs/query_adverbs.sparql index 8dda2476..75673de6 100644 --- a/src/scribe_data/wikidata/language_data_extraction/dagbani/adverbs/query_adverbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/dagbani/adverbs/query_adverbs.sparql @@ -5,32 +5,21 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adverb - ?adverbial - ?plural ?present - ?adverbialLocation ?past ?singular + ?plural + ?adverbial + ?adverbialLocation ?adverbOfManner - ?phrase ?locativeAdverb + ?phrase WHERE { ?lexeme dct:language wd:Q32238 ; wikibase:lexicalCategory wd:Q380057 ; wikibase:lemma ?adverb . - OPTIONAL { - ?lexeme ontolex:lexicalForm ?adverbialForm . - ?adverbialForm ontolex:representation ?adverbial ; - wikibase:grammaticalFeature wd:Q380012 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralForm . - ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q146786 . - } OPTIONAL { ?lexeme ontolex:lexicalForm ?presentForm . @@ -38,39 +27,54 @@ WHERE { wikibase:grammaticalFeature wd:Q192613 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?adverbialLocationForm . - ?adverbialLocationForm ontolex:representation ?adverbialLocation ; - wikibase:grammaticalFeature wd:Q5978303 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?pastForm . ?pastForm ontolex:representation ?past ; wikibase:grammaticalFeature wd:Q1994301 . } + OPTIONAL { ?lexeme ontolex:lexicalForm ?singularForm . ?singularForm ontolex:representation ?singular ; wikibase:grammaticalFeature wd:Q110786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 . + } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?adverbialForm . + ?adverbialForm ontolex:representation ?adverbial ; + wikibase:grammaticalFeature wd:Q380012 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?adverbialLocationForm . + ?adverbialLocationForm ontolex:representation ?adverbialLocation ; + wikibase:grammaticalFeature wd:Q5978303 . + } + + + OPTIONAL { ?lexeme ontolex:lexicalForm ?adverbOfMannerForm . ?adverbOfMannerForm ontolex:representation ?adverbOfManner ; wikibase:grammaticalFeature wd:Q113320444 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?locativeAdverbForm . + ?locativeAdverbForm ontolex:representation ?locativeAdverb ; + wikibase:grammaticalFeature wd:Q1522423 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?phraseForm . ?phraseForm ontolex:representation ?phrase ; wikibase:grammaticalFeature wd:Q187931 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?locativeAdverbForm . - ?locativeAdverbForm ontolex:representation ?locativeAdverb ; - wikibase:grammaticalFeature wd:Q1522423 . - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/dagbani/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/dagbani/verbs/query_verbs.sparql index 3e49c1da..8af7bd27 100644 --- a/src/scribe_data/wikidata/language_data_extraction/dagbani/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/dagbani/verbs/query_verbs.sparql @@ -5,16 +5,24 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb + ?imperative ?presentContinuous ?past ?future - ?imperative WHERE { ?lexeme dct:language wd:Q32238 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . + # MARK: Imperative + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?imperativeForm . + ?imperativeForm ontolex:representation ?imperative ; + wikibase:grammaticalFeature wd:Q22716 . + } + # MARK: Present Continuous OPTIONAL { @@ -38,11 +46,4 @@ WHERE { ?futureForm ontolex:representation ?future ; wikibase:grammaticalFeature wd:Q501405 . } - - # MARK: Imperative - OPTIONAL { - ?lexeme ontolex:lexicalForm ?imperativeForm . - ?imperativeForm ontolex:representation ?imperative ; - wikibase:grammaticalFeature wd:Q22716 . - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_2.sparql b/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_2.sparql index 9ef5b845..e3ba632d 100644 --- a/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_2.sparql @@ -5,43 +5,45 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?definiteSingularPositive - ?pluralPositive - ?pluralSuperlative ?comparative + ?pluralSuperlative + ?pluralPositive + ?definiteSingularPositive WHERE { ?lexeme dct:language wd:Q9035 ; wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . - # MARK: Definite + # MARK: Comparative + OPTIONAL { + ?lexeme ontolex:lexicalForm ?comparativeForm . + ?comparativeForm ontolex:representation ?comparative ; + wikibase:grammaticalFeature wd:Q14169499 . + } OPTIONAL { - ?lexeme ontolex:lexicalForm ?definiteSingularPositiveForm . - ?definiteSingularPositiveForm ontolex:representation ?definiteSingularPositive ; - wikibase:grammaticalFeature wd:Q110786, wd:Q53997851, wd:Q3482678 . + ?lexeme ontolex:lexicalForm ?pluralSuperlativeForm . + ?pluralSuperlativeForm ontolex:representation ?pluralSuperlative ; + wikibase:grammaticalFeature wd:Q146786, wd:Q1817208 . } - # MARK: Plural - OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralPositiveForm . ?pluralPositiveForm ontolex:representation ?pluralPositive ; wikibase:grammaticalFeature wd:Q146786, wd:Q3482678 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralSuperlativeForm . - ?pluralSuperlativeForm ontolex:representation ?pluralSuperlative ; - wikibase:grammaticalFeature wd:Q146786, wd:Q1817208 . - } - # MARK: Comparative + + # MARK: Definite OPTIONAL { - ?lexeme ontolex:lexicalForm ?comparativeForm . - ?comparativeForm ontolex:representation ?comparative ; - wikibase:grammaticalFeature wd:Q14169499 . + ?lexeme ontolex:lexicalForm ?definiteSingularPositiveForm . + ?definiteSingularPositiveForm ontolex:representation ?definiteSingularPositive ; + wikibase:grammaticalFeature wd:Q110786, wd:Q53997851, wd:Q3482678 . } + + # MARK: Plural + } diff --git a/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_1.sparql b/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_1.sparql index 7eccf9f1..f6cacefa 100644 --- a/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_1.sparql @@ -5,12 +5,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?genitiveIndefiniteSingular + ?genitiveIndefinitePlural ?genitiveDefiniteSingular ?genitiveDefinitePlural - ?genitiveIndefinitePlural - ?nonGenitiveDefinitePlural - ?nonGenitiveIndefinitePlural ?nonGenitiveIndefiniteSingular + ?nonGenitiveIndefinitePlural + ?nonGenitiveDefinitePlural WHERE { ?lexeme dct:language wd:Q9035 ; @@ -24,6 +24,12 @@ WHERE { wikibase:grammaticalFeature wd:Q146233, wd:Q53997857, wd:Q110786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveIndefinitePluralForm . + ?genitiveIndefinitePluralForm ontolex:representation ?genitiveIndefinitePlural ; + wikibase:grammaticalFeature wd:Q146233, wd:Q53997857, wd:Q146786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?genitiveDefiniteSingularForm . ?genitiveDefiniteSingularForm ontolex:representation ?genitiveDefiniteSingular ; @@ -36,18 +42,14 @@ WHERE { wikibase:grammaticalFeature wd:Q146233, wd:Q53997851, wd:Q146786 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveIndefinitePluralForm . - ?genitiveIndefinitePluralForm ontolex:representation ?genitiveIndefinitePlural ; - wikibase:grammaticalFeature wd:Q146233, wd:Q53997857, wd:Q146786 . - } + # MARK: Non-genitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?nonGenitiveDefinitePluralForm . - ?nonGenitiveDefinitePluralForm ontolex:representation ?nonGenitiveDefinitePlural ; - wikibase:grammaticalFeature wd:Q98946930, wd:Q53997851, wd:Q146786 . + ?lexeme ontolex:lexicalForm ?nonGenitiveIndefiniteSingularForm . + ?nonGenitiveIndefiniteSingularForm ontolex:representation ?nonGenitiveIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q98946930, wd:Q53997857, wd:Q110786 . } OPTIONAL { @@ -57,8 +59,8 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?nonGenitiveIndefiniteSingularForm . - ?nonGenitiveIndefiniteSingularForm ontolex:representation ?nonGenitiveIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q98946930, wd:Q53997857, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?nonGenitiveDefinitePluralForm . + ?nonGenitiveDefinitePluralForm ontolex:representation ?nonGenitiveDefinitePlural ; + wikibase:grammaticalFeature wd:Q98946930, wd:Q53997851, wd:Q146786 . } } diff --git a/src/scribe_data/wikidata/language_data_extraction/danish/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/danish/verbs/query_verbs.sparql index 6fdb9781..319a54ea 100644 --- a/src/scribe_data/wikidata/language_data_extraction/danish/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/danish/verbs/query_verbs.sparql @@ -4,46 +4,36 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?infinitive - ?activeInfinitive - ?activePresent - ?activePreterite - ?pastParticiple - ?presentParticiple + ?verb ?imperative + ?presentParticiple + ?pastParticiple + ?passiveInfinitive ?passivePresent ?passivePreterite - ?passiveInfinitive + ?activeInfinitive + ?activePresent + ?activePreterite -WHERE { - # MARK: Infinitive +WHERE { ?lexeme dct:language wd:Q9035 ; wikibase:lexicalCategory wd:Q24905 ; - wikibase:lemma ?infinitive . - - # MARK: Infinitive Active + wikibase:lemma ?verb . - OPTIONAL { - ?lexeme ontolex:lexicalForm ?activeInfinitiveForm . - ?activeInfinitiveForm ontolex:representation ?activeInfinitive ; - wikibase:grammaticalFeature wd:Q179230, wd:Q1317831 . - } - - # MARK: Present Active + # MARK: Imperative OPTIONAL { - ?lexeme ontolex:lexicalForm ?activePresentForm . - ?activePresentForm ontolex:representation ?activePresent ; - wikibase:grammaticalFeature wd:Q192613, wd:Q1317831 . + ?lexeme ontolex:lexicalForm ?imperativeForm . + ?imperativeForm ontolex:representation ?imperative ; + wikibase:grammaticalFeature wd:Q22716 . } - # MARK: Preterite Active - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?activePreteriteForm . - ?activePreteriteForm ontolex:representation ?activePreterite ; - wikibase:grammaticalFeature wd:Q442485, wd:Q1317831 . + # MARK: Present Participle + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentParticipleForm . + ?presentParticipleForm ontolex:representation ?presentParticiple ; + wikibase:grammaticalFeature wd:Q10345583 . } # MARK: Past Participle @@ -54,20 +44,12 @@ WHERE { wikibase:grammaticalFeature wd:Q12717679 . } - # MARK: Present Participle - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentParticipleForm . - ?presentParticipleForm ontolex:representation ?presentParticiple ; - wikibase:grammaticalFeature wd:Q10345583 . - } - - # MARK: Imperative + # MARK: Infinitive Passive OPTIONAL { - ?lexeme ontolex:lexicalForm ?imperativeForm . - ?imperativeForm ontolex:representation ?imperative ; - wikibase:grammaticalFeature wd:Q22716 . + ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . + ?passiveInfinitiveForm ontolex:representation ?passiveInfinitive ; + wikibase:grammaticalFeature wd:Q179230, wd:Q1194697 . } # MARK: Present Passive @@ -78,6 +60,8 @@ WHERE { wikibase:grammaticalFeature wd:Q192613, wd:Q1194697 . } + # MARK: Infinitive Active + # MARK: Preterite Passive OPTIONAL { @@ -86,11 +70,27 @@ WHERE { wikibase:grammaticalFeature wd:Q442485, wd:Q1194697 . } - # MARK: Infinitive Passive OPTIONAL { - ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . - ?passiveInfinitiveForm ontolex:representation ?passiveInfinitive ; - wikibase:grammaticalFeature wd:Q179230, wd:Q1194697 . + ?lexeme ontolex:lexicalForm ?activeInfinitiveForm . + ?activeInfinitiveForm ontolex:representation ?activeInfinitive ; + wikibase:grammaticalFeature wd:Q179230, wd:Q1317831 . + } + + + # MARK: Present Active + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?activePresentForm . + ?activePresentForm ontolex:representation ?activePresent ; + wikibase:grammaticalFeature wd:Q192613, wd:Q1317831 . + } + + # MARK: Preterite Active + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?activePreteriteForm . + ?activePreteriteForm ontolex:representation ?activePreterite ; + wikibase:grammaticalFeature wd:Q442485, wd:Q1317831 . } } diff --git a/src/scribe_data/wikidata/language_data_extraction/english/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/english/verbs/query_verbs.sparql index 4b3a226c..f09d2afa 100644 --- a/src/scribe_data/wikidata/language_data_extraction/english/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/english/verbs/query_verbs.sparql @@ -6,10 +6,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?simplePresent - ?simplePresentThirdPersonSingular - ?presentParticiple ?simplePast + ?presentParticiple ?pastParticiple + ?simplePresentThirdPersonSingular WHERE { # MARK: Infinitive @@ -30,15 +30,15 @@ WHERE { FILTER(LANG(?simplePresent) = "en") } - # MARK: Third-person Singular + # MARK: Simple Past OPTIONAL { - ?lexeme ontolex:lexicalForm ?simplePresentThirdPersonSingularForm . - ?simplePresentThirdPersonSingularForm ontolex:representation ?simplePresentThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q3910936 . - FILTER NOT EXISTS { ?simplePresentThirdPersonSingularForm wdt:P6191 wd:Q181970 . } - FILTER NOT EXISTS { ?simplePresentThirdPersonSingularForm wikibase:grammaticalFeature wd:Q126473 . } - FILTER(LANG(?simplePresentThirdPersonSingular) = "en") + ?lexeme ontolex:lexicalForm ?simplePastForm . + ?simplePastForm ontolex:representation ?simplePast ; + wikibase:grammaticalFeature wd:Q1392475 . + FILTER NOT EXISTS { ?simplePastForm wdt:P6191 wd:Q181970 . } + FILTER NOT EXISTS { ?simplePastForm wikibase:grammaticalFeature wd:Q126473 . } + FILTER(LANG(?simplePast) = "en") } # MARK: Present Participle @@ -52,16 +52,6 @@ WHERE { FILTER(LANG(?presentParticiple) = "en") } - # MARK: Simple Past - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?simplePastForm . - ?simplePastForm ontolex:representation ?simplePast ; - wikibase:grammaticalFeature wd:Q1392475 . - FILTER NOT EXISTS { ?simplePastForm wdt:P6191 wd:Q181970 . } - FILTER NOT EXISTS { ?simplePastForm wikibase:grammaticalFeature wd:Q126473 . } - FILTER(LANG(?simplePast) = "en") - } # MARK: Past Participle @@ -73,4 +63,17 @@ WHERE { FILTER NOT EXISTS { ?pastParticipleForm wikibase:grammaticalFeature wd:Q126473 . } FILTER(LANG(?pastParticiple) = "en") } + + # MARK: Third-person Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?simplePresentThirdPersonSingularForm . + ?simplePresentThirdPersonSingularForm ontolex:representation ?simplePresentThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q3910936 . + FILTER NOT EXISTS { ?simplePresentThirdPersonSingularForm wdt:P6191 wd:Q181970 . } + FILTER NOT EXISTS { ?simplePresentThirdPersonSingularForm wikibase:grammaticalFeature wd:Q126473 . } + FILTER(LANG(?simplePresentThirdPersonSingular) = "en") + } + + } diff --git a/src/scribe_data/wikidata/language_data_extraction/esperanto/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/esperanto/nouns/query_nouns.sparql index 9ad7a942..f08704af 100644 --- a/src/scribe_data/wikidata/language_data_extraction/esperanto/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/esperanto/nouns/query_nouns.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?nominativeSingular - ?accusativeSingular ?nominativePlural + ?accusativeSingular ?accusativePlural WHERE { @@ -14,6 +14,14 @@ WHERE { wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?nominativeSingular . + # MARK: Nominative Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; + wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . + } + # MARK: Accusative Singular OPTIONAL { @@ -22,13 +30,6 @@ WHERE { wikibase:grammaticalFeature wd:Q146078, wd:Q110786 . } - # MARK: Nominative Plural - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativePluralForm . - ?nominativePluralForm ontolex:representation ?nominativePlural ; - wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . - } # MARK: Accusative Plural diff --git a/src/scribe_data/wikidata/language_data_extraction/esperanto/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/esperanto/proper_nouns/query_proper_nouns.sparql index 32cc3b03..0a59e9ca 100644 --- a/src/scribe_data/wikidata/language_data_extraction/esperanto/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/esperanto/proper_nouns/query_proper_nouns.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?nominativeSingular - ?accusativeSingular ?nominativePlural + ?accusativeSingular ?accusativePlural WHERE { @@ -14,14 +14,6 @@ WHERE { wikibase:lexicalCategory wd:Q147276 ; wikibase:lemma ?nominativeSingular . - # MARK: Accusative Singular - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeSingularForm . - ?accusativeSingularForm ontolex:representation ?accusativeSingular ; - wikibase:grammaticalFeature wd:Q146078, wd:Q110786 . - } - # MARK: Nominative Plural OPTIONAL { @@ -30,6 +22,14 @@ WHERE { wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } + # MARK: Accusative Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeSingularForm . + ?accusativeSingularForm ontolex:representation ?accusativeSingular ; + wikibase:grammaticalFeature wd:Q146078, wd:Q110786 . + } + # MARK: Accusative Plural OPTIONAL { diff --git a/src/scribe_data/wikidata/language_data_extraction/esperanto/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/esperanto/verbs/query_verbs.sparql index 38b86a61..ab20b1b0 100644 --- a/src/scribe_data/wikidata/language_data_extraction/esperanto/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/esperanto/verbs/query_verbs.sparql @@ -4,19 +4,37 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?infinitive + ?verb + ?volitive + ?conditional ?indicativePresent ?indicativePast ?indicativeFuture - ?conditional - ?volitive WHERE { # MARK: Infinitive ?lexeme dct:language wd:Q143 ; wikibase:lexicalCategory wd:Q24905 ; - wikibase:lemma ?infinitive . + wikibase:lemma ?verb . + + # MARK: Volitive + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?volitiveForm . + ?volitiveForm ontolex:representation ?volitive ; + wikibase:grammaticalFeature wd:Q2532941 . + FILTER(LANG(?volitive) = "eo") + } + + # MARK: Conditional + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?conditionalForm . + ?conditionalForm ontolex:representation ?conditional ; + wikibase:grammaticalFeature wd:Q625581 . + FILTER(LANG(?conditional) = "eo") + } # MARK: Present Tense @@ -44,22 +62,4 @@ WHERE { wikibase:grammaticalFeature wd:Q501405, wd:Q682111 . FILTER(LANG(?indicativeFuture) = "eo") } - - # MARK: Conditional - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?conditionalForm . - ?conditionalForm ontolex:representation ?conditional ; - wikibase:grammaticalFeature wd:Q625581 . - FILTER(LANG(?conditional) = "eo") - } - - # MARK: Volitive - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?volitiveForm . - ?volitiveForm ontolex:representation ?volitive ; - wikibase:grammaticalFeature wd:Q2532941 . - FILTER(LANG(?volitive) = "eo") - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/estonian/adjectives/query_adjectives_3.sparql b/src/scribe_data/wikidata/language_data_extraction/estonian/adjectives/query_adjectives_3.sparql index 1e1dc923..fbef8bf7 100644 --- a/src/scribe_data/wikidata/language_data_extraction/estonian/adjectives/query_adjectives_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/estonian/adjectives/query_adjectives_3.sparql @@ -5,10 +5,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?adessiveSingular - ?adessivePlural ?ablativeSingular ?ablativePlural + ?adessiveSingular + ?adessivePlural ?translativeSingular ?translativePlural ?terminativeSingular @@ -19,19 +19,6 @@ WHERE { wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . - # MARK: Adessive - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?adessiveSingularForm . - ?adessiveSingularForm ontolex:representation ?adessiveSingular ; - wikibase:grammaticalFeature wd:Q281954, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?adessivePluralForm . - ?adessivePluralForm ontolex:representation ?adessivePlural ; - wikibase:grammaticalFeature wd:Q281954, wd:Q146786 . - } # MARK: Ablative @@ -47,6 +34,20 @@ WHERE { wikibase:grammaticalFeature wd:Q156986, wd:Q146786 . } + # MARK: Adessive + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?adessiveSingularForm . + ?adessiveSingularForm ontolex:representation ?adessiveSingular ; + wikibase:grammaticalFeature wd:Q281954, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?adessivePluralForm . + ?adessivePluralForm ontolex:representation ?adessivePlural ; + wikibase:grammaticalFeature wd:Q281954, wd:Q146786 . + } + # MARK: Translative diff --git a/src/scribe_data/wikidata/language_data_extraction/estonian/adverbs/query_adverbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/estonian/adverbs/query_adverbs_2.sparql index fb2f97a7..73b14cfe 100644 --- a/src/scribe_data/wikidata/language_data_extraction/estonian/adverbs/query_adverbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/estonian/adverbs/query_adverbs_2.sparql @@ -5,10 +5,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adverb - ?adessiveSingular - ?adessivePlural ?ablativeSingular ?ablativePlural + ?adessiveSingular + ?adessivePlural ?translativeSingular ?translativePlural ?terminativeSingular @@ -20,24 +20,12 @@ SELECT ?comitativeSingular ?comitativePlural + WHERE { ?lexeme dct:language wd:Q9072 ; wikibase:lexicalCategory wd:Q380057 ; wikibase:lemma ?adverb . - # MARK: Adessive - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?adessiveSingularForm . - ?adessiveSingularForm ontolex:representation ?adessiveSingular ; - wikibase:grammaticalFeature wd:Q281954, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?adessivePluralForm . - ?adessivePluralForm ontolex:representation ?adessivePlural ; - wikibase:grammaticalFeature wd:Q281954, wd:Q146786 . - } # MARK: Ablative @@ -53,6 +41,20 @@ WHERE { wikibase:grammaticalFeature wd:Q156986, wd:Q146786 . } + # MARK: Adessive + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?adessiveSingularForm . + ?adessiveSingularForm ontolex:representation ?adessiveSingular ; + wikibase:grammaticalFeature wd:Q281954, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?adessivePluralForm . + ?adessivePluralForm ontolex:representation ?adessivePlural ; + wikibase:grammaticalFeature wd:Q281954, wd:Q146786 . + } + # MARK: Translative OPTIONAL { diff --git a/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_1.sparql index 0340e80a..7bed2266 100644 --- a/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_1.sparql @@ -6,18 +6,20 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?indicativePresentFirstPersonSingular - ?indicativePresentSecondPersonSingular - ?indicativePresentThirdPersonSingular ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonSingular ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonSingular ?indicativePresentThirdPersonPlural + ?indicativePreteriteFirstPersonSingular - ?indicativePreteriteSecondPersonSingular - ?indicativePreteriteThirdPersonSingular ?indicativePreteriteFirstPersonPlural + ?indicativePreteriteSecondPersonSingular ?indicativePreteriteSecondPersonPlural + ?indicativePreteriteThirdPersonSingular ?indicativePreteriteThirdPersonPlural + WHERE { ?lexeme dct:language wd:Q150 ; wikibase:lexicalCategory wd:Q24905 . @@ -36,30 +38,30 @@ WHERE { wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . - ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . - ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; @@ -74,6 +76,12 @@ WHERE { wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q442485 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePreteriteFirstPersonPluralForm . + ?indicativePreteriteFirstPersonPluralForm ontolex:representation ?indicativePreteriteFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q442485 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePreteriteSecondPersonSingularForm . ?indicativePreteriteSecondPersonSingularForm ontolex:representation ?indicativePreteriteSecondPersonSingular ; @@ -81,21 +89,16 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePreteriteThirdPersonSingularForm . - ?indicativePreteriteThirdPersonSingularForm ontolex:representation ?indicativePreteriteThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q442485 . + ?lexeme ontolex:lexicalForm ?indicativePreteriteSecondPersonPluralForm . + ?indicativePreteriteSecondPersonPluralForm ontolex:representation ?indicativePreteriteSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q442485 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePreteriteFirstPersonPluralForm . - ?indicativePreteriteFirstPersonPluralForm ontolex:representation ?indicativePreteriteFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q442485 . - } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePreteriteSecondPersonPluralForm . - ?indicativePreteriteSecondPersonPluralForm ontolex:representation ?indicativePreteriteSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q442485 . + ?lexeme ontolex:lexicalForm ?indicativePreteriteThirdPersonSingularForm . + ?indicativePreteriteThirdPersonSingularForm ontolex:representation ?indicativePreteriteThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q442485 . } OPTIONAL { diff --git a/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_2.sparql index b2111442..d03ccef6 100644 --- a/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_2.sparql @@ -5,19 +5,21 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?indicativeImperfectFirstPersonSingular - ?indicativeImperfectSecondPersonSingular - ?indicativeImperfectThirdPersonSingular - ?indicativeImperfectFirstPersonPlural - ?indicativeImperfectSecondPersonPlural - ?indicativeImperfectThirdPersonPlural ?indicativeSimpleFutureFirstPersonSingular - ?indicativeSimpleFutureSecondPersonSingular - ?indicativeSimpleFutureThirdPersonSingular ?indicativeSimpleFutureFirstPersonPlural + ?indicativeSimpleFutureSecondPersonSingular ?indicativeSimpleFutureSecondPersonPlural + ?indicativeSimpleFutureThirdPersonSingular ?indicativeSimpleFutureThirdPersonPlural + ?indicativeImperfectFirstPersonSingular + ?indicativeImperfectFirstPersonPlural + ?indicativeImperfectSecondPersonSingular + ?indicativeImperfectSecondPersonPlural + ?indicativeImperfectThirdPersonSingular + ?indicativeImperfectThirdPersonPlural + + WHERE { ?lexeme dct:language wd:Q150 ; wikibase:lexicalCategory wd:Q24905 . @@ -28,79 +30,78 @@ WHERE { ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 ; - # MARK: Imperfect - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeImperfectFirstPersonSingularForm . - ?indicativeImperfectFirstPersonSingularForm ontolex:representation ?indicativeImperfectFirstPersonSingular ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q108524486 . + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureFirstPersonSingularForm . + ?indicativeSimpleFutureFirstPersonSingularForm ontolex:representation ?indicativeSimpleFutureFirstPersonSingular ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q1475560 . } + OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeImperfectSecondPersonSingularForm . - ?indicativeImperfectSecondPersonSingularForm ontolex:representation ?indicativeImperfectSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q108524486 . + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureFirstPersonPluralForm . + ?indicativeSimpleFutureFirstPersonPluralForm ontolex:representation ?indicativeSimpleFutureFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q1475560 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeImperfectThirdPersonSingularForm . - ?indicativeImperfectThirdPersonSingularForm ontolex:representation ?indicativeImperfectThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q108524486 . + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureSecondPersonSingularForm . + ?indicativeSimpleFutureSecondPersonSingularForm ontolex:representation ?indicativeSimpleFutureSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q1475560 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeImperfectFirstPersonPluralForm . - ?indicativeImperfectFirstPersonPluralForm ontolex:representation ?indicativeImperfectFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q108524486 . + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureSecondPersonPluralForm . + ?indicativeSimpleFutureSecondPersonPluralForm ontolex:representation ?indicativeSimpleFutureSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q1475560 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeImperfectSecondPersonPluralForm . - ?indicativeImperfectSecondPersonPluralForm ontolex:representation ?indicativeImperfectSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q108524486 . + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureThirdPersonSingularForm . + ?indicativeSimpleFutureThirdPersonSingularForm ontolex:representation ?indicativeSimpleFutureThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q1475560 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeImperfectThirdPersonPluralForm . - ?indicativeImperfectThirdPersonPluralForm ontolex:representation ?indicativeImperfectThirdPersonPlural ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q108524486 . + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureThirdPersonPluralForm . + ?indicativeSimpleFutureThirdPersonPluralForm ontolex:representation ?indicativeSimpleFutureThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q1475560 . } - # MARK: Future + # MARK: Imperfect OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureFirstPersonSingularForm . - ?indicativeSimpleFutureFirstPersonSingularForm ontolex:representation ?indicativeSimpleFutureFirstPersonSingular ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q1475560 . + ?lexeme ontolex:lexicalForm ?indicativeImperfectFirstPersonSingularForm . + ?indicativeImperfectFirstPersonSingularForm ontolex:representation ?indicativeImperfectFirstPersonSingular ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q108524486 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureSecondPersonSingularForm . - ?indicativeSimpleFutureSecondPersonSingularForm ontolex:representation ?indicativeSimpleFutureSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q1475560 . + ?lexeme ontolex:lexicalForm ?indicativeImperfectFirstPersonPluralForm . + ?indicativeImperfectFirstPersonPluralForm ontolex:representation ?indicativeImperfectFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q108524486 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureThirdPersonSingularForm . - ?indicativeSimpleFutureThirdPersonSingularForm ontolex:representation ?indicativeSimpleFutureThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q1475560 . + ?lexeme ontolex:lexicalForm ?indicativeImperfectSecondPersonSingularForm . + ?indicativeImperfectSecondPersonSingularForm ontolex:representation ?indicativeImperfectSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q108524486 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureFirstPersonPluralForm . - ?indicativeSimpleFutureFirstPersonPluralForm ontolex:representation ?indicativeSimpleFutureFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q1475560 . + ?lexeme ontolex:lexicalForm ?indicativeImperfectSecondPersonPluralForm . + ?indicativeImperfectSecondPersonPluralForm ontolex:representation ?indicativeImperfectSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q108524486 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureSecondPersonPluralForm . - ?indicativeSimpleFutureSecondPersonPluralForm ontolex:representation ?indicativeSimpleFutureSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q1475560 . + ?lexeme ontolex:lexicalForm ?indicativeImperfectThirdPersonSingularForm . + ?indicativeImperfectThirdPersonSingularForm ontolex:representation ?indicativeImperfectThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q108524486 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureThirdPersonPluralForm . - ?indicativeSimpleFutureThirdPersonPluralForm ontolex:representation ?indicativeSimpleFutureThirdPersonPlural ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q1475560 . + ?lexeme ontolex:lexicalForm ?indicativeImperfectThirdPersonPluralForm . + ?indicativeImperfectThirdPersonPluralForm ontolex:representation ?indicativeImperfectThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q108524486 . } } diff --git a/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_1.sparql index 22a4a08c..9eb104ce 100644 --- a/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_1.sparql @@ -7,10 +7,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?indicativePresentFirstPersonSingular - ?indicativePresentSecondPersonSingular - ?indicativePresentThirdPersonSingular ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonSingular ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonSingular ?indicativePresentThirdPersonPlural WHERE { @@ -30,26 +30,31 @@ WHERE { ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . - ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . - } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . - ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . - } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_2.sparql index 92a60b86..6a030924 100644 --- a/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_2.sparql @@ -7,13 +7,13 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?pastParticiple - ?auxiliaryVerb ?indicativePreteriteFirstPersonSingular - ?indicativePreteriteSecondPersonSingular - ?indicativePreteriteThirdPersonSingular ?indicativePreteriteFirstPersonPlural + ?indicativePreteriteSecondPersonSingular ?indicativePreteriteSecondPersonPlural + ?indicativePreteriteThirdPersonSingular ?indicativePreteriteThirdPersonPlural + ?auxiliaryVerb WHERE { ?lexeme dct:language wd:Q188 ; @@ -33,12 +33,6 @@ WHERE { wikibase:grammaticalFeature wd:Q12717679 . } - # MARK: Auxiliary Verb(s) - - OPTIONAL { - ?lexeme wdt:P5401 ?auxiliaryVerbFrom . - } - # MARK: Indicative Preterite OPTIONAL { @@ -46,32 +40,41 @@ WHERE { ?indicativePreteriteFirstPersonSingularForm ontolex:representation ?indicativePreteriteFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q442485 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePreteriteSecondPersonSingularForm . - ?indicativePreteriteSecondPersonSingularForm ontolex:representation ?indicativePreteriteSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q442485 . - } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePreteriteThirdPersonSingularForm . - ?indicativePreteriteThirdPersonSingularForm ontolex:representation ?indicativePreteriteThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q442485 . - } OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePreteriteFirstPersonPluralForm . ?indicativePreteriteFirstPersonPluralForm ontolex:representation ?indicativePreteriteFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q442485 . } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePreteriteSecondPersonSingularForm . + ?indicativePreteriteSecondPersonSingularForm ontolex:representation ?indicativePreteriteSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q442485 . + } OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePreteriteSecondPersonPluralForm . ?indicativePreteriteSecondPersonPluralForm ontolex:representation ?indicativePreteriteSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q442485 . } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePreteriteThirdPersonSingularForm . + ?indicativePreteriteThirdPersonSingularForm ontolex:representation ?indicativePreteriteThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q442485 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePreteriteThirdPersonPluralForm . ?indicativePreteriteThirdPersonPluralForm ontolex:representation ?indicativePreteriteThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q442485 . } + # MARK: Auxiliary Verb(s) + + OPTIONAL { + ?lexeme wdt:P5401 ?auxiliaryVerbFrom . + } + SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". ?auxiliaryVerbFrom rdfs:label ?auxiliaryVerb . diff --git a/src/scribe_data/wikidata/language_data_extraction/greek/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/greek/verbs/query_verbs.sparql index 4012aabb..91b4603e 100644 --- a/src/scribe_data/wikidata/language_data_extraction/greek/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/greek/verbs/query_verbs.sparql @@ -6,10 +6,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?presentFirstPersonSingular - ?presentSecondPersonSingular - ?presentThirdPersonSingular ?presentFirstPersonPlural + ?presentSecondPersonSingular ?presentSecondPersonPlural + ?presentThirdPersonSingular ?presentThirdPersonPlural WHERE { @@ -30,30 +30,30 @@ WHERE { wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q192613 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentSecondPersonSingularForm . - ?presentSecondPersonSingularForm ontolex:representation ?presentSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q192613 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentThirdPersonSingularForm . - ?presentThirdPersonSingularForm ontolex:representation ?presentThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q192613 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?presentFirstPersonPluralForm . ?presentFirstPersonPluralForm ontolex:representation ?presentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q192613 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentSecondPersonSingularForm . + ?presentSecondPersonSingularForm ontolex:representation ?presentSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q192613 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?presentSecondPersonPluralForm . ?presentSecondPersonPluralForm ontolex:representation ?presentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q192613 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentThirdPersonSingularForm . + ?presentThirdPersonSingularForm ontolex:representation ?presentThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q192613 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?presentThirdPersonPluralForm . ?presentThirdPersonPluralForm ontolex:representation ?presentThirdPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/hausa/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/hausa/adjectives/query_adjectives.sparql index fe2b09bb..e7f1c203 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hausa/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hausa/adjectives/query_adjectives.sparql @@ -5,9 +5,9 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective + ?plural ?feminineSingular ?masculineSingular - ?plural WHERE { ?lexeme dct:language wd:Q56475 ; @@ -15,6 +15,14 @@ WHERE { wikibase:lemma ?adjective . FILTER(lang(?adjective) = "ha") + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 . + FILTER(lang(?plural) = "ha") + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineSingularForm . ?feminineSingularForm ontolex:representation ?feminineSingular ; @@ -28,11 +36,4 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q110786 . FILTER(lang(?masculineSingular) = "ha") } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralForm . - ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q146786 . - FILTER(lang(?plural) = "ha") - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/hebrew/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/hebrew/adjectives/query_adjectives.sparql index 317eb482..6147afec 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hebrew/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hebrew/adjectives/query_adjectives.sparql @@ -6,12 +6,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective ?feminineSingular - ?feminineSingularConstruct ?femininePlural - ?femininePluralConstruct ?masculineSingular - ?masculineSingularConstruct ?masculinePlural + ?feminineSingularConstruct + ?femininePluralConstruct + ?masculineSingularConstruct ?masculinePluralConstruct WHERE { @@ -32,13 +32,6 @@ WHERE { FILTER(lang(?feminineSingular) = "he") } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineSingularConstructForm . - ?feminineSingularConstructForm ontolex:representation ?feminineSingularConstruct ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q1641446 . - FILTER(lang(?feminineSingularConstruct) = "he") - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?femininePluralForm . ?femininePluralForm ontolex:representation ?femininePlural ; @@ -49,14 +42,6 @@ WHERE { FILTER(lang(?femininePlural) = "he") } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePluralConstructForm . - ?femininePluralConstructForm ontolex:representation ?femininePluralConstruct ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q1641446 . - FILTER(lang(?femininePluralConstruct) = "he") - } - - # MARK: Masculine OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineSingularForm . @@ -68,13 +53,6 @@ WHERE { FILTER(lang(?masculineSingular) = "he") } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineSingularConstructForm . - ?masculineSingularConstructForm ontolex:representation ?masculineSingularConstruct ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1641446 . - FILTER(lang(?masculineSingularConstruct) = "he") - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?masculinePluralForm . ?masculinePluralForm ontolex:representation ?masculinePlural ; @@ -85,6 +63,29 @@ WHERE { FILTER(lang(?masculinePlural) = "he") } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?feminineSingularConstructForm . + ?feminineSingularConstructForm ontolex:representation ?feminineSingularConstruct ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q1641446 . + FILTER(lang(?feminineSingularConstruct) = "he") + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?femininePluralConstructForm . + ?femininePluralConstructForm ontolex:representation ?femininePluralConstruct ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q1641446 . + FILTER(lang(?femininePluralConstruct) = "he") + } + + # MARK: Masculine + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masculineSingularConstructForm . + ?masculineSingularConstructForm ontolex:representation ?masculineSingularConstruct ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1641446 . + FILTER(lang(?masculineSingularConstruct) = "he") + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?masculinePluralConstructForm . ?masculinePluralConstructForm ontolex:representation ?masculinePluralConstruct ; diff --git a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_1.sparql index 73b62a2b..9ab12ae8 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_1.sparql @@ -6,8 +6,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?femininePresentSingular - ?masculinePresentSingular ?femininePresentPlural + ?masculinePresentSingular ?masculinePresentPlural WHERE { @@ -25,13 +25,6 @@ WHERE { FILTER(lang(?femininePresentSingular) = "he") } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculinePresentSingularForm . - ?masculinePresentSingularForm ontolex:representation ?masculinePresentSingular ; - wikibase:grammaticalFeature wd:Q110786, wd:Q192613, wd:Q499327 . - FILTER(lang(?masculinePresentSingular) = "he") - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?femininePresentPluralForm . ?femininePresentPluralForm ontolex:representation ?femininePresentPlural ; @@ -39,6 +32,13 @@ WHERE { FILTER(lang(?femininePresentPlural) = "he") } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masculinePresentSingularForm . + ?masculinePresentSingularForm ontolex:representation ?masculinePresentSingular ; + wikibase:grammaticalFeature wd:Q110786, wd:Q192613, wd:Q499327 . + FILTER(lang(?masculinePresentSingular) = "he") + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?masculinePresentPluralForm . ?masculinePresentPluralForm ontolex:representation ?masculinePresentPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_2.sparql index d12bc9f3..9324f31f 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_2.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?feminineImperativeSecondPersonSingular - ?masculineImperativeSecondPersonSingular ?feminineImperativeSecondPersonPlural + ?masculineImperativeSecondPersonSingular ?masculineImperativeSecondPersonPlural WHERE { @@ -22,13 +22,6 @@ WHERE { FILTER(lang(?feminineImperativeSecondPersonSingular) = "he") } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineImperativeSecondPersonSingularForm . - ?masculineImperativeSecondPersonSingularForm ontolex:representation ?masculineImperativeSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q22716, wd:Q499327 . - FILTER(lang(?masculineImperativeSecondPersonSingular) = "he") - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineImperativeSecondPersonPluralForm . ?feminineImperativeSecondPersonPluralForm ontolex:representation ?feminineImperativeSecondPersonPlural ; @@ -36,6 +29,13 @@ WHERE { FILTER(lang(?feminineImperativeSecondPersonPlural) = "he") } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masculineImperativeSecondPersonSingularForm . + ?masculineImperativeSecondPersonSingularForm ontolex:representation ?masculineImperativeSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q22716, wd:Q499327 . + FILTER(lang(?masculineImperativeSecondPersonSingular) = "he") + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineImperativeSecondPersonPluralForm . ?masculineImperativeSecondPersonPluralForm ontolex:representation ?masculineImperativeSecondPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_3.sparql b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_3.sparql index 7cc0b042..2fdb8cfe 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_3.sparql @@ -5,16 +5,17 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?pastFirstPersonSingular - ?femininePastSecondPersonSingular - ?masculinePastSecondPersonSingular - ?femininePastThirdPersonSingular - ?masculinePastThirdPersonSingular ?pastFirstPersonPlural + ?femininePastSecondPersonSingular ?femininePastSecondPersonPlural - ?masculinePastSecondPersonPlural + ?femininePastThirdPersonSingular ?femininePastThirdPersonPlural + ?masculinePastSecondPersonSingular + ?masculinePastSecondPersonPlural + ?masculinePastThirdPersonSingular ?masculinePastThirdPersonPlural + WHERE { ?lexeme dct:language wd:Q9288 ; wikibase:lexicalCategory wd:Q24905 . @@ -28,6 +29,13 @@ WHERE { FILTER(lang(?pastTPP) = "he") } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastFirstPersonPluralForm . + ?pastFirstPersonPluralForm ontolex:representation ?pastFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q1994301 . + FILTER(lang(?pastFirstPersonPlural) = "he") + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?femininePastSecondPersonSingularForm . ?femininePastSecondPersonSingularForm ontolex:representation ?femininePastSecondPersonSingular ; @@ -36,10 +44,10 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculinePastSecondPersonSingularForm . - ?masculinePastSecondPersonSingularForm ontolex:representation ?masculinePastSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1994301, wd:Q499327 . - FILTER(lang(?masculinePastSecondPersonSingular) = "he") + ?lexeme ontolex:lexicalForm ?femininePastSecondPersonPluralForm . + ?femininePastSecondPersonPluralForm ontolex:representation ?femininePastSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1994301, wd:Q1775415 . + FILTER(lang(?femininePastSecondPersonPlural) = "he") } OPTIONAL { @@ -50,24 +58,17 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculinePastThirdPersonSingularForm . - ?masculinePastThirdPersonSingularForm ontolex:representation ?masculinePastThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q1994301, wd:Q499327 . - FILTER(lang(?masculinePastThirdPersonSingular) = "he") - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastFirstPersonPluralForm . - ?pastFirstPersonPluralForm ontolex:representation ?pastFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q1994301 . - FILTER(lang(?pastFirstPersonPlural) = "he") + ?lexeme ontolex:lexicalForm ?femininePastThirdPersonPluralForm . + ?femininePastThirdPersonPluralForm ontolex:representation ?femininePastThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q1994301, wd:Q1775415 . + FILTER(lang(?femininePastThirdPersonPlural) = "he") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePastSecondPersonPluralForm . - ?femininePastSecondPersonPluralForm ontolex:representation ?femininePastSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1994301, wd:Q1775415 . - FILTER(lang(?femininePastSecondPersonPlural) = "he") + ?lexeme ontolex:lexicalForm ?masculinePastSecondPersonSingularForm . + ?masculinePastSecondPersonSingularForm ontolex:representation ?masculinePastSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1994301, wd:Q499327 . + FILTER(lang(?masculinePastSecondPersonSingular) = "he") } OPTIONAL { @@ -78,10 +79,10 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePastThirdPersonPluralForm . - ?femininePastThirdPersonPluralForm ontolex:representation ?femininePastThirdPersonPlural ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q1994301, wd:Q1775415 . - FILTER(lang(?femininePastThirdPersonPlural) = "he") + ?lexeme ontolex:lexicalForm ?masculinePastThirdPersonSingularForm . + ?masculinePastThirdPersonSingularForm ontolex:representation ?masculinePastThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q1994301, wd:Q499327 . + FILTER(lang(?masculinePastThirdPersonSingular) = "he") } OPTIONAL { diff --git a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_4.sparql b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_4.sparql index d16276b1..4c9bb38d 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_4.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_4.sparql @@ -5,14 +5,16 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?futureFirstPersonSingular - ?feminineFutureSecondPersonSingular - ?masculineFutureSecondPersonSingular - ?feminineFutureThirdPersonSingular - ?masculineFutureThirdPersonSingular ?futureFirstPersonPlural + + ?feminineFutureSecondPersonSingular ?feminineFutureSecondPersonPlural - ?masculineFutureSecondPersonPlural + ?feminineFutureThirdPersonSingular ?feminineFutureThirdPersonPlural + + ?masculineFutureSecondPersonSingular + ?masculineFutureSecondPersonPlural + ?masculineFutureThirdPersonSingular ?masculineFutureThirdPersonPlural WHERE { @@ -28,6 +30,13 @@ WHERE { FILTER(lang(?futureFirstPersonSingular) = "he") . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?futureFirstPersonPluralForm . + ?futureFirstPersonPluralForm ontolex:representation ?futureFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q501405 . + FILTER(lang(?futureFirstPersonPlural) = "he") . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineFutureSecondPersonSingularForm . ?feminineFutureSecondPersonSingularForm ontolex:representation ?feminineFutureSecondPersonSingular ; @@ -36,10 +45,10 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineFutureSecondPersonSingularForm . - ?masculineFutureSecondPersonSingularForm ontolex:representation ?masculineFutureSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q501405, wd:Q499327 . - FILTER(lang(?masculineFutureSecondPersonSingular) = "he") . + ?lexeme ontolex:lexicalForm ?feminineFutureSecondPersonPluralForm . + ?feminineFutureSecondPersonPluralForm ontolex:representation ?feminineFutureSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q501405, wd:Q1775415 . + FILTER(lang(?feminineFutureSecondPersonPlural) = "he") . } OPTIONAL { @@ -50,24 +59,17 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineFutureThirdPersonSingularForm . - ?masculineFutureThirdPersonSingularForm ontolex:representation ?masculineFutureThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q501405, wd:Q499327 . - FILTER(lang(?masculineFutureThirdPersonSingular) = "he") . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?futureFirstPersonPluralForm . - ?futureFirstPersonPluralForm ontolex:representation ?futureFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q501405 . - FILTER(lang(?futureFirstPersonPlural) = "he") . + ?lexeme ontolex:lexicalForm ?feminineFutureThirdPersonPluralForm . + ?feminineFutureThirdPersonPluralForm ontolex:representation ?feminineFutureThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q501405, wd:Q1775415 . + FILTER(lang(?feminineFutureThirdPersonPlural) = "he") . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineFutureSecondPersonPluralForm . - ?feminineFutureSecondPersonPluralForm ontolex:representation ?feminineFutureSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q501405, wd:Q1775415 . - FILTER(lang(?feminineFutureSecondPersonPlural) = "he") . + ?lexeme ontolex:lexicalForm ?masculineFutureSecondPersonSingularForm . + ?masculineFutureSecondPersonSingularForm ontolex:representation ?masculineFutureSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q501405, wd:Q499327 . + FILTER(lang(?masculineFutureSecondPersonSingular) = "he") . } OPTIONAL { @@ -78,10 +80,10 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineFutureThirdPersonPluralForm . - ?feminineFutureThirdPersonPluralForm ontolex:representation ?feminineFutureThirdPersonPlural ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q501405, wd:Q1775415 . - FILTER(lang(?feminineFutureThirdPersonPlural) = "he") . + ?lexeme ontolex:lexicalForm ?masculineFutureThirdPersonSingularForm . + ?masculineFutureThirdPersonSingularForm ontolex:representation ?masculineFutureThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q501405, wd:Q499327 . + FILTER(lang(?masculineFutureThirdPersonSingular) = "he") . } OPTIONAL { diff --git a/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/adjectives/query_adjectives.sparql index a767fe38..728f0443 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/adjectives/query_adjectives.sparql @@ -9,18 +9,20 @@ SELECT ?adjective ?singular ?plural + ?vocativeFeminineSingular + ?vocativeFemininePlural + ?vocativeMasculineSingular + ?vocativeMasculinePlural + ?directFeminineSingular - ?directMasculineSingular ?directFemininePlural + ?directMasculineSingular ?directMasculinePlural + ?obliqueFeminineSingular - ?obliqueMasculineSingular ?obliqueFemininePlural + ?obliqueMasculineSingular ?obliqueMasculinePlural - ?vocativeFeminineSingular - ?vocativeMasculineSingular - ?vocativeFemininePlural - ?vocativeMasculinePlural WHERE { ?lexeme dct:language wd:Q11051 ; @@ -46,6 +48,37 @@ WHERE { FILTER(LANG(?plural) = "hi") } + + # MARK: Vocative + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?vocativeFeminineSingularForm . + ?vocativeFeminineSingularForm ontolex:representation ?vocativeFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q185077 . + FILTER(LANG(?vocativeFeminineSingular) = "hi") + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?vocativeFemininePluralForm . + ?vocativeFemininePluralForm ontolex:representation ?vocativeFemininePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q185077 . + FILTER(LANG(?vocativeFemininePlural) = "hi") + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?vocativeMasculineSingularForm . + ?vocativeMasculineSingularForm ontolex:representation ?vocativeMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q185077 . + FILTER(LANG(?vocativeMasculineSingular) = "hi") + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?vocativeMasculinePluralForm . + ?vocativeMasculinePluralForm ontolex:representation ?vocativeMasculinePlural ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q185077 . + FILTER(LANG(?vocativeMasculinePlural) = "hi") + } + # MARK: Direct OPTIONAL { @@ -55,13 +88,6 @@ WHERE { FILTER(LANG(?directFeminineSingular) = "hi") } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?directMasculineSingularForm . - ?directMasculineSingularForm ontolex:representation ?directMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1751855 . - FILTER(LANG(?directMasculineSingular) = "hi") - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?directFemininePluralForm . ?directFemininePluralForm ontolex:representation ?directFemininePlural ; @@ -69,6 +95,13 @@ WHERE { FILTER(LANG(?directFemininePlural) = "hi") } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?directMasculineSingularForm . + ?directMasculineSingularForm ontolex:representation ?directMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1751855 . + FILTER(LANG(?directMasculineSingular) = "hi") + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?directMasculinePluralForm . ?directMasculinePluralForm ontolex:representation ?directMasculinePlural ; @@ -85,13 +118,6 @@ WHERE { FILTER(LANG(?obliqueFeminineSingular) = "hi") } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?obliqueMasculineSingularForm . - ?obliqueMasculineSingularForm ontolex:representation ?obliqueMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1233197 . - FILTER(LANG(?obliqueMasculineSingular) = "hi") - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?obliqueFemininePluralForm . ?obliqueFemininePluralForm ontolex:representation ?obliqueFemininePlural ; @@ -99,40 +125,17 @@ WHERE { FILTER(LANG(?obliqueFemininePlural) = "hi") } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?obliqueMasculineSingularForm . + ?obliqueMasculineSingularForm ontolex:representation ?obliqueMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1233197 . + FILTER(LANG(?obliqueMasculineSingular) = "hi") + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?obliqueMasculinePluralForm . ?obliqueMasculinePluralForm ontolex:representation ?obliqueMasculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q1233197 . FILTER(LANG(?obliqueMasculinePlural) = "hi") } - - # MARK: Vocative - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?vocativeFeminineSingularForm . - ?vocativeFeminineSingularForm ontolex:representation ?vocativeFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q185077 . - FILTER(LANG(?vocativeFeminineSingular) = "hi") - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?vocativeMasculineSingularForm . - ?vocativeMasculineSingularForm ontolex:representation ?vocativeMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q185077 . - FILTER(LANG(?vocativeMasculineSingular) = "hi") - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?vocativeFemininePluralForm . - ?vocativeFemininePluralForm ontolex:representation ?vocativeFemininePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q185077 . - FILTER(LANG(?vocativeFemininePlural) = "hi") - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?vocativeMasculinePluralForm . - ?vocativeMasculinePluralForm ontolex:representation ?vocativeMasculinePlural ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q185077 . - FILTER(LANG(?vocativeMasculinePlural) = "hi") - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/verbs/query_verbs.sparql index a7be80f7..42751dce 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/verbs/query_verbs.sparql @@ -6,25 +6,36 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?infinitive + ?verb + ?accusative ?direct - ?gerund + ?oblique ?intransitivePhase ?basicPhase + ?gerund ?conjunctiveParticiple ?adverbial ?absoluteConstruction - ?accusative - ?oblique + WHERE { # MARK: Infinitive ?lexeme dct:language wd:Q11051 ; wikibase:lexicalCategory wd:Q24905 ; - wikibase:lemma ?infinitive . + wikibase:lemma ?verb . FILTER(lang(?infinitive) = "hi") + + # MARK: Accusative + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeForm . + ?accusativeForm ontolex:representation ?accusative ; + wikibase:grammaticalFeature wd:Q146078 . + FILTER(LANG(?accusative) = "hi") + } + # MARK: Direct Case OPTIONAL { @@ -34,15 +45,16 @@ WHERE { FILTER(LANG(?direct) = "hi") } - # MARK: Gerund + # MARK: Oblique OPTIONAL { - ?lexeme ontolex:lexicalForm ?gerundForm . - ?gerundForm ontolex:representation ?gerund ; - wikibase:grammaticalFeature wd:Q1923028 . - FILTER(LANG(?gerund) = "hi") + ?lexeme ontolex:lexicalForm ?obliqueForm . + ?obliqueForm ontolex:representation ?oblique ; + wikibase:grammaticalFeature wd:Q1233197 . + FILTER(LANG(?oblique) = "hi") } + # MARK: Intransitive Phase OPTIONAL { @@ -61,6 +73,15 @@ WHERE { FILTER(LANG(?basicPhase) = "hi") } + # MARK: Gerund + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?gerundForm . + ?gerundForm ontolex:representation ?gerund ; + wikibase:grammaticalFeature wd:Q1923028 . + FILTER(LANG(?gerund) = "hi") + } + # MARK: Conjunctive Participle OPTIONAL { @@ -87,22 +108,4 @@ WHERE { wikibase:grammaticalFeature wd:Q4669807 . FILTER(LANG(?absoluteConstruction) = "hi") } - - # MARK: Accusative - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeForm . - ?accusativeForm ontolex:representation ?accusative ; - wikibase:grammaticalFeature wd:Q146078 . - FILTER(LANG(?accusative) = "hi") - } - - # MARK: Oblique - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?obliqueForm . - ?obliqueForm ontolex:representation ?oblique ; - wikibase:grammaticalFeature wd:Q1233197 . - FILTER(LANG(?oblique) = "hi") - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/adjectives/query_adjectives.sparql index 3a81de17..83910b64 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/adjectives/query_adjectives.sparql @@ -9,18 +9,18 @@ SELECT ?adjective ?singular ?plural + ?vocativeFeminineSingular + ?vocativeFemininePlural + ?vocativeMasculineSingular + ?vocativeMasculinePlural ?directFeminineSingular - ?directMasculineSingular ?directFemininePlural + ?directMasculineSingular ?directMasculinePlural ?obliqueFeminineSingular - ?obliqueMasculineSingular ?obliqueFemininePlural + ?obliqueMasculineSingular ?obliqueMasculinePlural - ?vocativeFeminineSingular - ?vocativeMasculineSingular - ?vocativeFemininePlural - ?vocativeMasculinePlural WHERE { ?lexeme dct:language wd:Q11051 ; @@ -46,6 +46,36 @@ WHERE { FILTER(LANG(?plural) = "ur") } + # MARK: Vocative + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?vocativeFeminineSingularForm . + ?vocativeFeminineSingularForm ontolex:representation ?vocativeFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q185077 . + FILTER(LANG(?vocativeFeminineSingular) = "ur") + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?vocativeFemininePluralForm . + ?vocativeFemininePluralForm ontolex:representation ?vocativeFemininePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q185077 . + FILTER(LANG(?vocativeFemininePlural) = "ur") + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?vocativeMasculineSingularForm . + ?vocativeMasculineSingularForm ontolex:representation ?vocativeMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q185077 . + FILTER(LANG(?vocativeMasculineSingular) = "ur") + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?vocativeMasculinePluralForm . + ?vocativeMasculinePluralForm ontolex:representation ?vocativeMasculinePlural ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q185077 . + FILTER(LANG(?vocativeMasculinePlural) = "ur") + } + # MARK: Direct OPTIONAL { @@ -55,13 +85,6 @@ WHERE { FILTER(LANG(?directFeminineSingular) = "ur") } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?directMasculineSingularForm . - ?directMasculineSingularForm ontolex:representation ?directMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1751855 . - FILTER(LANG(?directMasculineSingular) = "ur") - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?directFemininePluralForm . ?directFemininePluralForm ontolex:representation ?directFemininePlural ; @@ -69,6 +92,13 @@ WHERE { FILTER(LANG(?directFemininePlural) = "ur") } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?directMasculineSingularForm . + ?directMasculineSingularForm ontolex:representation ?directMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1751855 . + FILTER(LANG(?directMasculineSingular) = "ur") + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?directMasculinePluralForm . ?directMasculinePluralForm ontolex:representation ?directMasculinePlural ; @@ -85,13 +115,6 @@ WHERE { FILTER(LANG(?obliqueFeminineSingular) = "ur") } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?obliqueMasculineSingularForm . - ?obliqueMasculineSingularForm ontolex:representation ?obliqueMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1233197 . - FILTER(LANG(?obliqueMasculineSingular) = "ur") - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?obliqueFemininePluralForm . ?obliqueFemininePluralForm ontolex:representation ?obliqueFemininePlural ; @@ -99,40 +122,17 @@ WHERE { FILTER(LANG(?obliqueFemininePlural) = "ur") } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?obliqueMasculineSingularForm . + ?obliqueMasculineSingularForm ontolex:representation ?obliqueMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1233197 . + FILTER(LANG(?obliqueMasculineSingular) = "ur") + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?obliqueMasculinePluralForm . ?obliqueMasculinePluralForm ontolex:representation ?obliqueMasculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q1233197 . FILTER(LANG(?obliqueMasculinePlural) = "ur") } - - # MARK: Vocative - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?vocativeFeminineSingularForm . - ?vocativeFeminineSingularForm ontolex:representation ?vocativeFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q185077 . - FILTER(LANG(?vocativeFeminineSingular) = "ur") - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?vocativeMasculineSingularForm . - ?vocativeMasculineSingularForm ontolex:representation ?vocativeMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q185077 . - FILTER(LANG(?vocativeMasculineSingular) = "ur") - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?vocativeFemininePluralForm . - ?vocativeFemininePluralForm ontolex:representation ?vocativeFemininePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q185077 . - FILTER(LANG(?vocativeFemininePlural) = "ur") - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?vocativeMasculinePluralForm . - ?vocativeMasculinePluralForm ontolex:representation ?vocativeMasculinePlural ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q185077 . - FILTER(LANG(?vocativeMasculinePlural) = "ur") - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/verbs/query_verbs.sparql index d5dc0f38..27b31303 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/verbs/query_verbs.sparql @@ -6,18 +6,18 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?infinitive + ?verb ?direct - ?gerund ?intransitivePhase ?basicPhase + ?gerund WHERE { # MARK: Infinitive ?lexeme dct:language wd:Q11051 ; wikibase:lexicalCategory wd:Q24905 ; - wikibase:lemma ?infinitive . + wikibase:lemma ?verb . FILTER(lang(?infinitive) = "ur") # MARK: Direct Case @@ -29,15 +29,6 @@ WHERE { FILTER(LANG(?direct) = "ur") } - # MARK: Gerund - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?gerundForm . - ?gerundForm ontolex:representation ?gerund ; - wikibase:grammaticalFeature wd:Q1923028 . - FILTER(LANG(?gerund) = "ur") - } - # MARK: Intransitive Phase OPTIONAL { @@ -55,4 +46,13 @@ WHERE { wikibase:grammaticalFeature wd:Q113330960 . FILTER(LANG(?basicPhase) = "ur") } + + # MARK: Gerund + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?gerundForm . + ?gerundForm ontolex:representation ?gerund ; + wikibase:grammaticalFeature wd:Q1923028 . + FILTER(LANG(?gerund) = "ur") + } } diff --git a/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_1.sparql index cec1a21a..2bc7fd1d 100644 --- a/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_1.sparql @@ -6,12 +6,13 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?presentIndicativeFirstPersonSingular - ?presentIndicativeSecondPersonSingular - ?presentIndicativeThirdPersonSingular ?presentIndicativeFirstPersonPlural + ?presentIndicativeSecondPersonSingular ?presentIndicativeSecondPersonPlural + ?presentIndicativeThirdPersonSingular ?presentIndicativeThirdPersonPlural + WHERE { ?lexeme dct:language wd:Q652 ; wikibase:lexicalCategory wd:Q24905 ; @@ -25,30 +26,30 @@ WHERE { wikibase:grammaticalFeature wd:Q56682909, wd:Q21714344, wd:Q110786 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentIndicativeSecondPersonSingularForm . - ?presentIndicativeSecondPersonSingularForm ontolex:representation ?presentIndicativeSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q56682909, wd:Q51929049, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentIndicativeThirdPersonSingularForm . - ?presentIndicativeThirdPersonSingularForm ontolex:representation ?presentIndicativeThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q56682909, wd:Q51929074, wd:Q110786 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?presentIndicativeFirstPersonPluralForm . ?presentIndicativeFirstPersonPluralForm ontolex:representation ?presentIndicativeFirstPersonPlural ; wikibase:grammaticalFeature wd:Q56682909, wd:Q21714344, wd:Q146786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentIndicativeSecondPersonSingularForm . + ?presentIndicativeSecondPersonSingularForm ontolex:representation ?presentIndicativeSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q56682909, wd:Q51929049, wd:Q110786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?presentIndicativeSecondPersonPluralForm . ?presentIndicativeSecondPersonPluralForm ontolex:representation ?presentIndicativeSecondPersonPlural ; wikibase:grammaticalFeature wd:Q56682909, wd:Q51929049, wd:Q146786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentIndicativeThirdPersonSingularForm . + ?presentIndicativeThirdPersonSingularForm ontolex:representation ?presentIndicativeThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q56682909, wd:Q51929074, wd:Q110786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?presentIndicativeThirdPersonPluralForm . ?presentIndicativeThirdPersonPluralForm ontolex:representation ?presentIndicativeThirdPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_2.sparql index e9abfb7a..264a1beb 100644 --- a/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_2.sparql @@ -6,10 +6,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?pastImperfectFirstPersonSingular - ?pastImperfectSecondPersonSingular - ?pastImperfectThirdPersonSingular ?pastImperfectFirstPersonPlural + ?pastImperfectSecondPersonSingular ?pastImperfectSecondPersonPlural + ?pastImperfectThirdPersonSingular ?pastImperfectThirdPersonPlural WHERE { @@ -25,30 +25,30 @@ WHERE { wikibase:grammaticalFeature wd:Q12547192, wd:Q21714344, wd:Q110786 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastImperfectSecondPersonSingularForm . - ?pastImperfectSecondPersonSingularForm ontolex:representation ?pastImperfectSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q12547192, wd:Q51929049, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastImperfectThirdPersonSingularForm . - ?pastImperfectThirdPersonSingularForm ontolex:representation ?pastImperfectThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q12547192, wd:Q51929074, wd:Q110786 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?pastImperfectFirstPersonPluralForm . ?pastImperfectFirstPersonPluralForm ontolex:representation ?pastImperfectFirstPersonPlural ; wikibase:grammaticalFeature wd:Q12547192, wd:Q21714344, wd:Q146786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastImperfectSecondPersonSingularForm . + ?pastImperfectSecondPersonSingularForm ontolex:representation ?pastImperfectSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q12547192, wd:Q51929049, wd:Q110786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?pastImperfectSecondPersonPluralForm . ?pastImperfectSecondPersonPluralForm ontolex:representation ?pastImperfectSecondPersonPlural ; wikibase:grammaticalFeature wd:Q12547192, wd:Q51929049, wd:Q146786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastImperfectThirdPersonSingularForm . + ?pastImperfectThirdPersonSingularForm ontolex:representation ?pastImperfectThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q12547192, wd:Q51929074, wd:Q110786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?pastImperfectThirdPersonPluralForm . ?pastImperfectThirdPersonPluralForm ontolex:representation ?pastImperfectThirdPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_3.sparql b/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_3.sparql index 3d8cd6e0..5f41e77a 100644 --- a/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_3.sparql @@ -6,12 +6,13 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?preteriteFirstPersonSingular - ?preteriteSecondPersonSingular - ?preteriteThirdPersonSingular ?preteriteFirstPersonPlural + ?preteriteSecondPersonSingular ?preteriteSecondPersonPlural + ?preteriteThirdPersonSingular ?preteriteThirdPersonPlural + WHERE { ?lexeme dct:language wd:Q652 ; wikibase:lexicalCategory wd:Q24905 ; @@ -25,30 +26,30 @@ WHERE { wikibase:grammaticalFeature wd:Q442485, wd:Q21714344, wd:Q110786 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?preteriteSecondPersonSingularForm . - ?preteriteSecondPersonSingularForm ontolex:representation ?preteriteSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929049, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?preteriteThirdPersonSingularForm . - ?preteriteThirdPersonSingularForm ontolex:representation ?preteriteThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929074, wd:Q110786 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?preteriteFirstPersonPluralForm . ?preteriteFirstPersonPluralForm ontolex:representation ?preteriteFirstPersonPlural ; wikibase:grammaticalFeature wd:Q442485, wd:Q21714344, wd:Q146786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?preteriteSecondPersonSingularForm . + ?preteriteSecondPersonSingularForm ontolex:representation ?preteriteSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q442485, wd:Q51929049, wd:Q110786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?preteriteSecondPersonPluralForm . ?preteriteSecondPersonPluralForm ontolex:representation ?preteriteSecondPersonPlural ; wikibase:grammaticalFeature wd:Q442485, wd:Q51929049, wd:Q146786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?preteriteThirdPersonSingularForm . + ?preteriteThirdPersonSingularForm ontolex:representation ?preteriteThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q442485, wd:Q51929074, wd:Q110786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?preteriteThirdPersonPluralForm . ?preteriteThirdPersonPluralForm ontolex:representation ?preteriteThirdPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/japanese/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/japanese/verbs/query_verbs.sparql index 326a3744..02bd890f 100644 --- a/src/scribe_data/wikidata/language_data_extraction/japanese/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/japanese/verbs/query_verbs.sparql @@ -7,9 +7,9 @@ SELECT ?verb ?negative ?conjunctive - ?imperfective ?attributive ?hypothetical + ?imperfective WHERE { ?lexeme dct:language wd:Q5287 ; @@ -35,15 +35,6 @@ WHERE { FILTER(LANG(?conjunctive) = "ja-hira") } - # MARK: Imperfective - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?imperfectiveForm . - ?imperfectiveForm ontolex:representation ?imperfective ; - wikibase:grammaticalFeature wd:Q2898727 . - FILTER(LANG(?imperfective) = "ja-hira") - } - # MARK: Attributive OPTIONAL { @@ -61,4 +52,13 @@ WHERE { wikibase:grammaticalFeature wd:Q53609593 . FILTER(LANG(?hypothetical) = "ja-hira") } + + # MARK: Imperfective + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?imperfectiveForm . + ?imperfectiveForm ontolex:representation ?imperfective ; + wikibase:grammaticalFeature wd:Q2898727 . + FILTER(LANG(?imperfective) = "ja-hira") + } } diff --git a/src/scribe_data/wikidata/language_data_extraction/malayalam/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/malayalam/verbs/query_verbs.sparql index 9a49e67a..f09c7c51 100644 --- a/src/scribe_data/wikidata/language_data_extraction/malayalam/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/malayalam/verbs/query_verbs.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb - ?presentInfinitive ?simplePresent + ?presentInfinitive ?simplePast ?simpleFuture @@ -15,15 +15,6 @@ WHERE { wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . - # MARK: Present Infinitive - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentInfinitiveForm . - ?presentInfinitiveForm ontolex:representation ?presentInfinitive ; - wikibase:grammaticalFeature wd:Q52434245 . - FILTER(LANG(?presentInfinitive) = "ml") - } - # MARK: Simple Present OPTIONAL { @@ -33,6 +24,15 @@ WHERE { FILTER(LANG(?simplePresent) = "ml") } + # MARK: Present Infinitive + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentInfinitiveForm . + ?presentInfinitiveForm ontolex:representation ?presentInfinitive ; + wikibase:grammaticalFeature wd:Q52434245 . + FILTER(LANG(?presentInfinitive) = "ml") + } + # MARK: Simple Past OPTIONAL { diff --git "a/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/nouns/query_nouns.sparql" "b/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/nouns/query_nouns.sparql" index 751e9f3e..022a63be 100644 --- "a/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/nouns/query_nouns.sparql" +++ "b/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/nouns/query_nouns.sparql" @@ -7,8 +7,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?indefiniteSingular - ?definiteSingular ?indefinitePlural + ?definiteSingular ?definitePlural ?gender @@ -17,14 +17,6 @@ WHERE { wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?indefiniteSingular . - # MARK: Definite Singular - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?definiteSingularForm . - ?definiteSingularForm ontolex:representation ?definiteSingular ; - wikibase:grammaticalFeature wd:Q110786, wd:Q53997851 . - } - # MARK: Indefinite Plural OPTIONAL { @@ -33,6 +25,14 @@ WHERE { wikibase:grammaticalFeature wd:Q146786, wd:Q53997857 . } + # MARK: Definite Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?definiteSingularForm . + ?definiteSingularForm ontolex:representation ?definiteSingular ; + wikibase:grammaticalFeature wd:Q110786, wd:Q53997851 . + } + # MARK: Definite Plural OPTIONAL { diff --git "a/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_1.sparql" "b/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_1.sparql" index 9d7ffa96..8f2a71a0 100644 --- "a/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_1.sparql" +++ "b/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_1.sparql" @@ -4,31 +4,18 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?activeInfinitive - ?presentPerfect ?imperative ?preterite + ?presentPerfect ?passiveInfinitive ?passivePresent + ?activeInfinitive ?activePresent WHERE { ?lexeme dct:language wd:Q25167 ; wikibase:lexicalCategory wd:Q24905 . - # MARK: active Infinitive - - ?lexeme ontolex:lexicalForm ?activeInfinitiveForm . - ?activeInfinitiveForm ontolex:representation ?activeInfinitive ; - wikibase:grammaticalFeature wd:Q1317831 , wd:Q179230 . - - # MARK: present perfect - OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentPerfectForm . - ?presentPerfectForm ontolex:representation ?presentPerfect ; - wikibase:grammaticalFeature wd:Q1240211 . - } - # MARK: imperative OPTIONAL { ?lexeme ontolex:lexicalForm ?imperativeForm . @@ -43,6 +30,13 @@ WHERE { wikibase:grammaticalFeature wd:Q442485 . } + # MARK: present perfect + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentPerfectForm . + ?presentPerfectForm ontolex:representation ?presentPerfect ; + wikibase:grammaticalFeature wd:Q1240211 . + } + # MARK: passive infinitive OPTIONAL { ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . @@ -57,6 +51,12 @@ WHERE { wikibase:grammaticalFeature wd:Q1194697, wd:Q192613 . } + # MARK: active Infinitive + + ?lexeme ontolex:lexicalForm ?activeInfinitiveForm . + ?activeInfinitiveForm ontolex:representation ?activeInfinitive ; + wikibase:grammaticalFeature wd:Q1317831 , wd:Q179230 . + # MARK: active present OPTIONAL { ?lexeme ontolex:lexicalForm ?activePresentForm . diff --git "a/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_2.sparql" "b/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_2.sparql" index b4add4da..a7edfe86 100644 --- "a/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_2.sparql" +++ "b/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_2.sparql" @@ -5,10 +5,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?presentParticiple - ?feminineMasculineIndefiniteSingularPastParticiple - ?neuterIndefiniteSingularPastParticiple - ?definiteSingularPastParticiple ?pluralPastParticiple + ?definiteSingularPastParticiple + ?neuterIndefiniteSingularPastParticiple + ?feminineMasculineIndefiniteSingularPastParticiple WHERE { ?lexeme dct:language wd:Q25167 ; @@ -21,11 +21,18 @@ WHERE { wikibase:grammaticalFeature wd:Q10345583 . } - # MARK: masculine feminine singular indefinite past participle + # MARK: plural past participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineMasculineIndefiniteSingularPastParticipleForm . - ?feminineMasculineIndefiniteSingularPastParticipleForm ontolex:representation ?feminineMasculineIndefiniteSingularPastParticiple ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q499327, wd:Q53997857, wd:Q110786, wd:Q12717679 . + ?lexeme ontolex:lexicalForm ?pluralPastParticipleForm . + ?pluralPastParticipleForm ontolex:representation ?pluralPastParticiple ; + wikibase:grammaticalFeature wd:Q12717679, wd:Q146786 . + } + + # MARK: definite singular past participle + OPTIONAL { + ?lexeme ontolex:lexicalForm ?definiteSingularPastParticipleForm . + ?definiteSingularPastParticipleForm ontolex:representation ?definiteSingularPastParticiple ; + wikibase:grammaticalFeature wd:Q12717679, wd:Q110786, wd:Q53997851 . } # MARK: neuter singular indefinite past participle @@ -35,17 +42,11 @@ WHERE { wikibase:grammaticalFeature wd:Q12717679, wd:Q1775461, wd:Q110786, wd:Q53997857 . } - # MARK: definite singular past participle + # MARK: masculine feminine singular indefinite past participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?definiteSingularPastParticipleForm . - ?definiteSingularPastParticipleForm ontolex:representation ?definiteSingularPastParticiple ; - wikibase:grammaticalFeature wd:Q12717679, wd:Q110786, wd:Q53997851 . + ?lexeme ontolex:lexicalForm ?feminineMasculineIndefiniteSingularPastParticipleForm . + ?feminineMasculineIndefiniteSingularPastParticipleForm ontolex:representation ?feminineMasculineIndefiniteSingularPastParticiple ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q499327, wd:Q53997857, wd:Q110786, wd:Q12717679 . } - # MARK: plural past participle - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralPastParticipleForm . - ?pluralPastParticipleForm ontolex:representation ?pluralPastParticiple ; - wikibase:grammaticalFeature wd:Q12717679, wd:Q146786 . - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/adjectives/query_adjectives.sparql index 906c7c8b..2ea78c36 100644 --- a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/adjectives/query_adjectives.sparql @@ -7,10 +7,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?feminineMasculineIndefiniteSingular - ?neuterIndefiniteSingular - ?definiteSingular ?plural + ?definiteSingular + ?neuterIndefiniteSingular + ?feminineMasculineIndefiniteSingular WHERE { @@ -18,20 +18,12 @@ WHERE { wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . - # MARK: Common Indefinite - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineMasculineIndefiniteSingularForm . - ?feminineMasculineIndefiniteSingularForm ontolex:representation ?feminineMasculineIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q499327, wd:Q110786, wd:Q53997857 . - } - - # MARK: Neuter Indefinite + # MARK: Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterIndefiniteSingularForm . - ?neuterIndefiniteSingularForm ontolex:representation ?neuterIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q53997857 . + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 . } # MARK: Definite @@ -42,11 +34,19 @@ WHERE { wikibase:grammaticalFeature wd:Q110786, wd:Q53997851 . } - # MARK: Plural + # MARK: Neuter Indefinite OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralForm . - ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q146786 . + ?lexeme ontolex:lexicalForm ?neuterIndefiniteSingularForm . + ?neuterIndefiniteSingularForm ontolex:representation ?neuterIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q53997857 . + } + + # MARK: Common Indefinite + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?feminineMasculineIndefiniteSingularForm . + ?feminineMasculineIndefiniteSingularForm ontolex:representation ?feminineMasculineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q499327, wd:Q110786, wd:Q53997857 . } } diff --git a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/nouns/query_nouns.sparql index beeb5d36..2763c64c 100644 --- a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/nouns/query_nouns.sparql @@ -7,8 +7,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?indefiniteSingular - ?definiteSingular ?indefinitePlural + ?definiteSingular ?definitePlural ?gender @@ -17,14 +17,6 @@ WHERE { wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?indefiniteSingular . - # MARK: Definite Singular - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?definiteSingularForm . - ?definiteSingularForm ontolex:representation ?definiteSingular ; - wikibase:grammaticalFeature wd:Q110786, wd:Q53997851 . - } - # MARK: Indefinite Plural OPTIONAL { @@ -33,6 +25,14 @@ WHERE { wikibase:grammaticalFeature wd:Q146786, wd:Q53997857 . } + # MARK: Definite Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?definiteSingularForm . + ?definiteSingularForm ontolex:representation ?definiteSingular ; + wikibase:grammaticalFeature wd:Q110786, wd:Q53997851 . + } + # MARK: Definite Plural OPTIONAL { diff --git a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/proper_nouns/query_proper_nouns.sparql index b8f61e4b..a4454a29 100644 --- a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/proper_nouns/query_proper_nouns.sparql @@ -7,24 +7,17 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?indefiniteSingular - ?definiteSingular ?indefinitePlural + ?definiteSingular ?definitePlural ?gender + WHERE { ?lexeme dct:language wd:Q25164 ; wikibase:lexicalCategory wd:Q147276; wikibase:lemma ?indefiniteSingular . - # MARK: Definite Singular - - OPTIONAL { - ?lexeme ontolex:lexicalForm ? ?definiteSingularForm . - ?definiteSingularForm ontolex:representation ?definiteSingular ; - wikibase:grammaticalFeature wd:Q110786, wd:Q53997851 . - } - # MARK: Indefinite Plural OPTIONAL { @@ -33,6 +26,14 @@ WHERE { wikibase:grammaticalFeature wd:Q146786, wd:Q53997857 . } + # MARK: Definite Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ? ?definiteSingularForm . + ?definiteSingularForm ontolex:representation ?definiteSingular ; + wikibase:grammaticalFeature wd:Q110786, wd:Q53997851 . + } + # MARK: Definite Plural OPTIONAL { diff --git a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/verbs/query_verbs.sparql index 60c40afa..5a3d37d7 100644 --- a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/verbs/query_verbs.sparql @@ -6,55 +6,39 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?infinitive + ?verb + ?imperative + ?preterite + ?presentParticiple + ?passiveInfinitive + ?passivePresent ?activeAInfinitive ?activeEInfinitive ?activePresent - ?preterite + ?pluralPastParticiple ?presentPreteritePerfect - ?imperative - ?feminineMasculineIndefiniteSingularPastParticiple - ?neuterIndefiniteSingularPastParticiple ?definiteSingularPastParticiple - ?pluralPastParticiple - ?presentParticiple - ?passiveInfinitive - ?passivePresent + ?neuterIndefiniteSingularPastParticiple + ?feminineMasculineIndefiniteSingularPastParticiple WHERE { + # MARK: Infinitive ?lexeme dct:language wd:Q25164 ; wikibase:lexicalCategory wd:Q24905 ; - wikibase:lemma ?infinitive . + wikibase:lemma ?verb . FILTER(LANG(?infinitive) = "nn") - # MARK: Active A Infinitive - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?activeAInfinitiveForm . - ?activeAInfinitiveForm ontolex:representation ?activeAInfinitive ; - wikibase:grammaticalFeature wd:Q1317831, wd:Q115223950 . - FILTER(LANG(?activeAInfinitive) = "nn") - } - - # MARK: Active E Infinitive + # MARK: Imperative OPTIONAL { - ?lexeme ontolex:lexicalForm ?activeEInfinitiveForm . - ?activeEInfinitiveForm ontolex:representation ?activeEInfinitive ; - wikibase:grammaticalFeature wd:Q1317831, wd:Q115223951 . - FILTER(LANG(?activeEInfinitive) = "nn") + ?lexeme ontolex:lexicalForm ?imperativeForm . + ?imperativeForm ontolex:representation ?imperative ; + wikibase:grammaticalFeature wd:Q22716 . + FILTER(LANG(?imperative) = "nn") } - # MARK: Present Tense Active - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?activePresentForm . - ?activePresentForm ontolex:representation ?activePresent ; - wikibase:grammaticalFeature wd:Q192613, wd:Q1317831 . - FILTER(LANG(?activePresent) = "nn") - } # MARK: Preterite @@ -70,49 +54,58 @@ WHERE { } } - # MARK: Present Tense, Preterite, Perfect Tense + # MARK: Present Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentPreteritePerfectForm . - ?presentPreteritePerfectForm ontolex:representation ?presentPreteritePerfect ; - wikibase:grammaticalFeature wd:Q192613, wd:Q442485, wd:Q625420 . - FILTER(LANG(?presentPreteritePerfect) = "nn") + ?lexeme ontolex:lexicalForm ?presentParticipleForm . + ?presentParticipleForm ontolex:representation ?presentParticiple ; + wikibase:grammaticalFeature wd:Q10345583 . + FILTER(LANG(?presentParticiple) = "nn") } - # MARK: Imperative + + # MARK: Infinitive Passive OPTIONAL { - ?lexeme ontolex:lexicalForm ?imperativeForm . - ?imperativeForm ontolex:representation ?imperative ; - wikibase:grammaticalFeature wd:Q22716 . - FILTER(LANG(?imperative) = "nn") + ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . + ?passiveInfinitiveForm ontolex:representation ?passiveInfinitive ; + wikibase:grammaticalFeature wd:Q179230, wd:Q1194697 . + FILTER(LANG(?passiveInfinitive) = "nn") } - # MARK: Masculine/Feminine Singular Indefinite Past Participle + # MARK: Present Passive OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineMasculineIndefiniteSingularPastParticipleForm . - ?feminineMasculineIndefiniteSingularPastParticipleForm ontolex:representation ?feminineMasculineIndefiniteSingularPastParticiple ; - wikibase:grammaticalFeature wd:Q499327, wd:Q1775415, wd:Q110786, wd:Q53997857, wd:Q12717679 . - FILTER(LANG(?feminineMasculineIndefiniteSingularPastParticiple) = "nn") + ?lexeme ontolex:lexicalForm ?passivePresentForm . + ?passivePresentForm ontolex:representation ?passivePresent ; + wikibase:grammaticalFeature wd:Q192613, wd:Q1194697 . + FILTER(LANG(?passivePresent) = "nn") } - # MARK: Neuter Singular Indefinite Past Participle + # MARK: Active A Infinitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterIndefiniteSingularPastParticipleForm . - ?neuterIndefiniteSingularPastParticipleForm ontolex:representation ?neuterIndefiniteSingularPastParticiple ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q53997857, wd:Q12717679 . - FILTER(LANG(?neuterIndefiniteSingularPastParticiple) = "nn") + ?lexeme ontolex:lexicalForm ?activeAInfinitiveForm . + ?activeAInfinitiveForm ontolex:representation ?activeAInfinitive ; + wikibase:grammaticalFeature wd:Q1317831, wd:Q115223950 . + FILTER(LANG(?activeAInfinitive) = "nn") } - # MARK: Singular Definitive Past Participle + # MARK: Active E Infinitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?definiteSingularPastParticipleForm . - ?definiteSingularPastParticipleForm ontolex:representation ?definiteSingularPastParticiple ; - wikibase:grammaticalFeature wd:Q110786, wd:Q53997851, wd:Q12717679 . - FILTER(LANG(?definiteSingularPastParticiple) = "nn") + ?lexeme ontolex:lexicalForm ?activeEInfinitiveForm . + ?activeEInfinitiveForm ontolex:representation ?activeEInfinitive ; + wikibase:grammaticalFeature wd:Q1317831, wd:Q115223951 . + FILTER(LANG(?activeEInfinitive) = "nn") + } + # MARK: Present Tense Active + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?activePresentForm . + ?activePresentForm ontolex:representation ?activePresent ; + wikibase:grammaticalFeature wd:Q192613, wd:Q1317831 . + FILTER(LANG(?activePresent) = "nn") } # MARK: Plural Past Participle @@ -124,30 +117,40 @@ WHERE { FILTER(LANG(?pluralPastParticiple) = "nn") } - # MARK: Present Participle + # MARK: Present Tense, Preterite, Perfect Tense OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentParticipleForm . - ?presentParticipleForm ontolex:representation ?presentParticiple ; - wikibase:grammaticalFeature wd:Q10345583 . - FILTER(LANG(?presentParticiple) = "nn") + ?lexeme ontolex:lexicalForm ?presentPreteritePerfectForm . + ?presentPreteritePerfectForm ontolex:representation ?presentPreteritePerfect ; + wikibase:grammaticalFeature wd:Q192613, wd:Q442485, wd:Q625420 . + FILTER(LANG(?presentPreteritePerfect) = "nn") } - # MARK: Infinitive Passive + # MARK: Singular Definitive Past Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . - ?passiveInfinitiveForm ontolex:representation ?passiveInfinitive ; - wikibase:grammaticalFeature wd:Q179230, wd:Q1194697 . - FILTER(LANG(?passiveInfinitive) = "nn") + ?lexeme ontolex:lexicalForm ?definiteSingularPastParticipleForm . + ?definiteSingularPastParticipleForm ontolex:representation ?definiteSingularPastParticiple ; + wikibase:grammaticalFeature wd:Q110786, wd:Q53997851, wd:Q12717679 . + FILTER(LANG(?definiteSingularPastParticiple) = "nn") } - # MARK: Present Passive + # MARK: Neuter Singular Indefinite Past Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?passivePresentForm . - ?passivePresentForm ontolex:representation ?passivePresent ; - wikibase:grammaticalFeature wd:Q192613, wd:Q1194697 . - FILTER(LANG(?passivePresent) = "nn") + ?lexeme ontolex:lexicalForm ?neuterIndefiniteSingularPastParticipleForm . + ?neuterIndefiniteSingularPastParticipleForm ontolex:representation ?neuterIndefiniteSingularPastParticiple ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q53997857, wd:Q12717679 . + FILTER(LANG(?neuterIndefiniteSingularPastParticiple) = "nn") } + + # MARK: Masculine/Feminine Singular Indefinite Past Participle + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?feminineMasculineIndefiniteSingularPastParticipleForm . + ?feminineMasculineIndefiniteSingularPastParticipleForm ontolex:representation ?feminineMasculineIndefiniteSingularPastParticiple ; + wikibase:grammaticalFeature wd:Q499327, wd:Q1775415, wd:Q110786, wd:Q53997857, wd:Q12717679 . + FILTER(LANG(?feminineMasculineIndefiniteSingularPastParticiple) = "nn") + } + } diff --git a/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_2.sparql index 53731447..918672e1 100644 --- a/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_2.sparql @@ -6,10 +6,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?indicativeFirstPersonAoristSingular - ?indicativeSecondPersonAoristSingular - ?indicativeThirdPersonAoristSingular ?indicativeFirstPersonAoristPlural + ?indicativeSecondPersonAoristSingular ?indicativeSecondPersonAoristPlural + ?indicativeThirdPersonAoristSingular ?indicativeThirdPersonAoristPlural WHERE { @@ -26,20 +26,6 @@ WHERE { FILTER(lang(?indicativeFirstPersonAoristSingular) = "fa") . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeSecondPersonAoristSingularForm . - ?indicativeSecondPersonAoristSingularForm ontolex:representation ?indicativeSecondPersonAoristSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q216497 . - FILTER(lang(?indicativeSecondPersonAoristSingular) = "fa") . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeThirdPersonAoristSingularForm . - ?indicativeThirdPersonAoristSingularForm ontolex:representation ?indicativeThirdPersonAoristSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q216497 . - FILTER(lang(?indicativeThirdPersonAoristSingular) = "fa") . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativeFirstPersonAoristPluralForm . ?indicativeFirstPersonAoristPluralForm ontolex:representation ?indicativeFirstPersonAoristPlural ; @@ -47,6 +33,13 @@ WHERE { FILTER(lang(?indicativeFirstPersonAoristPlural) = "fa") . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativeSecondPersonAoristSingularForm . + ?indicativeSecondPersonAoristSingularForm ontolex:representation ?indicativeSecondPersonAoristSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q216497 . + FILTER(lang(?indicativeSecondPersonAoristSingular) = "fa") . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativeSecondPersonAoristPluralForm . ?indicativeSecondPersonAoristPluralForm ontolex:representation ?indicativeSecondPersonAoristPlural ; @@ -54,6 +47,13 @@ WHERE { FILTER(lang(?indicativeSecondPersonAoristPlural) = "fa") . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativeThirdPersonAoristSingularForm . + ?indicativeThirdPersonAoristSingularForm ontolex:representation ?indicativeThirdPersonAoristSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q216497 . + FILTER(lang(?indicativeThirdPersonAoristSingular) = "fa") . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativeThirdPersonAoristPluralForm . ?indicativeThirdPersonAoristPluralForm ontolex:representation ?indicativeThirdPersonAoristPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_3.sparql b/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_3.sparql index f11f2c9d..5f6e219a 100644 --- a/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_3.sparql @@ -6,10 +6,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?indicativePastFirstPersonSingular - ?indicativePastSecondPersonSingular - ?indicativePastThirdPersonSingular ?indicativePastFirstPersonPlural + ?indicativePastSecondPersonSingular ?indicativePastSecondPersonPlural + ?indicativePastThirdPersonSingular ?indicativePastThirdPersonPlural WHERE { @@ -25,30 +25,30 @@ WHERE { wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q1994301, wd:Q682111 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastSecondPersonSingularForm . - ?indicativePastSecondPersonSingularForm ontolex:representation ?indicativePastSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1994301, wd:Q682111 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastThirdPersonSingularForm . - ?indicativePastThirdPersonSingularForm ontolex:representation ?indicativePastThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q1994301, wd:Q682111 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePastFirstPersonPluralForm . ?indicativePastFirstPersonPluralForm ontolex:representation ?indicativePastFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q1994301, wd:Q682111 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePastSecondPersonSingularForm . + ?indicativePastSecondPersonSingularForm ontolex:representation ?indicativePastSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1994301, wd:Q682111 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePastSecondPersonPluralForm . ?indicativePastSecondPersonPluralForm ontolex:representation ?indicativePastSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1994301, wd:Q682111 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePastThirdPersonSingularForm . + ?indicativePastThirdPersonSingularForm ontolex:representation ?indicativePastThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q1994301, wd:Q682111 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePastThirdPersonPluralForm . ?indicativePastThirdPersonPluralForm ontolex:representation ?indicativePastThirdPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_4.sparql b/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_4.sparql index b112c94b..2c902260 100644 --- a/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_4.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_4.sparql @@ -6,12 +6,13 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?presentPerfectFirstPersonSingular - ?presentPerfectSecondPersonSingular - ?presentPerfectThirdPersonSingular ?presentPerfectFirstPersonPlural + ?presentPerfectSecondPersonSingular ?presentPerfectSecondPersonPlural + ?presentPerfectThirdPersonSingular ?presentPerfectThirdPersonPlural + WHERE { ?lexeme dct:language wd:Q9168; wikibase:lexicalCategory wd:Q24905; @@ -26,22 +27,17 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentPerfectSecondPersonSingularForm . - ?presentPerfectSecondPersonSingularForm ontolex:representation ?presentPerfectSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q625420, wd:Q51929049, wd:Q192613, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?presentPerfectFirstPersonPluralForm . + ?presentPerfectFirstPersonPluralForm ontolex:representation ?presentPerfectFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q625420, wd:Q21714344, wd:Q192613, wd:Q146786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentPerfectThirdPersonSingularForm . - ?presentPerfectThirdPersonSingularForm ontolex:representation ?presentPerfectThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q625420, wd:Q51929074, wd:Q192613, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?presentPerfectSecondPersonSingularForm . + ?presentPerfectSecondPersonSingularForm ontolex:representation ?presentPerfectSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q625420, wd:Q51929049, wd:Q192613, wd:Q110786 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentPerfectFirstPersonPluralForm . - ?presentPerfectFirstPersonPluralForm ontolex:representation ?presentPerfectFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q625420, wd:Q21714344, wd:Q192613, wd:Q146786 . - } OPTIONAL { ?lexeme ontolex:lexicalForm ?presentPerfectSecondPersonPluralForm . @@ -49,6 +45,12 @@ WHERE { wikibase:grammaticalFeature wd:Q625420, wd:Q51929049, wd:Q192613, wd:Q146786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentPerfectThirdPersonSingularForm . + ?presentPerfectThirdPersonSingularForm ontolex:representation ?presentPerfectThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q625420, wd:Q51929074, wd:Q192613, wd:Q110786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?presentPerfectThirdPersonPluralForm . ?presentPerfectThirdPersonPluralForm ontolex:representation ?presentPerfectThirdPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_5.sparql b/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_5.sparql index 20bcfaed..06db62cc 100644 --- a/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_5.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_5.sparql @@ -6,10 +6,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?presentFirstPersonSingularSubjunctive - ?presentSecondPersonSingularSubjunctive - ?presentThirdPersonSingularSubjunctive ?presentFirstPersonPluralSubjunctive + ?presentSecondPersonSingularSubjunctive ?presentSecondPersonPluralSubjunctive + ?presentThirdPersonSingularSubjunctive ?presentThirdPersonPluralSubjunctive WHERE { @@ -25,30 +25,30 @@ WHERE { wikibase:grammaticalFeature wd:Q473746, wd:Q21714344, wd:Q192613, wd:Q110786 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentSecondPersonSingularSubjunctiveForm . - ?presentSecondPersonSingularSubjunctiveForm ontolex:representation ?presentSecondPersonSingularSubjunctive ; - wikibase:grammaticalFeature wd:Q473746, wd:Q51929049, wd:Q192613, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentThirdPersonSingularSubjunctiveForm . - ?presentThirdPersonSingularSubjunctiveForm ontolex:representation ?presentThirdPersonSingularSubjunctive ; - wikibase:grammaticalFeature wd:Q473746, wd:Q51929074, wd:Q192613, wd:Q110786 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?presentFirstPersonPluralSubjunctiveForm . ?presentFirstPersonPluralSubjunctiveForm ontolex:representation ?presentFirstPersonPluralSubjunctive ; wikibase:grammaticalFeature wd:Q473746, wd:Q21714344, wd:Q192613, wd:Q146786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentSecondPersonSingularSubjunctiveForm . + ?presentSecondPersonSingularSubjunctiveForm ontolex:representation ?presentSecondPersonSingularSubjunctive ; + wikibase:grammaticalFeature wd:Q473746, wd:Q51929049, wd:Q192613, wd:Q110786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?presentSecondPersonPluralSubjunctiveForm . ?presentSecondPersonPluralSubjunctiveForm ontolex:representation ?presentSecondPersonPluralSubjunctive ; wikibase:grammaticalFeature wd:Q473746, wd:Q51929049, wd:Q192613, wd:Q146786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentThirdPersonSingularSubjunctiveForm . + ?presentThirdPersonSingularSubjunctiveForm ontolex:representation ?presentThirdPersonSingularSubjunctive ; + wikibase:grammaticalFeature wd:Q473746, wd:Q51929074, wd:Q192613, wd:Q110786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?presentThirdPersonPluralSubjunctiveForm . ?presentThirdPersonPluralSubjunctiveForm ontolex:representation ?presentThirdPersonPluralSubjunctive ; diff --git a/src/scribe_data/wikidata/language_data_extraction/pidgin/nigerian/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/pidgin/nigerian/nouns/query_nouns.sparql index 21d40f85..5f1aa844 100644 --- a/src/scribe_data/wikidata/language_data_extraction/pidgin/nigerian/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/pidgin/nigerian/nouns/query_nouns.sparql @@ -4,14 +4,14 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?properNoun + ?noun ?plural ?gender WHERE { ?lexeme dct:language wd:Q33655 ; # Nigerian Pidgin wikibase:lexicalCategory wd:Q1084 ; - wikibase:lemma ?properNoun . + wikibase:lemma ?noun . # MARK: Plural diff --git a/src/scribe_data/wikidata/language_data_extraction/polish/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/polish/verbs/query_verbs.sparql index 60749242..98ad4c0d 100644 --- a/src/scribe_data/wikidata/language_data_extraction/polish/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/polish/verbs/query_verbs.sparql @@ -5,78 +5,93 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?indicativePresentFirstPersonSingular - ?indicativePresentSecondPersonSingular - ?indicativePresentThirdPersonSingular - ?indicativePresentFirstPersonPlural - ?indicativePresentSecondPersonPlural - ?indicativePresentThirdPersonPlural + ?feminineSingularPassiveParticiple ?feminineSingularActiveParticiple - ?masculineAnimateSingularActiveParticiple - ?masculineInanimateSingularActiveParticiple - ?neuterSingularActiveParticiple + ?femininePluralPassiveParticiple ?femininePluralActiveParticiple - ?masculineAnimatePluralActiveParticiple + + ?masculineInanimateSingularPassiveParticiple + ?masculineInanimateSingularActiveParticiple + ?masculineInanimatePluralPassiveParticiple ?masculineInanimatePluralActiveParticiple - ?neuterPluralActiveParticiple - ?feminineSingularPassiveParticiple ?masculineAnimateSingularPassiveParticiple - ?masculineInanimateSingularPassiveParticiple - ?neuterSingularPassiveParticiple - ?femininePluralPassiveParticiple + ?masculineAnimateSingularActiveParticiple ?masculineAnimatePluralPassiveParticiple - ?masculineInanimatePluralPassiveParticiple + ?masculineAnimatePluralActiveParticiple + + ?neuterSingularPassiveParticiple + ?neuterSingularActiveParticiple ?neuterPluralPassiveParticiple + ?neuterPluralActiveParticiple + + ?indicativePresentFirstPersonSingular + ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonSingular + ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonSingular + ?indicativePresentThirdPersonPlural WHERE { ?lexeme dct:language wd:Q809 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?infinitive . - # MARK: Present +OPTIONAL { + ?lexeme ontolex:lexicalForm ?feminineSingularPassiveParticipleForm . + ?feminineSingularPassiveParticipleForm ontolex:representation ?feminineSingularPassiveParticiple ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249544 . + } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . - ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q192613, wd:Q682111 . + ?lexeme ontolex:lexicalForm ?feminineSingularActiveParticipleForm . + ?feminineSingularActiveParticipleForm ontolex:representation ?feminineSingularActiveParticiple ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249355 . } + OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . - ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q192613, wd:Q682111 . + ?lexeme ontolex:lexicalForm ?femininePluralPassiveParticipleForm . + ?femininePluralPassiveParticipleForm ontolex:representation ?femininePluralPassiveParticiple ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . - ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q192613, wd:Q682111 . + ?lexeme ontolex:lexicalForm ?femininePluralActiveParticipleForm . + ?femininePluralActiveParticipleForm ontolex:representation ?femininePluralActiveParticiple ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249355 . } + # MARK: Present + # MARK: Active Participle + OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . - ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q192613, wd:Q682111 . + ?lexeme ontolex:lexicalForm ?masculineInanimateSingularPassiveParticipleForm . + ?masculineInanimateSingularPassiveParticipleForm ontolex:representation ?masculineInanimateSingularPassiveParticiple ; + wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . - ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q192613, wd:Q682111 . + ?lexeme ontolex:lexicalForm ?masculineInanimateSingularActiveParticipleForm . + ?masculineInanimateSingularActiveParticipleForm ontolex:representation ?masculineInanimateSingularActiveParticiple ; + wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . - ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q192613, wd:Q682111 . + ?lexeme ontolex:lexicalForm ?masculineInanimatePluralPassiveParticipleForm . + ?masculineInanimatePluralPassiveParticipleForm ontolex:representation ?masculineInanimatePluralPassiveParticiple ; + wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q72249544 . } - # MARK: Active Participle + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masculineInanimatePluralActiveParticipleForm . + ?masculineInanimatePluralActiveParticipleForm ontolex:representation ?masculineInanimatePluralActiveParticiple ; + wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q72249355 . + } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineSingularActiveParticipleForm . - ?feminineSingularActiveParticipleForm ontolex:representation ?feminineSingularActiveParticiple ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?masculineAnimateSingularPassiveParticipleForm . + ?masculineAnimateSingularPassiveParticipleForm ontolex:representation ?masculineAnimateSingularPassiveParticiple ; + wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q72249544 . } OPTIONAL { @@ -86,33 +101,34 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineInanimateSingularActiveParticipleForm . - ?masculineInanimateSingularActiveParticipleForm ontolex:representation ?masculineInanimateSingularActiveParticiple ; - wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?masculineAnimatePluralPassiveParticipleForm . + ?masculineAnimatePluralPassiveParticipleForm ontolex:representation ?masculineAnimatePluralPassiveParticiple ; + wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterSingularActiveParticipleForm . - ?neuterSingularActiveParticipleForm ontolex:representation ?neuterSingularActiveParticiple ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?masculineAnimatePluralActiveParticipleForm . + ?masculineAnimatePluralActiveParticipleForm ontolex:representation ?masculineAnimatePluralActiveParticiple ; + wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249355 . } + # MARK: Passive Participle + OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePluralActiveParticipleForm . - ?femininePluralActiveParticipleForm ontolex:representation ?femininePluralActiveParticiple ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?neuterSingularPassiveParticipleForm . + ?neuterSingularPassiveParticipleForm ontolex:representation ?neuterSingularPassiveParticiple ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAnimatePluralActiveParticipleForm . - ?masculineAnimatePluralActiveParticipleForm ontolex:representation ?masculineAnimatePluralActiveParticiple ; - wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?neuterSingularActiveParticipleForm . + ?neuterSingularActiveParticipleForm ontolex:representation ?neuterSingularActiveParticiple ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249355 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineInanimatePluralActiveParticipleForm . - ?masculineInanimatePluralActiveParticipleForm ontolex:representation ?masculineInanimatePluralActiveParticiple ; - wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q72249355 . + ?lexeme ontolex:lexicalForm ?neuterPluralPassiveParticipleForm . + ?neuterPluralPassiveParticipleForm ontolex:representation ?neuterPluralPassiveParticiple ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249544 . } OPTIONAL { @@ -121,53 +137,39 @@ WHERE { wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249355 . } - # MARK: Passive Participle - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineSingularPassiveParticipleForm . - ?feminineSingularPassiveParticipleForm ontolex:representation ?feminineSingularPassiveParticiple ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249544 . - } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAnimateSingularPassiveParticipleForm . - ?masculineAnimateSingularPassiveParticipleForm ontolex:representation ?masculineAnimateSingularPassiveParticiple ; - wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q72249544 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineInanimateSingularPassiveParticipleForm . - ?masculineInanimateSingularPassiveParticipleForm ontolex:representation ?masculineInanimateSingularPassiveParticiple ; - wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249544 . + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . + ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q192613, wd:Q682111 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterSingularPassiveParticipleForm . - ?neuterSingularPassiveParticipleForm ontolex:representation ?neuterSingularPassiveParticiple ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249544 . + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . + ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q192613, wd:Q682111 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePluralPassiveParticipleForm . - ?femininePluralPassiveParticipleForm ontolex:representation ?femininePluralPassiveParticiple ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249544 . + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q192613, wd:Q682111 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAnimatePluralPassiveParticipleForm . - ?masculineAnimatePluralPassiveParticipleForm ontolex:representation ?masculineAnimatePluralPassiveParticiple ; - wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249544 . + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . + ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q192613, wd:Q682111 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineInanimatePluralPassiveParticipleForm . - ?masculineInanimatePluralPassiveParticipleForm ontolex:representation ?masculineInanimatePluralPassiveParticiple ; - wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q72249544 . + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q192613, wd:Q682111 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterPluralPassiveParticipleForm . - ?neuterPluralPassiveParticipleForm ontolex:representation ?neuterPluralPassiveParticiple ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249544 . + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . + ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q192613, wd:Q682111 . } } diff --git a/src/scribe_data/wikidata/language_data_extraction/portuguese/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/portuguese/adjectives/query_adjectives.sparql index ea23e0ce..016cd416 100644 --- a/src/scribe_data/wikidata/language_data_extraction/portuguese/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/portuguese/adjectives/query_adjectives.sparql @@ -6,10 +6,11 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective ?feminineSingular - ?masculineSingular ?femininePlural + ?masculineSingular ?masculinePlural + WHERE { ?lexeme dct:language wd:Q5146 ; wikibase:lexicalCategory wd:Q34698 ; @@ -21,18 +22,18 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineSingularForm . - ?masculineSingularForm ontolex:representation ?masculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?femininePluralForm . ?femininePluralForm ontolex:representation ?femininePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masculineSingularForm . + ?masculineSingularForm ontolex:representation ?masculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?masculinePluralForm . ?masculinePluralForm ontolex:representation ?masculinePlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/portuguese/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/portuguese/verbs/query_verbs.sparql index c66688f7..98866ce1 100644 --- a/src/scribe_data/wikidata/language_data_extraction/portuguese/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/portuguese/verbs/query_verbs.sparql @@ -6,28 +6,28 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?indicativePresentFirstPersonSingular - ?indicativePresentSecondPersonSingular - ?indicativePresentThirdPersonSingular ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonSingular ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonSingular ?indicativePresentThirdPersonPlural - ?indicativePastPerfectFirstPersonSingular - ?indicativePastPerfectSecondPersonSingular - ?indicativePastPerfectThirdPersonSingular - ?indicativePastPerfectFirstPersonPlural - ?indicativePastPerfectSecondPersonPlural - ?indicativePastPerfectThirdPersonPlural ?indicativePastImperfectFirstPersonSingular - ?indicativePastImperfectSecondPersonSingular - ?indicativePastImperfectThirdPersonSingular ?indicativePastImperfectFirstPersonPlural + ?indicativePastImperfectSecondPersonSingular ?indicativePastImperfectSecondPersonPlural + ?indicativePastImperfectThirdPersonSingular ?indicativePastImperfectThirdPersonPlural + ?indicativePastPerfectFirstPersonSingular + ?indicativePastPerfectFirstPersonPlural + ?indicativePastPerfectSecondPersonSingular + ?indicativePastPerfectSecondPersonPlural + ?indicativePastPerfectThirdPersonSingular + ?indicativePastPerfectThirdPersonPlural ?indicativePluperfectFirstPersonSingular - ?indicativePluperfectSecondPersonSingular - ?indicativePluperfectThirdPersonSingular ?indicativePluperfectFirstPersonPlural + ?indicativePluperfectSecondPersonSingular ?indicativePluperfectSecondPersonPlural + ?indicativePluperfectThirdPersonSingular ?indicativePluperfectThirdPersonPlural WHERE { @@ -52,110 +52,109 @@ WHERE { wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . - ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . - ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . } - # MARK: Past Perfect + # MARK: Past Imperfect OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastPerfectFirstPersonSingularForm . - ?indicativePastPerfectFirstPersonSingularForm ontolex:representation ?indicativePastPerfectFirstPersonSingular ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q64005357 . + ?lexeme ontolex:lexicalForm ?indicativePastImperfectFirstPersonSingularForm . + ?indicativePastImperfectFirstPersonSingularForm ontolex:representation ?indicativePastImperfectFirstPersonSingular ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q12547192 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastPerfectSecondPersonSingularForm . - ?indicativePastPerfectSecondPersonSingularForm ontolex:representation ?indicativePastPerfectSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q64005357 . + ?lexeme ontolex:lexicalForm ?indicativePastImperfectFirstPersonPluralForm . + ?indicativePastImperfectFirstPersonPluralForm ontolex:representation ?indicativePastImperfectFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q12547192 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastPerfectThirdPersonSingularForm . - ?indicativePastPerfectThirdPersonSingularForm ontolex:representation ?indicativePastPerfectThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q64005357 . + ?lexeme ontolex:lexicalForm ?indicativePastImperfectSecondPersonSingularForm . + ?indicativePastImperfectSecondPersonSingularForm ontolex:representation ?indicativePastImperfectSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q12547192 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastPerfectFirstPersonPluralForm . - ?indicativePastPerfectFirstPersonPluralForm ontolex:representation ?indicativePastPerfectFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q64005357 . + ?lexeme ontolex:lexicalForm ?indicativePastImperfectSecondPersonPluralForm . + ?indicativePastImperfectSecondPersonPluralForm ontolex:representation ?indicativePastImperfectSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q12547192 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastPerfectSecondPersonPluralForm . - ?indicativePastPerfectSecondPersonPluralForm ontolex:representation ?indicativePastPerfectSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q64005357 . + ?lexeme ontolex:lexicalForm ?indicativePastImperfectThirdPersonSingularForm . + ?indicativePastImperfectThirdPersonSingularForm ontolex:representation ?indicativePastImperfectThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q12547192 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastPerfectThirdPersonPluralForm . - ?indicativePastPerfectThirdPersonPluralForm ontolex:representation ?indicativePastPerfectThirdPersonPlural ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q64005357 . + ?lexeme ontolex:lexicalForm ?indicativePastImperfectThirdPersonPluralForm . + ?indicativePastImperfectThirdPersonPluralForm ontolex:representation ?indicativePastImperfectThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q12547192 . } - # MARK: Past Imperfect + # MARK: Past Perfect OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastImperfectFirstPersonSingularForm . - ?indicativePastImperfectFirstPersonSingularForm ontolex:representation ?indicativePastImperfectFirstPersonSingular ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q12547192 . + ?lexeme ontolex:lexicalForm ?indicativePastPerfectFirstPersonSingularForm . + ?indicativePastPerfectFirstPersonSingularForm ontolex:representation ?indicativePastPerfectFirstPersonSingular ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q64005357 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastImperfectSecondPersonSingularForm . - ?indicativePastImperfectSecondPersonSingularForm ontolex:representation ?indicativePastImperfectSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q12547192 . + ?lexeme ontolex:lexicalForm ?indicativePastPerfectFirstPersonPluralForm . + ?indicativePastPerfectFirstPersonPluralForm ontolex:representation ?indicativePastPerfectFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q64005357 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastImperfectThirdPersonSingularForm . - ?indicativePastImperfectThirdPersonSingularForm ontolex:representation ?indicativePastImperfectThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q12547192 . + ?lexeme ontolex:lexicalForm ?indicativePastPerfectSecondPersonSingularForm . + ?indicativePastPerfectSecondPersonSingularForm ontolex:representation ?indicativePastPerfectSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q64005357 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastImperfectFirstPersonPluralForm . - ?indicativePastImperfectFirstPersonPluralForm ontolex:representation ?indicativePastImperfectFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q12547192 . + ?lexeme ontolex:lexicalForm ?indicativePastPerfectSecondPersonPluralForm . + ?indicativePastPerfectSecondPersonPluralForm ontolex:representation ?indicativePastPerfectSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q64005357 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastImperfectSecondPersonPluralForm . - ?indicativePastImperfectSecondPersonPluralForm ontolex:representation ?indicativePastImperfectSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q12547192 . + ?lexeme ontolex:lexicalForm ?indicativePastPerfectThirdPersonSingularForm . + ?indicativePastPerfectThirdPersonSingularForm ontolex:representation ?indicativePastPerfectThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q64005357 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePastImperfectThirdPersonPluralForm . - ?indicativePastImperfectThirdPersonPluralForm ontolex:representation ?indicativePastImperfectThirdPersonPlural ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q12547192 . + ?lexeme ontolex:lexicalForm ?indicativePastPerfectThirdPersonPluralForm . + ?indicativePastPerfectThirdPersonPluralForm ontolex:representation ?indicativePastPerfectThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q64005357 . } # MARK: Future Simple @@ -166,30 +165,30 @@ WHERE { wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q623742, wd:Q682111 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePluperfectSecondPersonSingularForm . - ?indicativePluperfectSecondPersonSingularForm ontolex:representation ?indicativePluperfectSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q623742, wd:Q682111 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePluperfectThirdPersonSingularForm . - ?indicativePluperfectThirdPersonSingularForm ontolex:representation ?indicativePluperfectThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q623742, wd:Q682111 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePluperfectFirstPersonPluralForm . ?indicativePluperfectFirstPersonPluralForm ontolex:representation ?indicativePluperfectFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q623742, wd:Q682111 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePluperfectSecondPersonSingularForm . + ?indicativePluperfectSecondPersonSingularForm ontolex:representation ?indicativePluperfectSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q623742, wd:Q682111 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePluperfectSecondPersonPluralForm . ?indicativePluperfectSecondPersonPluralForm ontolex:representation ?indicativePluperfectSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q623742, wd:Q682111 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePluperfectThirdPersonSingularForm . + ?indicativePluperfectThirdPersonSingularForm ontolex:representation ?indicativePluperfectThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q623742, wd:Q682111 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePluperfectThirdPersonPluralForm . ?indicativePluperfectThirdPersonPluralForm ontolex:representation ?indicativePluperfectThirdPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/russian/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/russian/adjectives/query_adjectives.sparql index d5bd7994..919a241a 100644 --- a/src/scribe_data/wikidata/language_data_extraction/russian/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/russian/adjectives/query_adjectives.sparql @@ -5,239 +5,232 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective + ?nominativePlural + ?genitivePlural + ?dativePlural + ?instrumentalPlural + ?prepositionalPlural + ?pluralShort ?nominativeFeminineSingular ?nominativeMasculineSingular ?nominativeNeuterSingular - ?nominativePlural - ?genitiveFeminineSingular ?genitiveMasculineSingular ?genitiveNeuterSingular - ?genitivePlural - ?dativeFeminineSingular ?dativeMasculineSingular ?dativeNeuterSingular - ?dativePlural - - ?accusativeFeminineAnimateSingular - ?accusativeMasculineAnimateSingular - ?accusativeAnimateNeuterSingular - ?accusativeAnimatePlural ?accusativeInanimateSingular ?accusativeInanimatePlural - + ?accusativeAnimatePlural + ?accusativeMasculineAnimateSingular ?instrumentalFeminineSingular ?instrumentalMasculineSingular ?instrumentalNeuterSingular - ?instrumentalPlural - ?prepositionalFeminineSingular ?prepositionalMasculineSingular ?prepositionalNeuterSingular - ?prepositionalPlural - ?feminineSingularShort ?masculineSingularShort ?neuterSingularShort - ?pluralShort + ?accusativeFeminineAnimateSingular + ?accusativeAnimateNeuterSingular WHERE { ?lexeme dct:language wd:Q7737 ; wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . - # MARK: Nominative - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeFeminineSingularForm . - ?nominativeFeminineSingularForm ontolex:representation ?nominativeFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q131105, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeMasculineSingularForm . - ?nominativeMasculineSingularForm ontolex:representation ?nominativeMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q131105, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeNeuterSingularForm . - ?nominativeNeuterSingularForm ontolex:representation ?nominativeNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q131105, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativePluralForm . - ?nominativePluralForm ontolex:representation ?nominativePlural ; - wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . - } - - # MARK: Genitive - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveFeminineSingularForm . - ?genitiveFeminineSingularForm ontolex:representation ?genitiveFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146233, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveMasculineSingularForm . - ?genitiveMasculineSingularForm ontolex:representation ?genitiveMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146233, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveNeuterSingularForm . - ?genitiveNeuterSingularForm ontolex:representation ?genitiveNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q146233, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitivePluralForm . - ?genitivePluralForm ontolex:representation ?genitivePlural ; - wikibase:grammaticalFeature wd:Q146233, wd:Q146786 . - } - - # MARK: Dative - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?dativeFeminineSingularForm . - ?dativeFeminineSingularForm ontolex:representation ?dativeFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q145599, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?dativeMasculineSingularForm . - ?dativeMasculineSingularForm ontolex:representation ?dativeMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q145599, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?dativeNeuterSingularForm . - ?dativeNeuterSingularForm ontolex:representation ?dativeNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q145599, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?dativePluralForm . - ?dativePluralForm ontolex:representation ?dativePlural ; - wikibase:grammaticalFeature wd:Q145599, wd:Q146786 . - } - - # MARK: Accusative - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeFeminineAnimateSingularForm . - ?accusativeFeminineAnimateSingularForm ontolex:representation ?accusativeFeminineAnimateSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q51927507, wd:Q146078, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeMasculineAnimateSingularForm . - ?accusativeMasculineAnimateSingularForm ontolex:representation ?accusativeMasculineAnimateSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q51927507, wd:Q146078, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeAnimateNeuterSingularForm . - ?accusativeAnimateNeuterSingularForm ontolex:representation ?accusativeAnimateNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q51927507, wd:Q146078, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeAnimatePluralForm . - ?accusativeAnimatePluralForm ontolex:representation ?accusativeAnimatePlural ; - wikibase:grammaticalFeature wd:Q51927507, wd:Q146078, wd:Q146786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeInanimateSingularForm . - ?accusativeInanimateSingularForm ontolex:representation ?accusativeInanimateSingular ; - wikibase:grammaticalFeature wd:Q51927539, wd:Q146078, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeInanimatePluralForm . - ?accusativeInanimatePluralForm ontolex:representation ?accusativeInanimatePlural ; - wikibase:grammaticalFeature wd:Q51927539, wd:Q146078, wd:Q146786 . - } - - # MARK: Instrumental - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?instrumentalFeminineSingularForm . - ?instrumentalFeminineSingularForm ontolex:representation ?instrumentalFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q192997, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?instrumentalMasculineSingularForm . - ?instrumentalMasculineSingularForm ontolex:representation ?instrumentalMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q192997, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?instrumentalNeuterSingularForm . - ?instrumentalNeuterSingularForm ontolex:representation ?instrumentalNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q192997, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?instrumentalPluralForm . - ?instrumentalPluralForm ontolex:representation ?instrumentalPlural ; - wikibase:grammaticalFeature wd:Q192997, wd:Q146786 . - } - - # MARK: Prepositional - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?prepositionalFeminineSingularForm . - ?prepositionalFeminineSingularForm ontolex:representation ?prepositionalFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q2114906, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?prepositionalMasculineSingularForm . - ?prepositionalMasculineSingularForm ontolex:representation ?prepositionalMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q2114906, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?prepositionalNeuterSingularForm . - ?prepositionalNeuterSingularForm ontolex:representation ?prepositionalNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q2114906, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?prepositionalPluralForm . - ?prepositionalPluralForm ontolex:representation ?prepositionalPlural ; - wikibase:grammaticalFeature wd:Q2114906, wd:Q146786 . - } - - # MARK: Short - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineSingularShortForm . - ?feminineSingularShortForm ontolex:representation ?feminineSingularShort ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q4239848, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineSingularShortForm . - ?masculineSingularShortForm ontolex:representation ?masculineSingularShort ; - wikibase:grammaticalFeature wd:Q499327, wd:Q4239848, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterSingularShortForm . - ?neuterSingularShortForm ontolex:representation ?neuterSingularShort ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q4239848, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralShortForm . - ?pluralShortForm ontolex:representation ?pluralShort ; - wikibase:grammaticalFeature wd:Q4239848, wd:Q146786 . - } + # MARK: Nominative + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; + wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitivePluralForm . + ?genitivePluralForm ontolex:representation ?genitivePlural ; + wikibase:grammaticalFeature wd:Q146233, wd:Q146786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?dativePluralForm . + ?dativePluralForm ontolex:representation ?dativePlural ; + wikibase:grammaticalFeature wd:Q145599, wd:Q146786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?instrumentalPluralForm . + ?instrumentalPluralForm ontolex:representation ?instrumentalPlural ; + wikibase:grammaticalFeature wd:Q192997, wd:Q146786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?prepositionalPluralForm . + ?prepositionalPluralForm ontolex:representation ?prepositionalPlural ; + wikibase:grammaticalFeature wd:Q2114906, wd:Q146786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralShortForm . + ?pluralShortForm ontolex:representation ?pluralShort ; + wikibase:grammaticalFeature wd:Q4239848, wd:Q146786 . +} + +# MARK: Nominative Singular + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeFeminineSingularForm . + ?nominativeFeminineSingularForm ontolex:representation ?nominativeFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q131105, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeMasculineSingularForm . + ?nominativeMasculineSingularForm ontolex:representation ?nominativeMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q131105, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeNeuterSingularForm . + ?nominativeNeuterSingularForm ontolex:representation ?nominativeNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q131105, wd:Q110786 . +} + +# MARK: Genitive Singular + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveFeminineSingularForm . + ?genitiveFeminineSingularForm ontolex:representation ?genitiveFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146233, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveMasculineSingularForm . + ?genitiveMasculineSingularForm ontolex:representation ?genitiveMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146233, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveNeuterSingularForm . + ?genitiveNeuterSingularForm ontolex:representation ?genitiveNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q146233, wd:Q110786 . +} + +# MARK: Dative Singular + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?dativeFeminineSingularForm . + ?dativeFeminineSingularForm ontolex:representation ?dativeFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q145599, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?dativeMasculineSingularForm . + ?dativeMasculineSingularForm ontolex:representation ?dativeMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q145599, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?dativeNeuterSingularForm . + ?dativeNeuterSingularForm ontolex:representation ?dativeNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q145599, wd:Q110786 . +} + +# MARK: Accusative Singular + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeInanimateSingularForm . + ?accusativeInanimateSingularForm ontolex:representation ?accusativeInanimateSingular ; + wikibase:grammaticalFeature wd:Q51927539, wd:Q146078, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeInanimatePluralForm . + ?accusativeInanimatePluralForm ontolex:representation ?accusativeInanimatePlural ; + wikibase:grammaticalFeature wd:Q51927539, wd:Q146078, wd:Q146786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeAnimatePluralForm . + ?accusativeAnimatePluralForm ontolex:representation ?accusativeAnimatePlural ; + wikibase:grammaticalFeature wd:Q51927507, wd:Q146078, wd:Q146786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeMasculineAnimateSingularForm . + ?accusativeMasculineAnimateSingularForm ontolex:representation ?accusativeMasculineAnimateSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q51927507, wd:Q146078, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?instrumentalFeminineSingularForm . + ?instrumentalFeminineSingularForm ontolex:representation ?instrumentalFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q192997, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?instrumentalMasculineSingularForm . + ?instrumentalMasculineSingularForm ontolex:representation ?instrumentalMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q192997, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?instrumentalNeuterSingularForm . + ?instrumentalNeuterSingularForm ontolex:representation ?instrumentalNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q192997, wd:Q110786 . +} + +# MARK: Prepositional Singular + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?prepositionalFeminineSingularForm . + ?prepositionalFeminineSingularForm ontolex:representation ?prepositionalFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q2114906, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?prepositionalMasculineSingularForm . + ?prepositionalMasculineSingularForm ontolex:representation ?prepositionalMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q2114906, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?prepositionalNeuterSingularForm . + ?prepositionalNeuterSingularForm ontolex:representation ?prepositionalNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q2114906, wd:Q110786 . +} + +# MARK: Short Singular + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?feminineSingularShortForm . + ?feminineSingularShortForm ontolex:representation ?feminineSingularShort ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q4239848, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?masculineSingularShortForm . + ?masculineSingularShortForm ontolex:representation ?masculineSingularShort ; + wikibase:grammaticalFeature wd:Q499327, wd:Q4239848, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?neuterSingularShortForm . + ?neuterSingularShortForm ontolex:representation ?neuterSingularShort ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q4239848, wd:Q110786 . +} +OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeFeminineAnimateSingularForm . + ?accusativeFeminineAnimateSingularForm ontolex:representation ?accusativeFeminineAnimateSingular ; + wikibase:grammaticalFeature wd:Q146078, wd:Q1775415, wd:Q51927507, wd:Q110786 . +} + +OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeAnimateNeuterSingularForm . + ?accusativeAnimateNeuterSingularForm ontolex:representation ?accusativeAnimateNeuterSingular ; + wikibase:grammaticalFeature wd:Q146078, wd:Q51927507, wd:Q1775461, wd:Q110786 . +} } diff --git a/src/scribe_data/wikidata/language_data_extraction/russian/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/russian/verbs/query_verbs.sparql index 76edcb08..21c407cc 100644 --- a/src/scribe_data/wikidata/language_data_extraction/russian/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/russian/verbs/query_verbs.sparql @@ -5,16 +5,17 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?indicativePresentFirstPersonSingular - ?indicativePresentSecondPersonSingular - ?indicativePresentThirdPersonSingular - ?indicativePresentFirstPersonPlural - ?indicativePresentSecondPersonPlural - ?indicativePresentThirdPersonPlural ?feminineIndicativePast ?masculineIndicativePast ?neuterIndicativePast ?indicativePastPlural + ?indicativePresentFirstPersonSingular + ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonSingular + ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonSingular + ?indicativePresentThirdPersonPlural + WHERE { ?lexeme dct:language wd:Q7737 ; @@ -26,44 +27,6 @@ WHERE { ?infinitiveForm ontolex:representation ?infinitive ; wikibase:grammaticalFeature wd:Q179230 . - # MARK: Present - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . - ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . - ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . - ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . - ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . - ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . - ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . - } - # MARK: Past Feminine OPTIONAL { @@ -95,4 +58,43 @@ WHERE { ?indicativePastPluralForm ontolex:representation ?indicativePastPlural ; wikibase:grammaticalFeature wd:Q146786, wd:Q682111, wd:Q1994301 . } + + # MARK: Present + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . + ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . + ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . + } + + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . + ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . + ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . + } } diff --git a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_1.sparql b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_1.sparql index 07e33cf6..6f2ec090 100644 --- a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_1.sparql @@ -7,9 +7,9 @@ SELECT ?adjective ?nominativeFeminineSingularPositive ?nominativeMasculineSingularPositive - ?nominativeNeuterSingularPositive ?nominativeMasculinePersonalPluralPositive ?nominativeNotMasculinePersonalPluralPositive + ?nominativeNeuterSingularPositive WHERE { ?lexeme dct:language wd:Q9058; @@ -30,11 +30,6 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q131105, wd:Q110786, wd:Q3482678 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeNeuterSingularPositiveForm . - ?nominativeNeuterSingularPositiveForm ontolex:representation ?nominativeNeuterSingularPositive ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q131105, wd:Q110786, wd:Q3482678 . - } OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeMasculinePersonalPluralPositiveForm . @@ -47,4 +42,10 @@ WHERE { ?nominativeNotMasculinePersonalPluralPositiveForm ontolex:representation ?nominativeNotMasculinePersonalPluralPositive ; wikibase:grammaticalFeature wd:Q54152717, wd:Q131105, wd:Q146786, wd:Q3482678 . } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeNeuterSingularPositiveForm . + ?nominativeNeuterSingularPositiveForm ontolex:representation ?nominativeNeuterSingularPositive ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q131105, wd:Q110786, wd:Q3482678 . + } } diff --git a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_2.sparql b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_2.sparql index abbc667c..5b9c2bc5 100644 --- a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_2.sparql @@ -5,10 +5,11 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective + ?genitivePluralPositive ?genitiveFeminineSingularPositive ?genitiveMasculineSingularPositive ?genitiveNeuterSingularPositive - ?genitivePluralPositive + WHERE { ?lexeme dct:language wd:Q9058; @@ -17,6 +18,12 @@ WHERE { # MARK: Genitive + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitivePluralPositiveForm . + ?genitivePluralPositiveForm ontolex:representation ?genitivePluralPositive ; + wikibase:grammaticalFeature wd:Q146233, wd:Q146786, wd:Q3482678 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?genitiveFeminineSingularPositiveForm . ?genitiveFeminineSingularPositiveForm ontolex:representation ?genitiveFeminineSingularPositive ; @@ -34,10 +41,4 @@ WHERE { ?genitiveNeuterSingularPositiveForm ontolex:representation ?genitiveNeuterSingularPositive ; wikibase:grammaticalFeature wd:Q1775461, wd:Q146233, wd:Q110786, wd:Q3482678 . } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitivePluralPositiveForm . - ?genitivePluralPositiveForm ontolex:representation ?genitivePluralPositive ; - wikibase:grammaticalFeature wd:Q146233, wd:Q146786, wd:Q3482678 . - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_3.sparql b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_3.sparql index a1b8e1dc..dd975f9c 100644 --- a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_3.sparql @@ -5,10 +5,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective + ?dativePluralPositive ?dativeFeminineSingularPositive ?dativeMasculineSingularPositive ?dativeNeuterSingularPositive - ?dativePluralPositive WHERE { ?lexeme dct:language wd:Q9058; @@ -17,6 +17,12 @@ WHERE { # MARK: Dative + OPTIONAL { + ?lexeme ontolex:lexicalForm ?dativePluralPositiveForm . + ?dativePluralPositiveForm ontolex:representation ?dativePluralPositive ; + wikibase:grammaticalFeature wd:Q145599, wd:Q146786, wd:Q3482678 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?dativeFeminineSingularPositiveForm . ?dativeFeminineSingularPositiveForm ontolex:representation ?dativeFeminineSingularPositive ; @@ -34,10 +40,4 @@ WHERE { ?dativeNeuterSingularPositiveForm ontolex:representation ?dativeNeuterSingularPositive ; wikibase:grammaticalFeature wd:Q1775461, wd:Q145599, wd:Q110786, wd:Q3482678 . } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?dativePluralPositiveForm . - ?dativePluralPositiveForm ontolex:representation ?dativePluralPositive ; - wikibase:grammaticalFeature wd:Q145599, wd:Q146786, wd:Q3482678 . - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_4.sparql b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_4.sparql index 91ea51b0..93a6d7dd 100644 --- a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_4.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_4.sparql @@ -6,11 +6,11 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective ?accusativeFeminineSingularPositive - ?accusativeMasculineAnimateSingularPositive ?accusativeMasculineInanimateSingularPositive - ?accusativeNeuterSingularPositive + ?accusativeMasculineAnimateSingularPositive ?accusativeMasculinePersonalPluralPositive ?accusativeNotMasculinePersonalPluralPositive + ?accusativeNeuterSingularPositive WHERE { ?lexeme dct:language wd:Q9058; @@ -25,12 +25,6 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q146078, wd:Q110786, wd:Q3482678 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeMasculineAnimateSingularPositiveForm . - ?accusativeMasculineAnimateSingularPositiveForm ontolex:representation ?accusativeMasculineAnimateSingularPositive ; - wikibase:grammaticalFeature wd:Q54020116, wd:Q146078, wd:Q110786, wd:Q3482678 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativeMasculineInanimateSingularPositiveForm . ?accusativeMasculineInanimateSingularPositiveForm ontolex:representation ?accusativeMasculineInanimateSingularPositive ; @@ -38,9 +32,9 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeNeuterSingularPositiveForm . - ?accusativeNeuterSingularPositiveForm ontolex:representation ?accusativeNeuterSingularPositive ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q146078, wd:Q110786, wd:Q3482678 . + ?lexeme ontolex:lexicalForm ?accusativeMasculineAnimateSingularPositiveForm . + ?accusativeMasculineAnimateSingularPositiveForm ontolex:representation ?accusativeMasculineAnimateSingularPositive ; + wikibase:grammaticalFeature wd:Q54020116, wd:Q146078, wd:Q110786, wd:Q3482678 . } OPTIONAL { @@ -54,4 +48,10 @@ WHERE { ?accusativeNotMasculinePersonalPluralPositiveForm ontolex:representation ?accusativeNotMasculinePersonalPluralPositive ; wikibase:grammaticalFeature wd:Q54152717, wd:Q146078, wd:Q146786, wd:Q3482678 . } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeNeuterSingularPositiveForm . + ?accusativeNeuterSingularPositiveForm ontolex:representation ?accusativeNeuterSingularPositive ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q146078, wd:Q110786, wd:Q3482678 . + } } diff --git a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_5.sparql b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_5.sparql index d404c218..69f0fdb8 100644 --- a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_5.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_5.sparql @@ -5,10 +5,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective + ?locativePluralPositive ?locativeFeminineSingularPositive ?locativeMasculineSingularPositive ?locativeNeuterSingularPositive - ?locativePluralPositive WHERE { ?lexeme dct:language wd:Q9058; @@ -17,6 +17,12 @@ WHERE { # MARK: Locative + OPTIONAL { + ?lexeme ontolex:lexicalForm ?locativePluralPositiveForm . + ?locativePluralPositiveForm ontolex:representation ?locativePluralPositive ; + wikibase:grammaticalFeature wd:Q202142, wd:Q146786, wd:Q3482678 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?locativeFeminineSingularPositiveForm . ?locativeFeminineSingularPositiveForm ontolex:representation ?locativeFeminineSingularPositive ; @@ -34,10 +40,4 @@ WHERE { ?locativeNeuterSingularPositiveForm ontolex:representation ?locativeNeuterSingularPositive ; wikibase:grammaticalFeature wd:Q1775461, wd:Q202142, wd:Q110786, wd:Q3482678 . } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?locativePluralPositiveForm . - ?locativePluralPositiveForm ontolex:representation ?locativePluralPositive ; - wikibase:grammaticalFeature wd:Q202142, wd:Q146786, wd:Q3482678 . - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_6.sparql b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_6.sparql index f7d029f3..9fd29a34 100644 --- a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_6.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_6.sparql @@ -5,10 +5,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective + ?instrumentalPluralPositive ?instrumentalFeminineSingularPositive ?instrumentalMasculineSingularPositive ?instrumentalNeuterSingularPositive - ?instrumentalPluralPositive WHERE { ?lexeme dct:language wd:Q9058; @@ -17,6 +17,12 @@ WHERE { # MARK: Instrumental + OPTIONAL { + ?lexeme ontolex:lexicalForm ?instrumentalPluralPositiveForm . + ?instrumentalPluralPositiveForm ontolex:representation ?instrumentalPluralPositive ; + wikibase:grammaticalFeature wd:Q192997, wd:Q146786, wd:Q3482678 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?instrumentalFeminineSingularPositiveForm . ?instrumentalFeminineSingularPositiveForm ontolex:representation ?instrumentalFeminineSingularPositive ; @@ -34,10 +40,4 @@ WHERE { ?instrumentalNeuterSingularPositiveForm ontolex:representation ?instrumentalNeuterSingularPositive ; wikibase:grammaticalFeature wd:Q1775461, wd:Q192997, wd:Q110786, wd:Q3482678 . } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?instrumentalPluralPositiveForm . - ?instrumentalPluralPositiveForm ontolex:representation ?instrumentalPluralPositive ; - wikibase:grammaticalFeature wd:Q192997, wd:Q146786, wd:Q3482678 . - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/adjectives/query_adjectives.sparql index 72a035d5..abfb6404 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/adjectives/query_adjectives.sparql @@ -6,12 +6,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective ?feminineSingular - ?feminineSingularSuperlative ?femininePlural - ?femininePluralSuperlative ?masculineSingular - ?masculineSingularSuperlative ?masculinePlural + ?feminineSingularSuperlative + ?femininePluralSuperlative + ?masculineSingularSuperlative ?masculinePluralSuperlative WHERE { @@ -30,11 +30,6 @@ WHERE { } } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineSingularSuperlativeForm . - ?feminineSingularSuperlativeForm ontolex:representation ?feminineSingularSuperlative ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q1817208 . - } OPTIONAL { ?lexeme ontolex:lexicalForm ?femininePluralForm . @@ -45,13 +40,6 @@ WHERE { } } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePluralSuperlativeForm . - ?femininePluralSuperlativeForm ontolex:representation ?femininePluralSuperlative ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q1817208 . - } - - # MARK: Masculine OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineSingularForm . @@ -62,12 +50,6 @@ WHERE { } } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineSingularSuperlativeForm . - ?masculineSingularSuperlativeForm ontolex:representation ?masculineSingularSuperlative ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1817208 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?masculinePluralForm . ?masculinePluralForm ontolex:representation ?masculinePlural ; @@ -77,6 +59,29 @@ WHERE { } } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?feminineSingularSuperlativeForm . + ?feminineSingularSuperlativeForm ontolex:representation ?feminineSingularSuperlative ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q1817208 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?femininePluralSuperlativeForm . + ?femininePluralSuperlativeForm ontolex:representation ?femininePluralSuperlative ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q1817208 . + } + + # MARK: Masculine + + + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masculineSingularSuperlativeForm . + ?masculineSingularSuperlativeForm ontolex:representation ?masculineSingularSuperlative ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1817208 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?masculinePluralSuperlativeForm . ?masculinePluralSuperlativeForm ontolex:representation ?masculinePluralSuperlative ; diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/nouns/query_nouns.sparql index ec40746f..96b65c46 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/nouns/query_nouns.sparql @@ -6,11 +6,11 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?singular ?plural - ?gender - ?masculineSingular - ?masculinePlural ?feminineSingular ?femininePlural + ?masculineSingular + ?masculinePlural + ?gender WHERE { ?lexeme dct:language wd:Q1321 ; @@ -27,6 +27,19 @@ WHERE { # MARK: Gender(s) + # MARK: feminine singular and plural forms. + OPTIONAL { + ?lexeme ontolex:lexicalForm ?feminineSingularForm . + ?feminineSingularForm ontolex:representation ?feminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?femininePluralForm . + ?femininePluralForm ontolex:representation ?femininePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . + } + OPTIONAL { ?lexeme wdt:P5185 ?nounGender . } @@ -46,19 +59,6 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q146786 . } - # MARK: feminine singular and plural forms. - OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineSingularForm . - ?feminineSingularForm ontolex:representation ?feminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePluralForm . - ?femininePluralForm ontolex:representation ?femininePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . - } - SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". ?nounGender rdfs:label ?gender . diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/proper_nouns/query_proper_nouns.sparql index 5c98d4bb..9bd51165 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/proper_nouns/query_proper_nouns.sparql @@ -6,11 +6,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?singular ?plural - ?gender - ?masculineSingular - ?masculinePlural ?feminineSingular ?femininePlural + ?masculineSingular + ?masculinePlural + ?gender + WHERE { ?lexeme dct:language wd:Q1321 ; @@ -25,6 +26,24 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 . } + + + + # MARK: feminine singular and plural forms. + OPTIONAL { + ?lexeme ontolex:lexicalForm ?feminineSingularForm . + ?feminineSingularForm ontolex:representation ?feminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 . + } + + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?femininePluralForm . + ?femininePluralForm ontolex:representation ?femininePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . + } + + # MARK: Gender(s) OPTIONAL { @@ -45,20 +64,6 @@ WHERE { ?masculinePluralForm ontolex:representation ?masculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786 . } - - # MARK: feminine singular and plural forms. - OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineSingularForm . - ?feminineSingularForm ontolex:representation ?feminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePluralForm . - ?femininePluralForm ontolex:representation ?femininePlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . - } - SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". ?nounGender rdfs:label ?gender . diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_1.sparql index 6898dbd2..d013ddba 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_1.sparql @@ -6,13 +6,14 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?indicativePresentFirstPersonSingular - ?indicativePresentSecondPersonSingular - ?indicativePresentThirdPersonSingular ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonSingular ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonSingular ?indicativePresentThirdPersonPlural + WHERE { ?lexeme dct:language wd:Q1321 ; wikibase:lexicalCategory wd:Q24905 . @@ -30,30 +31,30 @@ WHERE { wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . - ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . - ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_2.sparql index 15ef7a1c..d1503140 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_2.sparql @@ -6,10 +6,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?preteriteFirstPersonSingular - ?preteriteSecondPersonSingular - ?preteriteThirdPersonSingular ?preteriteFirstPersonPlural + ?preteriteSecondPersonSingular ?preteriteSecondPersonPlural + ?preteriteThirdPersonSingular ?preteriteThirdPersonPlural WHERE { @@ -28,6 +28,11 @@ WHERE { ?preteriteFirstPersonSingularForm ontolex:representation ?preteriteFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q442485 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?preteriteFirstPersonPluralForm . + ?preteriteFirstPersonPluralForm ontolex:representation ?preteriteFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q442485 . + } OPTIONAL { ?lexeme ontolex:lexicalForm ?preteriteSecondPersonSingularForm . @@ -35,24 +40,18 @@ WHERE { wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q442485 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?preteriteThirdPersonSingularForm . - ?preteriteThirdPersonSingularForm ontolex:representation ?preteriteThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q442485 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?preteriteFirstPersonPluralForm . - ?preteriteFirstPersonPluralForm ontolex:representation ?preteriteFirstPersonPlural ; - wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q442485 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?preteriteSecondPersonPluralForm . ?preteriteSecondPersonPluralForm ontolex:representation ?preteriteSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q442485 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?preteriteThirdPersonSingularForm . + ?preteriteThirdPersonSingularForm ontolex:representation ?preteriteThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q442485 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?preteriteThirdPersonPluralForm . ?preteriteThirdPersonPluralForm ontolex:representation ?preteriteThirdPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_3.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_3.sparql index 514841b7..44043a66 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_3.sparql @@ -6,10 +6,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive ?pastImperfectFirstPersonSingular - ?pastImperfectSecondPersonSingular - ?pastImperfectThirdPersonSingular ?pastImperfectFirstPersonPlural + ?pastImperfectSecondPersonSingular ?pastImperfectSecondPersonPlural + ?pastImperfectThirdPersonSingular ?pastImperfectThirdPersonPlural WHERE { @@ -29,29 +29,28 @@ WHERE { wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q12547192 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastImperfectSecondPersonSingularForm . - ?pastImperfectSecondPersonSingularForm ontolex:representation ?pastImperfectSecondPersonSingular ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q12547192 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastImperfectThirdPersonSingularForm . - ?pastImperfectThirdPersonSingularForm ontolex:representation ?pastImperfectThirdPersonSingular ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q12547192 . - } - OPTIONAL { ?lexeme ontolex:lexicalForm ?pastImperfectFirstPersonPluralForm . ?pastImperfectFirstPersonPluralForm ontolex:representation ?pastImperfectFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q12547192 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastImperfectSecondPersonSingularForm . + ?pastImperfectSecondPersonSingularForm ontolex:representation ?pastImperfectSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q12547192 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?pastImperfectSecondPersonPluralForm . ?pastImperfectSecondPersonPluralForm ontolex:representation ?pastImperfectSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q12547192 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastImperfectThirdPersonSingularForm . + ?pastImperfectThirdPersonSingularForm ontolex:representation ?pastImperfectThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q12547192 . + } OPTIONAL { ?lexeme ontolex:lexicalForm ?pastImperfectThirdPersonPluralForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/swedish/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/swedish/nouns/query_nouns.sparql index d4920631..cfe389a8 100644 --- a/src/scribe_data/wikidata/language_data_extraction/swedish/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/swedish/nouns/query_nouns.sparql @@ -6,14 +6,15 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?nominativeIndefiniteSingular ?nominativeIndefinitePlural - ?genitiveIndefiniteSingular - ?genitiveIndefinitePlural ?nominativeDefiniteSingular ?nominativeDefinitePlural + ?genitiveIndefiniteSingular + ?genitiveIndefinitePlural ?genitiveDefiniteSingular ?genitiveDefinitePlural ?gender + WHERE { ?lexeme dct:language wd:Q9027 ; wikibase:lexicalCategory wd:Q1084 . @@ -32,19 +33,6 @@ WHERE { wikibase:grammaticalFeature wd:Q53997857, wd:Q131105, wd:Q146786 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveIndefiniteSingularForm . - ?genitiveIndefiniteSingularForm ontolex:representation ?genitiveIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q53997857, wd:Q146233, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveIndefinitePluralForm . - ?genitiveIndefinitePluralForm ontolex:representation ?genitiveIndefinitePlural ; - wikibase:grammaticalFeature wd:Q53997857, wd:Q146233, wd:Q146786 . - } - - # MARK: Definite OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeDefiniteSingularForm . @@ -52,12 +40,27 @@ WHERE { wikibase:grammaticalFeature wd:Q53997851, wd:Q131105, wd:Q110786 . } + # MARK: Definite + + OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeDefinitePluralForm . ?nominativeDefinitePluralForm ontolex:representation ?nominativeDefinitePlural ; wikibase:grammaticalFeature wd:Q53997851, wd:Q131105, wd:Q146786 . } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveIndefiniteSingularForm . + ?genitiveIndefiniteSingularForm ontolex:representation ?genitiveIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q53997857, wd:Q146233, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveIndefinitePluralForm . + ?genitiveIndefinitePluralForm ontolex:representation ?genitiveIndefinitePlural ; + wikibase:grammaticalFeature wd:Q53997857, wd:Q146233, wd:Q146786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?genitiveDefiniteSingularForm . ?genitiveDefiniteSingularForm ontolex:representation ?genitiveDefiniteSingular ; diff --git a/src/scribe_data/wikidata/language_data_extraction/swedish/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/swedish/verbs/query_verbs.sparql index f65f45b9..8100f44d 100644 --- a/src/scribe_data/wikidata/language_data_extraction/swedish/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/swedish/verbs/query_verbs.sparql @@ -4,77 +4,76 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?activeInfinitive ?imperative ?activeSupine - ?activePresent ?activePreterite - ?passiveInfinitive ?passiveSupine - ?passivePresent ?passivePreterite + ?imperative + ?passiveInfinitive + ?passivePresent + ?passivePreterite + ?passiveSupine + ?activeInfinitive + ?activePresent + ?activePreterite + ?activeSupine WHERE { ?lexeme dct:language wd:Q9027 ; wikibase:lexicalCategory wd:Q24905 . - - # MARK: Active Voice - - # Infinitive - ?lexeme ontolex:lexicalForm ?activeInfinitiveForm . - ?activeInfinitiveForm ontolex:representation ?activeInfinitive ; - wikibase:grammaticalFeature wd:Q1317831, wd:Q179230 . - - # Imperative - OPTIONAL { +# Imperative +OPTIONAL { ?lexeme ontolex:lexicalForm ?imperativeForm . ?imperativeForm ontolex:representation ?imperative ; - wikibase:grammaticalFeature wd:Q22716 . - } - - # Supine - OPTIONAL { - ?lexeme ontolex:lexicalForm ?activeSupineForm . - ?activeSupineForm ontolex:representation ?activeSupine ; - wikibase:grammaticalFeature wd:Q1317831, wd:Q548470 . - } - - # Present - OPTIONAL { - ?lexeme ontolex:lexicalForm ?activePresentForm . - ?activePresentForm ontolex:representation ?activePresent ; - wikibase:grammaticalFeature wd:Q1317831, wd:Q192613 . - } - - # Preterite - OPTIONAL { - ?lexeme ontolex:lexicalForm ?activePreteriteForm . - ?activePreteriteForm ontolex:representation ?activePreterite ; - wikibase:grammaticalFeature wd:Q1317831, wd:Q442485 . - } - - # MARK: Passive Voice + wikibase:grammaticalFeature wd:Q22716 . +} - # Infinitive - OPTIONAL { +# Passive Infinitive +OPTIONAL { ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . ?passiveInfinitiveForm ontolex:representation ?passiveInfinitive ; - wikibase:grammaticalFeature wd:Q1194697, wd:Q179230 . - } - - # Supine - OPTIONAL { - ?lexeme ontolex:lexicalForm ?passiveSupineForm . - ?passiveSupineForm ontolex:representation ?passiveSupine ; - wikibase:grammaticalFeature wd:Q1194697, wd:Q548470 . - } + wikibase:grammaticalFeature wd:Q1194697, wd:Q179230 . +} - # Present - OPTIONAL { +# Passive Present +OPTIONAL { ?lexeme ontolex:lexicalForm ?passivePresentForm . ?passivePresentForm ontolex:representation ?passivePresent ; - wikibase:grammaticalFeature wd:Q1194697, wd:Q192613 . - } + wikibase:grammaticalFeature wd:Q1194697, wd:Q192613 . +} - # Preterite - OPTIONAL { +# Passive Preterite +OPTIONAL { ?lexeme ontolex:lexicalForm ?passivePreteriteForm . ?passivePreteriteForm ontolex:representation ?passivePreterite ; - wikibase:grammaticalFeature wd:Q1194697, wd:Q442485 . - } + wikibase:grammaticalFeature wd:Q1194697, wd:Q442485 . +} + +# Passive Supine +OPTIONAL { + ?lexeme ontolex:lexicalForm ?passiveSupineForm . + ?passiveSupineForm ontolex:representation ?passiveSupine ; + wikibase:grammaticalFeature wd:Q1194697, wd:Q548470 . +} + +# Active Infinitive +?lexeme ontolex:lexicalForm ?activeInfinitiveForm . +?activeInfinitiveForm ontolex:representation ?activeInfinitive ; + wikibase:grammaticalFeature wd:Q1317831, wd:Q179230 . + +# Active Present +OPTIONAL { + ?lexeme ontolex:lexicalForm ?activePresentForm . + ?activePresentForm ontolex:representation ?activePresent ; + wikibase:grammaticalFeature wd:Q1317831, wd:Q192613 . +} + +# Active Preterite +OPTIONAL { + ?lexeme ontolex:lexicalForm ?activePreteriteForm . + ?activePreteriteForm ontolex:representation ?activePreterite ; + wikibase:grammaticalFeature wd:Q1317831, wd:Q442485 . +} + +# Active Supine +OPTIONAL { + ?lexeme ontolex:lexicalForm ?activeSupineForm . + ?activeSupineForm ontolex:representation ?activeSupine ; + wikibase:grammaticalFeature wd:Q1317831, wd:Q548470 . } diff --git a/src/scribe_data/wikidata/language_data_extraction/ukrainian/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/ukrainian/adjectives/query_adjectives.sparql index 1251289e..9ba9597e 100644 --- a/src/scribe_data/wikidata/language_data_extraction/ukrainian/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/ukrainian/adjectives/query_adjectives.sparql @@ -5,34 +5,29 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective + ?comparative + ?superlative + ?nominativePlural ?nominativeFeminineSingular ?nominativeMasculineSingular ?nominativeNeuterSingular - ?nominativePlural - ?comparative - ?superlative WHERE { ?lexeme dct:language wd:Q8798 ; wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . - OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeFeminineSingularForm . - ?nominativeFeminineSingularForm ontolex:representation ?nominativeFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q131105 . - } OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeMasculineSingularForm . - ?nominativeMasculineSingularForm ontolex:representation ?nominativeMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q131105 . + ?lexeme ontolex:lexicalForm ?comparativeForm . + ?comparativeForm ontolex:representation ?comparative ; + wikibase:grammaticalFeature wd:Q14169499 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeNeuterSingularForm . - ?nominativeNeuterSingularForm ontolex:representation ?nominativeNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q131105 . + ?lexeme ontolex:lexicalForm ?superlativeForm . + ?superlativeForm ontolex:representation ?superlative ; + wikibase:grammaticalFeature wd:Q1817208 . } OPTIONAL { @@ -42,14 +37,20 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?comparativeForm . - ?comparativeForm ontolex:representation ?comparative ; - wikibase:grammaticalFeature wd:Q14169499 . + ?lexeme ontolex:lexicalForm ?nominativeFeminineSingularForm . + ?nominativeFeminineSingularForm ontolex:representation ?nominativeFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q131105 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?superlativeForm . - ?superlativeForm ontolex:representation ?superlative ; - wikibase:grammaticalFeature wd:Q1817208 . + ?lexeme ontolex:lexicalForm ?nominativeMasculineSingularForm . + ?nominativeMasculineSingularForm ontolex:representation ?nominativeMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q131105 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeNeuterSingularForm . + ?nominativeNeuterSingularForm ontolex:representation ?nominativeNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q131105 . } } From 42386b336ad83012cf601ea65e57f429ebdc8a45 Mon Sep 17 00:00:00 2001 From: Andrew Tavis McAllister Date: Sat, 9 Nov 2024 20:47:47 +0100 Subject: [PATCH 4/4] Update marks across query set and remove unneeded queries --- .../scribe_data/wikidata/query_profanity.rst | 4 +- src/scribe_data/check/check_query_forms.py | 30 +- .../arabic/adjectives/query_adjectives.sparql | 15 +- .../arabic/nouns/query_nouns.sparql | 36 +- .../arabic/verbs/query_verbs_1.sparql | 7 +- .../arabic/verbs/query_verbs_2.sparql | 5 +- .../arabic/verbs/query_verbs_3.sparql | 54 --- .../bengali/nouns/query_nouns.sparql | 2 +- .../postpositions/query_postpositions.sparql | 2 +- .../prepositions/query_prepositions.sparql | 2 +- .../proper_nouns/query_proper_nouns.sparql | 2 +- .../prepositions/query_prepositions.sparql | 2 +- .../czech/verbs/query_verbs_1.sparql | 59 ++- .../czech/verbs/query_verbs_2.sparql | 15 +- .../dagbani/adverbs/query_adverbs.sparql | 5 - .../dagbani/nouns/query_nouns.sparql | 2 + .../adjectives/query_adjectives_2.sparql | 17 +- .../adjectives/query_adjectives_3.sparql | 7 + .../danish/nouns/query_nouns_1.sparql | 29 +- .../danish/nouns/query_nouns_2.sparql | 25 +- .../danish/verbs/query_verbs.sparql | 28 +- .../english/verbs/query_verbs.sparql | 3 - .../esperanto/nouns/query_nouns.sparql | 9 +- .../proper_nouns/query_proper_nouns.sparql | 8 +- .../adjectives/query_adjectives_3.sparql | 2 - .../estonian/adverbs/query_adverbs_2.sparql | 2 - .../postpositions/query_postpositions.sparql | 2 +- .../french/verbs/query_verbs_1.sparql | 12 +- .../french/verbs/query_verbs_2.sparql | 12 +- .../prepositions/query_prepositions.sparql | 2 +- .../german/verbs/query_verbs_1.sparql | 9 +- .../german/verbs/query_verbs_2.sparql | 9 +- .../greek/verbs/query_verbs.sparql | 9 +- .../hausa/adjectives/query_adjectives.sparql | 5 + .../hausa/nouns/query_nouns.sparql | 1 - .../proper_nouns/query_proper_nouns.sparql | 1 - .../hausa/verbs/query_verbs.sparql | 1 - .../hebrew/adjectives/query_adjectives.sparql | 1 - .../hebrew/verbs/query_verbs_3.sparql | 7 +- .../hebrew/verbs/query_verbs_4.sparql | 4 + .../hindi/adjectives/query_adjectives.sparql | 6 +- .../hindustani/hindi/verbs/query_verbs.sparql | 3 - .../urdu/adjectives/query_adjectives.sparql | 4 +- .../italian/verbs/query_verbs_1.sparql | 1 - .../italian/verbs/query_verbs_3.sparql | 1 - .../prepositions/query_prepositions.sparql | 1 - .../bokm\303\245l/verbs/query_verbs_1.sparql" | 22 +- .../bokm\303\245l/verbs/query_verbs_2.sparql" | 12 +- .../adjectives/query_adjectives.sparql | 1 - .../proper_nouns/query_proper_nouns.sparql | 1 - .../nynorsk/verbs/query_verbs.sparql | 3 - .../persian/verbs/query_verbs_4.sparql | 2 - .../polish/verbs/query_verbs.sparql | 11 +- .../adjectives/query_adjectives.sparql | 5 +- .../portuguese/verbs/query_verbs.sparql | 8 +- .../adjectives/query_adjectives.sparql | 392 +++++++++--------- .../prepositions/query_prepositions.sparql | 2 +- .../russian/verbs/query_verbs.sparql | 5 +- .../sami/northern/nouns/query_nouns.sparql | 6 + .../slovak/adjectives/query_adjectives.sparql | 13 - .../adjectives/query_adjectives_1.sparql | 1 - .../adjectives/query_adjectives_2.sparql | 1 - .../adjectives/query_adjectives.sparql | 7 +- .../spanish/nouns/query_nouns.sparql | 20 +- .../proper_nouns/query_proper_nouns.sparql | 24 +- .../spanish/verbs/query_verbs_1.sparql | 10 +- .../spanish/verbs/query_verbs_2.sparql | 8 +- .../spanish/verbs/query_verbs_3.sparql | 8 +- .../swedish/nouns/query_nouns.sparql | 11 +- .../swedish/verbs/query_verbs.sparql | 109 ++--- .../adjectives/query_adjectives.sparql | 7 + .../prepositions/query_prepositions.sparql | 3 +- .../wikidata/query_profanity.sparql | 4 +- 73 files changed, 519 insertions(+), 640 deletions(-) delete mode 100644 src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_3.sparql delete mode 100644 src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives.sparql diff --git a/docs/source/scribe_data/wikidata/query_profanity.rst b/docs/source/scribe_data/wikidata/query_profanity.rst index a6c2f198..41dc3688 100644 --- a/docs/source/scribe_data/wikidata/query_profanity.rst +++ b/docs/source/scribe_data/wikidata/query_profanity.rst @@ -13,8 +13,8 @@ Queries all profane words from a given language to be removed from autosuggest o WHERE { ?lexemeId dct:language wd:LANGUAGE_QID; # replace language qid here - wikibase:lemma ?lemma; - ontolex:sense ?sense. + wikibase:lemma ?lemma; + ontolex:sense ?sense. VALUES ?filter { wd:Q8102 diff --git a/src/scribe_data/check/check_query_forms.py b/src/scribe_data/check/check_query_forms.py index 3c883114..8e4fc1f3 100644 --- a/src/scribe_data/check/check_query_forms.py +++ b/src/scribe_data/check/check_query_forms.py @@ -29,8 +29,8 @@ from scribe_data.utils import ( LANGUAGE_DATA_EXTRACTION_DIR, - lexeme_form_metadata, data_type_metadata, + lexeme_form_metadata, ) lexeme_form_qid_order = [] @@ -387,12 +387,15 @@ def check_forms_order(query_text): otherwise a boolean indicating that the order matches. """ select_pattern = r"SELECT\s+(.*?)\s+WHERE" + # Extracting the variables from the SELECT statement. if select_match := re.search(select_pattern, query_text, flags=re.DOTALL): select_vars = re.findall(r"\?(\w+)", select_match[1]) + # Hardcoded labels provided by the labeling service. labeling_service_cols = ["case", "gender", "auxiliaryVerb"] select_vars = select_vars[2:] + # Split each column label into components. split_vars = [] for col in set(select_vars) - set(labeling_service_cols): @@ -404,14 +407,14 @@ def check_forms_order(query_text): temp_component += component.capitalize() # Append valid components in lexeme_form_labels_order. - if index + 1 != len(components): - if ( - temp_component.lower() in map(str.lower, lexeme_form_labels_order) - and temp_component + components[index + 1] - not in lexeme_form_labels_order - ): - valid_components.append(temp_component) - temp_component = "" # Reset temp component. + if index + 1 != len(components) and ( + temp_component.lower() in map(str.lower, lexeme_form_labels_order) + and temp_component + components[index + 1] + not in lexeme_form_labels_order + ): + valid_components.append(temp_component) + temp_component = "" + if temp_component: valid_components.append(temp_component) @@ -433,7 +436,7 @@ def compare_key(components): sorted_columns = [] for length in sorted(grouped_columns.keys()): sorted_group = sorted(grouped_columns[length], key=compare_key) - sorted_columns.extend("".join(comp for comp in col) for col in sorted_group) + sorted_columns.extend("".join(col) for col in sorted_group) # Append labeling service columns to the end. sorted_columns.extend( @@ -449,12 +452,13 @@ def compare_key(components): if base_dt in select_vars: sorted_columns.remove(base_dt.capitalize()) sorted_columns.insert(0, base_dt) + # Return sorted columns or validate if it matches select_vars. sorted_lower = [i.lower() for i in sorted_columns] select_lower = [i.lower() for i in select_vars] + if select_lower != sorted_lower: - # Note : I returned the sorted cols in the state they are in the sparql file for easier comparison. - return [i[0].lower() + i[1:] for i in sorted_columns] + return ", ".join([i[0].lower() + i[1:] for i in sorted_columns]) return sorted_lower == select_lower @@ -483,7 +487,7 @@ def check_query_forms() -> None: # Check forms ordering. forms_order_result = check_forms_order(query_text) if forms_order_result is not True: - error_output += f"\n{index}. {query_file_str}:\n Forms ordering for above file should be:\n- {forms_order_result}\n" + error_output += f"\n{index}. {query_file_str}:\n Form ordering for the above file should be:\n- {forms_order_result}\n" index += 1 # Check that all variables in the WHERE and SELECT clauses are ordered, defined and returned. diff --git a/src/scribe_data/wikidata/language_data_extraction/arabic/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/arabic/adjectives/query_adjectives.sparql index c00cd03b..ba472290 100644 --- a/src/scribe_data/wikidata/language_data_extraction/arabic/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/arabic/adjectives/query_adjectives.sparql @@ -5,24 +5,28 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective + ?nominativeFeminineIndefiniteSingular ?nominativeFeminineIndefinitePlural ?nominativeFeminineIndefiniteDual ?nominativeMasculineIndefiniteSingular ?nominativeMasculineIndefinitePlural ?nominativeMasculineIndefiniteDual + ?genitiveFeminineIndefiniteSingular ?genitiveFeminineIndefinitePlural ?genitiveFeminineIndefiniteDual ?genitiveMasculineIndefiniteSingular ?genitiveMasculineIndefinitePlural ?genitiveMasculineIndefiniteDual + ?accusativeFeminineIndefiniteSingular ?accusativeFeminineIndefinitePlural ?accusativeFeminineIndefiniteDual ?accusativeMasculineIndefiniteSingular ?accusativeMasculineIndefinitePlural ?accusativeMasculineIndefiniteDual + ?pausalFeminineIndefiniteSingular ?pausalFeminineIndefinitePlural ?pausalFeminineIndefiniteDual @@ -30,7 +34,6 @@ SELECT ?pausalMasculineIndefinitePlural ?pausalMasculineIndefiniteDual - WHERE { ?lexeme dct:language wd:Q13955 ; wikibase:lexicalCategory wd:Q34698 ; @@ -52,7 +55,6 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q131105, wd:Q53997857 . } - # Dual OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefiniteDualForm . ?nominativeFeminineIndefiniteDualForm ontolex:representation ?nominativeFeminineIndefiniteDual ; @@ -115,17 +117,15 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146233, wd:Q53997857 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteDualForm . ?genitiveMasculineIndefiniteDualForm ontolex:representation ?genitiveMasculineIndefiniteDual ; wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146233, wd:Q53997857 . } - # MARK: Accusative - # Singular + # Feminine OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteSingularForm . @@ -145,6 +145,8 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146078, wd:Q53997857 . } + # Masculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteSingularForm . ?accusativeMasculineIndefiniteSingularForm ontolex:representation ?accusativeMasculineIndefiniteSingular ; @@ -163,7 +165,6 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146078, wd:Q53997857 . } - # MARK: Pausal # Feminine @@ -194,8 +195,6 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q117262361, wd:Q53997857 . } - # Dual - OPTIONAL { ?lexeme ontolex:lexicalForm ?pausalMasculineIndefinitePluralForm . ?pausalMasculineIndefinitePluralForm ontolex:representation ?pausalMasculineIndefinitePlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/arabic/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/arabic/nouns/query_nouns.sparql index 2e62e9b1..94646e3d 100644 --- a/src/scribe_data/wikidata/language_data_extraction/arabic/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/arabic/nouns/query_nouns.sparql @@ -34,7 +34,6 @@ SELECT ?pausalMasculineIndefinitePlural ?pausalMasculineIndefiniteDual - WHERE { ?lexeme dct:language wd:Q13955 ; wikibase:lexicalCategory wd:Q1084 ; @@ -42,7 +41,7 @@ WHERE { # MARK: Nominative - # Singular + # Feminine OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefiniteSingularForm . @@ -62,14 +61,14 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q131105, wd:Q53997857 . } + # Masculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefiniteSingularForm . ?nominativeMasculineIndefiniteSingularForm ontolex:representation ?nominativeMasculineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q131105, wd:Q53997857 . } - # Dual - OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefinitePluralForm . ?nominativeMasculineIndefinitePluralForm ontolex:representation ?nominativeMasculineIndefinitePlural ; @@ -84,7 +83,7 @@ WHERE { # MARK: Genitive - # Singular + # Feminine OPTIONAL { ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteSingularForm . @@ -98,20 +97,20 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146233, wd:Q53997857 . } - - OPTIONAL { ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteDualForm . ?genitiveFeminineIndefiniteDualForm ontolex:representation ?genitiveFeminineIndefiniteDual ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146233, wd:Q53997857 . } + # Masculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteSingularForm . ?genitiveMasculineIndefiniteSingularForm ontolex:representation ?genitiveMasculineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146233, wd:Q53997857 . } - # Dual + OPTIONAL { ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefinitePluralForm . ?genitiveMasculineIndefinitePluralForm ontolex:representation ?genitiveMasculineIndefinitePlural ; @@ -126,7 +125,7 @@ WHERE { # MARK: Accusative - # Singular + # Feminine OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteSingularForm . @@ -134,9 +133,6 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146078, wd:Q53997857 . } - # Dual - - OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefinitePluralForm . ?accusativeFeminineIndefinitePluralForm ontolex:representation ?accusativeFeminineIndefinitePlural ; @@ -149,6 +145,8 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146078, wd:Q53997857 . } + # Masculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteSingularForm . ?accusativeMasculineIndefiniteSingularForm ontolex:representation ?accusativeMasculineIndefiniteSingular ; @@ -167,13 +165,9 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146078, wd:Q53997857 . } - # Plural - - - # MARK: Pausal - # Singular + # Feminine OPTIONAL { ?lexeme ontolex:lexicalForm ?pausalFeminineIndefiniteSingularForm . @@ -193,27 +187,23 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q117262361, wd:Q53997857 . } + # Masculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteSingularForm . ?pausalMasculineIndefiniteSingularForm ontolex:representation ?pausalMasculineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q117262361, wd:Q53997857 . } - # Dual - OPTIONAL { ?lexeme ontolex:lexicalForm ?pausalMasculineIndefinitePluralForm . ?pausalMasculineIndefinitePluralForm ontolex:representation ?pausalMasculineIndefinitePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q117262361, wd:Q53997857 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteDualForm . ?pausalMasculineIndefiniteDualForm ontolex:representation ?pausalMasculineIndefiniteDual ; wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q117262361, wd:Q53997857 . } - - # Plural - } diff --git a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_1.sparql index 3f2643e1..8ee5f4da 100644 --- a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_1.sparql @@ -5,6 +5,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb + ?indicativeFirstPersonSingularFiilMudari ?indicativeFirstPersonPluralFiilMudari ?indicativeSecondPersonDualFiilMudari @@ -19,14 +20,12 @@ SELECT ?masculineIndicativeThirdPersonSingularFiilMudari ?masculineIndicativeThirdPersonDualFiilMudari - - WHERE { ?lexeme dct:language wd:Q13955 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . - # MARK: Present + # MARK: Indicative Present OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativeFirstPersonSingularFiilMudariForm . @@ -76,7 +75,6 @@ WHERE { wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q499327, wd:Q682111, wd:Q12230930 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineIndicativeSecondPersonPluralFiilMudariForm . ?masculineIndicativeSecondPersonPluralFiilMudariForm ontolex:representation ?masculineIndicativeSecondPersonPluralFiilMudari ; @@ -94,5 +92,4 @@ WHERE { ?masculineIndicativeThirdPersonDualFiilMudariForm ontolex:representation ?masculineIndicativeThirdPersonDualFiilMudari ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q499327, wd:Q682111, wd:Q12230930 . } - } diff --git a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_2.sparql index a1c917ba..ccd5e3d4 100644 --- a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_2.sparql @@ -5,6 +5,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb + ?activePerformativeFirstPersonSingular ?activePerformativeFirstPersonPlural ?activePerformativeSecondPersonDual @@ -19,7 +20,6 @@ SELECT ?masculineActivePerformativeThirdPersonSingular ?masculineActivePerformativeThirdPersonDual - WHERE { ?lexeme dct:language wd:Q13955 ; wikibase:lexicalCategory wd:Q24905 ; @@ -63,7 +63,6 @@ WHERE { wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q1775415, wd:Q1317831, wd:Q124351233 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineActivePerformativeThirdPersonDualForm . ?feminineActivePerformativeThirdPersonDualForm ontolex:representation ?feminineActivePerformativeThirdPersonDual ; @@ -88,11 +87,9 @@ WHERE { wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q499327, wd:Q1317831, wd:Q124351233 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineActivePerformativeThirdPersonDualForm . ?masculineActivePerformativeThirdPersonDualForm ontolex:representation ?masculineActivePerformativeThirdPersonDual ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q499327, wd:Q1317831, wd:Q124351233 . } - } diff --git a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_3.sparql b/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_3.sparql deleted file mode 100644 index 56d00532..00000000 --- a/src/scribe_data/wikidata/language_data_extraction/arabic/verbs/query_verbs_3.sparql +++ /dev/null @@ -1,54 +0,0 @@ -# tool: scribe-data -# All Arabic (Q13955) verbs (Q24905) and the given forms. -# Enter this query at https://query.wikidata.org/. - -SELECT - (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?verb - ?indicativeSecondPersonDualFiilMudari - ?feminineIndicativeSecondPersonSingularFiilMudari - ?feminineIndicativeSecondPersonPluralFiilMudari - ?masculineIndicativeSecondPersonSingularFiilMudari - ?masculineIndicativeSecondPersonPluralFiilMudari - - -WHERE { - ?lexeme dct:language wd:Q13955 ; - wikibase:lexicalCategory wd:Q24905 ; - wikibase:lemma ?verb . - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?indicativeSecondPersonDualFiilMudariForm . - ?indicativeSecondPersonDualFiilMudariForm ontolex:representation ?indicativeSecondPersonDualFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110022, wd:Q682111, wd:Q12230930 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineIndicativeSecondPersonSingularFiilMudariForm . - ?feminineIndicativeSecondPersonSingularFiilMudariForm ontolex:representation ?feminineIndicativeSecondPersonSingularFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1775415, wd:Q682111, wd:Q12230930 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineIndicativeSecondPersonPluralFiilMudariForm . - ?feminineIndicativeSecondPersonPluralFiilMudariForm ontolex:representation ?feminineIndicativeSecondPersonPluralFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1775415, wd:Q682111, wd:Q12230930 . - } - - # MARK: Imperative - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineIndicativeSecondPersonSingularFiilMudariForm . - ?masculineIndicativeSecondPersonSingularFiilMudariForm ontolex:representation ?masculineIndicativeSecondPersonSingularFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q499327, wd:Q682111, wd:Q12230930 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineIndicativeSecondPersonPluralFiilMudariForm . - ?masculineIndicativeSecondPersonPluralFiilMudariForm ontolex:representation ?masculineIndicativeSecondPersonPluralFiilMudari ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q499327, wd:Q682111, wd:Q12230930 . - } - - - - -} diff --git a/src/scribe_data/wikidata/language_data_extraction/bengali/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/bengali/nouns/query_nouns.sparql index 8292e1b9..dc76357a 100644 --- a/src/scribe_data/wikidata/language_data_extraction/bengali/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/bengali/nouns/query_nouns.sparql @@ -13,7 +13,7 @@ WHERE { ?lexeme dct:language wd:Q9610 ; wikibase:lexicalCategory wd:Q1084 ; - # MARK: Nminative + # MARK: Nominative OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/bengali/postpositions/query_postpositions.sparql b/src/scribe_data/wikidata/language_data_extraction/bengali/postpositions/query_postpositions.sparql index e39422b8..d4e88fc1 100644 --- a/src/scribe_data/wikidata/language_data_extraction/bengali/postpositions/query_postpositions.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/bengali/postpositions/query_postpositions.sparql @@ -13,7 +13,7 @@ WHERE { wikibase:lexicalCategory wd:Q161873 ; wikibase:lemma ?preposition . - # MARK: Corresponding Case + # MARK: Case OPTIONAL { ?lexeme wdt:P5713 ?caseForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/bengali/prepositions/query_prepositions.sparql b/src/scribe_data/wikidata/language_data_extraction/bengali/prepositions/query_prepositions.sparql index d103b64a..19ee177e 100644 --- a/src/scribe_data/wikidata/language_data_extraction/bengali/prepositions/query_prepositions.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/bengali/prepositions/query_prepositions.sparql @@ -12,7 +12,7 @@ WHERE { wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?preposition . - # MARK: Corresponding Case + # MARK: Case OPTIONAL { ?lexeme wdt:P5713 ?caseForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/bengali/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/bengali/proper_nouns/query_proper_nouns.sparql index 9d1f78e4..aa04260f 100644 --- a/src/scribe_data/wikidata/language_data_extraction/bengali/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/bengali/proper_nouns/query_proper_nouns.sparql @@ -13,7 +13,7 @@ WHERE { ?lexeme dct:language wd:Q9610 ; wikibase:lexicalCategory wd:Q147276 ; - # MARK: Nminative + # MARK: Nominative OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/czech/prepositions/query_prepositions.sparql b/src/scribe_data/wikidata/language_data_extraction/czech/prepositions/query_prepositions.sparql index eb39ddaf..2fa395a9 100644 --- a/src/scribe_data/wikidata/language_data_extraction/czech/prepositions/query_prepositions.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/czech/prepositions/query_prepositions.sparql @@ -12,7 +12,7 @@ WHERE { wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?lemma . - # MARK: Corresponding Cases + # MARK: Cases OPTIONAL { ?lexeme wdt:P5713 ?caseForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_1.sparql index fd26cda2..488e9f01 100644 --- a/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_1.sparql @@ -4,40 +4,38 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?infinitive -?infinitive + ?feminineSingularActiveParticiple + ?femininePluralActiveParticiple -?feminineSingularActiveParticiple -?femininePluralActiveParticiple + ?masculineInanimateSingularActiveParticiple + ?masculineInanimatePluralActiveParticiple + ?masculineAnimateSingularActiveParticiple + ?masculineAnimatePluralActiveParticiple -?masculineInanimateSingularActiveParticiple -?masculineInanimatePluralActiveParticiple -?masculineAnimateSingularActiveParticiple -?masculineAnimatePluralActiveParticiple + ?neuterSingularActiveParticiple + ?neuterPluralActiveParticiple -?neuterSingularActiveParticiple -?neuterPluralActiveParticiple - -?imperativeFirstPersonPlural -?imperativeSecondPersonSingular -?imperativeSecondPersonPlural - -?indicativePresentFirstPersonSingular -?indicativePresentFirstPersonPlural -?indicativePresentSecondPersonSingular -?indicativePresentSecondPersonPlural -?indicativePresentThirdPersonSingular -?indicativePresentThirdPersonPlural + ?imperativeFirstPersonPlural + ?imperativeSecondPersonSingular + ?imperativeSecondPersonPlural + ?indicativePresentFirstPersonSingular + ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonSingular + ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonSingular + ?indicativePresentThirdPersonPlural WHERE { ?lexeme dct:language wd:Q9056 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?infinitive . + # MARK: Active Participle - # MARK: Imperative - + # Feminine OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineSingularActiveParticipleForm . @@ -45,13 +43,14 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249355 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?femininePluralActiveParticipleForm . ?femininePluralActiveParticipleForm ontolex:representation ?femininePluralActiveParticiple ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249355 . } + # Maculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineInanimateSingularActiveParticipleForm . ?masculineInanimateSingularActiveParticipleForm ontolex:representation ?masculineInanimateSingularActiveParticiple ; @@ -70,15 +69,15 @@ WHERE { wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q72249355 . } - - OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineAnimatePluralActiveParticipleForm . ?masculineAnimatePluralActiveParticipleForm ontolex:representation ?masculineAnimatePluralActiveParticiple ; wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249355 . } - OPTIONAL { + # Neuter + + OPTIONAL { ?lexeme ontolex:lexicalForm ?neuterSingularActiveParticipleForm . ?neuterSingularActiveParticipleForm ontolex:representation ?neuterSingularActiveParticiple ; wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249355 . @@ -90,6 +89,7 @@ WHERE { wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249355 . } + # MARK: Imperative OPTIONAL { ?lexeme ontolex:lexicalForm ?imperativeFirstPersonPluralForm . @@ -109,11 +109,6 @@ WHERE { wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q22716 . } - # MARK: Active Participle - - - - # MARK: Indicative Present OPTIONAL { @@ -146,11 +141,9 @@ WHERE { wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . } - } diff --git a/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_2.sparql index b51398f7..5f42965e 100644 --- a/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/czech/verbs/query_verbs_2.sparql @@ -21,15 +21,17 @@ SELECT ?neuterPastTransgressiveSingular ?neuterPastTransgressivePlural + ?neuterSingularPassiveParticiple ?neuterPluralPassiveParticiple - WHERE { ?lexeme dct:language wd:Q9056 ; wikibase:lexicalCategory wd:Q24905 . - # MARK: Passive Participle + # MARK: Past Transgressive + + # Feminine OPTIONAL { ?lexeme ontolex:lexicalForm ?femininePastTransgressiveSingularForm . @@ -55,6 +57,8 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249544 . } + # Masculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineInanimatePastTransgressiveSingularForm . ?masculineInanimatePastTransgressiveSingularForm ontolex:representation ?masculineInanimatePastTransgressiveSingular ; @@ -85,8 +89,6 @@ WHERE { wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q12750232 . } - - OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineAnimatePastTransgressivePluralForm . ?masculineAnimatePastTransgressivePluralForm ontolex:representation ?masculineAnimatePastTransgressivePlural ; @@ -105,6 +107,8 @@ WHERE { wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249544 . } + # Neuter + OPTIONAL { ?lexeme ontolex:lexicalForm ?neuterPastTransgressiveSingularForm . ?neuterPastTransgressiveSingularForm ontolex:representation ?neuterPastTransgressiveSingular ; @@ -117,6 +121,7 @@ WHERE { wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q12750232 . } + # MARK: Passive Participle OPTIONAL { ?lexeme ontolex:lexicalForm ?neuterSingularPassiveParticipleForm . @@ -129,6 +134,4 @@ WHERE { ?neuterPluralPassiveParticipleForm ontolex:representation ?neuterPluralPassiveParticiple ; wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249544 . } - - # MARK: Past Transgressive } diff --git a/src/scribe_data/wikidata/language_data_extraction/dagbani/adverbs/query_adverbs.sparql b/src/scribe_data/wikidata/language_data_extraction/dagbani/adverbs/query_adverbs.sparql index 75673de6..3cacb0e7 100644 --- a/src/scribe_data/wikidata/language_data_extraction/dagbani/adverbs/query_adverbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/dagbani/adverbs/query_adverbs.sparql @@ -20,7 +20,6 @@ WHERE { wikibase:lexicalCategory wd:Q380057 ; wikibase:lemma ?adverb . - OPTIONAL { ?lexeme ontolex:lexicalForm ?presentForm . ?presentForm ontolex:representation ?present ; @@ -33,7 +32,6 @@ WHERE { wikibase:grammaticalFeature wd:Q1994301 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?singularForm . ?singularForm ontolex:representation ?singular ; @@ -57,8 +55,6 @@ WHERE { wikibase:grammaticalFeature wd:Q5978303 . } - - OPTIONAL { ?lexeme ontolex:lexicalForm ?adverbOfMannerForm . ?adverbOfMannerForm ontolex:representation ?adverbOfManner ; @@ -76,5 +72,4 @@ WHERE { ?phraseForm ontolex:representation ?phrase ; wikibase:grammaticalFeature wd:Q187931 . } - } diff --git a/src/scribe_data/wikidata/language_data_extraction/dagbani/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/dagbani/nouns/query_nouns.sparql index cf4a924a..89adf1e8 100644 --- a/src/scribe_data/wikidata/language_data_extraction/dagbani/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/dagbani/nouns/query_nouns.sparql @@ -12,6 +12,8 @@ WHERE { wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?noun . + # MARK: Plural + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_2.sparql b/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_2.sparql index e3ba632d..a9f30e3c 100644 --- a/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_2.sparql @@ -6,7 +6,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective ?comparative - ?pluralSuperlative ?pluralPositive ?definiteSingularPositive @@ -16,17 +15,14 @@ WHERE { wikibase:lemma ?adjective . # MARK: Comparative - OPTIONAL { + + OPTIONAL { ?lexeme ontolex:lexicalForm ?comparativeForm . ?comparativeForm ontolex:representation ?comparative ; wikibase:grammaticalFeature wd:Q14169499 . } - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralSuperlativeForm . - ?pluralSuperlativeForm ontolex:representation ?pluralSuperlative ; - wikibase:grammaticalFeature wd:Q146786, wd:Q1817208 . - } + # MARK: Positive OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralPositiveForm . @@ -34,16 +30,9 @@ WHERE { wikibase:grammaticalFeature wd:Q146786, wd:Q3482678 . } - - - # MARK: Definite - OPTIONAL { ?lexeme ontolex:lexicalForm ?definiteSingularPositiveForm . ?definiteSingularPositiveForm ontolex:representation ?definiteSingularPositive ; wikibase:grammaticalFeature wd:Q110786, wd:Q53997851, wd:Q3482678 . } - - # MARK: Plural - } diff --git a/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_3.sparql b/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_3.sparql index 20669f33..e6ca957d 100644 --- a/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/danish/adjectives/query_adjectives_3.sparql @@ -5,6 +5,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective + ?pluralSuperlative ?indefiniteSingularSuperlative ?definiteSingularSuperlative @@ -15,6 +16,12 @@ WHERE { # MARK: Superlative + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralSuperlativeForm . + ?pluralSuperlativeForm ontolex:representation ?pluralSuperlative ; + wikibase:grammaticalFeature wd:Q146786, wd:Q1817208 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?indefiniteSingularSuperlativeForm . ?indefiniteSingularSuperlativeForm ontolex:representation ?indefiniteSingularSuperlative ; diff --git a/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_1.sparql b/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_1.sparql index f6cacefa..2a365050 100644 --- a/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_1.sparql @@ -4,17 +4,16 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?noun ?genitiveIndefiniteSingular ?genitiveIndefinitePlural ?genitiveDefiniteSingular ?genitiveDefinitePlural - ?nonGenitiveIndefiniteSingular - ?nonGenitiveIndefinitePlural - ?nonGenitiveDefinitePlural WHERE { ?lexeme dct:language wd:Q9035 ; - wikibase:lexicalCategory wd:Q1084 . + wikibase:lexicalCategory wd:Q1084 ; + wikibase:lemma ?noun . # MARK: Genitive @@ -41,26 +40,4 @@ WHERE { ?genitiveDefinitePluralForm ontolex:representation ?genitiveDefinitePlural ; wikibase:grammaticalFeature wd:Q146233, wd:Q53997851, wd:Q146786 . } - - - - # MARK: Non-genitive - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?nonGenitiveIndefiniteSingularForm . - ?nonGenitiveIndefiniteSingularForm ontolex:representation ?nonGenitiveIndefiniteSingular ; - wikibase:grammaticalFeature wd:Q98946930, wd:Q53997857, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?nonGenitiveIndefinitePluralForm . - ?nonGenitiveIndefinitePluralForm ontolex:representation ?nonGenitiveIndefinitePlural ; - wikibase:grammaticalFeature wd:Q98946930, wd:Q53997857, wd:Q146786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?nonGenitiveDefinitePluralForm . - ?nonGenitiveDefinitePluralForm ontolex:representation ?nonGenitiveDefinitePlural ; - wikibase:grammaticalFeature wd:Q98946930, wd:Q53997851, wd:Q146786 . - } } diff --git a/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_2.sparql b/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_2.sparql index d58030d3..4fe1e8b0 100644 --- a/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/danish/nouns/query_nouns_2.sparql @@ -4,17 +4,40 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?noun + ?nonGenitiveIndefiniteSingular + ?nonGenitiveIndefinitePlural ?nonGenitiveDefiniteSingular + ?nonGenitiveDefinitePlural WHERE { ?lexeme dct:language wd:Q9035 ; - wikibase:lexicalCategory wd:Q1084 . + wikibase:lexicalCategory wd:Q1084 ; + wikibase:lemma ?noun . # MARK: Non-genitive + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nonGenitiveIndefiniteSingularForm . + ?nonGenitiveIndefiniteSingularForm ontolex:representation ?nonGenitiveIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q98946930, wd:Q53997857, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nonGenitiveIndefinitePluralForm . + ?nonGenitiveIndefinitePluralForm ontolex:representation ?nonGenitiveIndefinitePlural ; + wikibase:grammaticalFeature wd:Q98946930, wd:Q53997857, wd:Q146786 . + } + OPTIONAL { ?lexeme ontolex:lexicalForm ?nonGenitiveDefiniteSingularForm . ?nonGenitiveDefiniteSingularForm ontolex:representation ?nonGenitiveDefiniteSingular ; wikibase:grammaticalFeature wd:Q98946930, wd:Q53997851, wd:Q110786 . } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nonGenitiveDefinitePluralForm . + ?nonGenitiveDefinitePluralForm ontolex:representation ?nonGenitiveDefinitePlural ; + wikibase:grammaticalFeature wd:Q98946930, wd:Q53997851, wd:Q146786 . + } } diff --git a/src/scribe_data/wikidata/language_data_extraction/danish/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/danish/verbs/query_verbs.sparql index 319a54ea..919916c1 100644 --- a/src/scribe_data/wikidata/language_data_extraction/danish/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/danish/verbs/query_verbs.sparql @@ -5,46 +5,48 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb + ?imperative + ?presentParticiple ?pastParticiple + ?passiveInfinitive ?passivePresent ?passivePreterite + ?activeInfinitive ?activePresent ?activePreterite - WHERE { ?lexeme dct:language wd:Q9035 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . - # MARK: Imperative + OPTIONAL { ?lexeme ontolex:lexicalForm ?imperativeForm . ?imperativeForm ontolex:representation ?imperative ; wikibase:grammaticalFeature wd:Q22716 . } - # MARK: Present Participle - OPTIONAL { + # MARK: Participles + + OPTIONAL { ?lexeme ontolex:lexicalForm ?presentParticipleForm . ?presentParticipleForm ontolex:representation ?presentParticiple ; wikibase:grammaticalFeature wd:Q10345583 . } - # MARK: Past Participle - OPTIONAL { ?lexeme ontolex:lexicalForm ?pastParticipleForm . ?pastParticipleForm ontolex:representation ?pastParticiple ; wikibase:grammaticalFeature wd:Q12717679 . } - # MARK: Infinitive Passive + # MARK: Passive OPTIONAL { ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . @@ -52,24 +54,19 @@ WHERE { wikibase:grammaticalFeature wd:Q179230, wd:Q1194697 . } - # MARK: Present Passive - OPTIONAL { ?lexeme ontolex:lexicalForm ?passivePresentForm . ?passivePresentForm ontolex:representation ?passivePresent ; wikibase:grammaticalFeature wd:Q192613, wd:Q1194697 . } - # MARK: Infinitive Active - - # MARK: Preterite Passive - OPTIONAL { ?lexeme ontolex:lexicalForm ?passivePreteriteForm . ?passivePreteriteForm ontolex:representation ?passivePreterite ; wikibase:grammaticalFeature wd:Q442485, wd:Q1194697 . } + # MARK: Active OPTIONAL { ?lexeme ontolex:lexicalForm ?activeInfinitiveForm . @@ -77,17 +74,12 @@ WHERE { wikibase:grammaticalFeature wd:Q179230, wd:Q1317831 . } - - # MARK: Present Active - OPTIONAL { ?lexeme ontolex:lexicalForm ?activePresentForm . ?activePresentForm ontolex:representation ?activePresent ; wikibase:grammaticalFeature wd:Q192613, wd:Q1317831 . } - # MARK: Preterite Active - OPTIONAL { ?lexeme ontolex:lexicalForm ?activePreteriteForm . ?activePreteriteForm ontolex:representation ?activePreterite ; diff --git a/src/scribe_data/wikidata/language_data_extraction/english/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/english/verbs/query_verbs.sparql index f09d2afa..c1f7e6ad 100644 --- a/src/scribe_data/wikidata/language_data_extraction/english/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/english/verbs/query_verbs.sparql @@ -52,7 +52,6 @@ WHERE { FILTER(LANG(?presentParticiple) = "en") } - # MARK: Past Participle OPTIONAL { @@ -74,6 +73,4 @@ WHERE { FILTER NOT EXISTS { ?simplePresentThirdPersonSingularForm wikibase:grammaticalFeature wd:Q126473 . } FILTER(LANG(?simplePresentThirdPersonSingular) = "en") } - - } diff --git a/src/scribe_data/wikidata/language_data_extraction/esperanto/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/esperanto/nouns/query_nouns.sparql index f08704af..b557d6ee 100644 --- a/src/scribe_data/wikidata/language_data_extraction/esperanto/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/esperanto/nouns/query_nouns.sparql @@ -10,19 +10,19 @@ SELECT ?accusativePlural WHERE { + # MARK: Nominative + ?lexeme dct:language wd:Q143 ; wikibase:lexicalCategory wd:Q1084 ; wikibase:lemma ?nominativeSingular . - # MARK: Nominative Plural - OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativePluralForm . ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } - # MARK: Accusative Singular + # MARK: Accusative OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativeSingularForm . @@ -30,8 +30,7 @@ WHERE { wikibase:grammaticalFeature wd:Q146078, wd:Q110786 . } - - # MARK: Accusative Plural + # MARK: Accusative OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativePluralForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/esperanto/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/esperanto/proper_nouns/query_proper_nouns.sparql index 0a59e9ca..ace3232b 100644 --- a/src/scribe_data/wikidata/language_data_extraction/esperanto/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/esperanto/proper_nouns/query_proper_nouns.sparql @@ -10,19 +10,19 @@ SELECT ?accusativePlural WHERE { + # MARK: Nominative + ?lexeme dct:language wd:Q143 ; wikibase:lexicalCategory wd:Q147276 ; wikibase:lemma ?nominativeSingular . - # MARK: Nominative Plural - OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativePluralForm . ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } - # MARK: Accusative Singular + # MARK: Accusative OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativeSingularForm . @@ -30,8 +30,6 @@ WHERE { wikibase:grammaticalFeature wd:Q146078, wd:Q110786 . } - # MARK: Accusative Plural - OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativePluralForm . ?accusativePluralForm ontolex:representation ?accusativePlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/estonian/adjectives/query_adjectives_3.sparql b/src/scribe_data/wikidata/language_data_extraction/estonian/adjectives/query_adjectives_3.sparql index fbef8bf7..cb185d24 100644 --- a/src/scribe_data/wikidata/language_data_extraction/estonian/adjectives/query_adjectives_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/estonian/adjectives/query_adjectives_3.sparql @@ -19,7 +19,6 @@ WHERE { wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . - # MARK: Ablative OPTIONAL { @@ -50,7 +49,6 @@ WHERE { # MARK: Translative - OPTIONAL { ?lexeme ontolex:lexicalForm ?translativeSingularForm . ?translativeSingularForm ontolex:representation ?translativeSingular ; diff --git a/src/scribe_data/wikidata/language_data_extraction/estonian/adverbs/query_adverbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/estonian/adverbs/query_adverbs_2.sparql index 73b14cfe..0674aeda 100644 --- a/src/scribe_data/wikidata/language_data_extraction/estonian/adverbs/query_adverbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/estonian/adverbs/query_adverbs_2.sparql @@ -20,13 +20,11 @@ SELECT ?comitativeSingular ?comitativePlural - WHERE { ?lexeme dct:language wd:Q9072 ; wikibase:lexicalCategory wd:Q380057 ; wikibase:lemma ?adverb . - # MARK: Ablative OPTIONAL { diff --git a/src/scribe_data/wikidata/language_data_extraction/estonian/postpositions/query_postpositions.sparql b/src/scribe_data/wikidata/language_data_extraction/estonian/postpositions/query_postpositions.sparql index 5fb58860..de12772f 100644 --- a/src/scribe_data/wikidata/language_data_extraction/estonian/postpositions/query_postpositions.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/estonian/postpositions/query_postpositions.sparql @@ -12,7 +12,7 @@ WHERE { wikibase:lexicalCategory wd:Q161873 ; wikibase:lemma ?preposition . - # MARK: Corresponding Case + # MARK: Case OPTIONAL { ?lexeme wdt:P5713 ?caseForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_1.sparql index 7bed2266..2e297016 100644 --- a/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_1.sparql @@ -5,6 +5,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive + ?indicativePresentFirstPersonSingular ?indicativePresentFirstPersonPlural ?indicativePresentSecondPersonSingular @@ -19,16 +20,10 @@ SELECT ?indicativePreteriteThirdPersonSingular ?indicativePreteriteThirdPersonPlural - WHERE { ?lexeme dct:language wd:Q150 ; - wikibase:lexicalCategory wd:Q24905 . - - # MARK: Infinitive - - ?lexeme ontolex:lexicalForm ?infinitiveForm . - ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 ; + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?infinitive . # MARK: Indicative Present @@ -94,7 +89,6 @@ WHERE { wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q442485 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePreteriteThirdPersonSingularForm . ?indicativePreteriteThirdPersonSingularForm ontolex:representation ?indicativePreteriteThirdPersonSingular ; diff --git a/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_2.sparql index d03ccef6..bdc67d66 100644 --- a/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/french/verbs/query_verbs_2.sparql @@ -5,6 +5,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive + ?indicativeSimpleFutureFirstPersonSingular ?indicativeSimpleFutureFirstPersonPlural ?indicativeSimpleFutureSecondPersonSingular @@ -19,16 +20,12 @@ SELECT ?indicativeImperfectThirdPersonSingular ?indicativeImperfectThirdPersonPlural - WHERE { ?lexeme dct:language wd:Q150 ; - wikibase:lexicalCategory wd:Q24905 . + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?infinitive . - # MARK: Infinitive - - ?lexeme ontolex:lexicalForm ?infinitiveForm . - ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 ; + # MARK: Future OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureFirstPersonSingularForm . @@ -36,7 +33,6 @@ WHERE { wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q1475560 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureFirstPersonPluralForm . ?indicativeSimpleFutureFirstPersonPluralForm ontolex:representation ?indicativeSimpleFutureFirstPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/german/prepositions/query_prepositions.sparql b/src/scribe_data/wikidata/language_data_extraction/german/prepositions/query_prepositions.sparql index 0f8d52a5..68015d60 100644 --- a/src/scribe_data/wikidata/language_data_extraction/german/prepositions/query_prepositions.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/german/prepositions/query_prepositions.sparql @@ -12,7 +12,7 @@ WHERE { wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?lemma . - # MARK: Corresponding Case + # MARK: Case OPTIONAL { ?lexeme wdt:P5713 ?caseForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_1.sparql index 9eb104ce..f07fb8f6 100644 --- a/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_1.sparql @@ -15,13 +15,8 @@ SELECT WHERE { ?lexeme dct:language wd:Q188 ; - wikibase:lexicalCategory wd:Q24905 . - - # MARK: Infinitive - - ?lexeme ontolex:lexicalForm ?infinitiveForm . - ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 . + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?infinitive . # MARK: Indicative Present diff --git a/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_2.sparql index 6a030924..f182d154 100644 --- a/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/german/verbs/query_verbs_2.sparql @@ -17,13 +17,8 @@ SELECT WHERE { ?lexeme dct:language wd:Q188 ; - wikibase:lexicalCategory wd:Q24905 . - - # MARK: Infinitive - - ?lexeme ontolex:lexicalForm ?infinitiveForm . - ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 . + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?infinitive . # MARK: Past Participle diff --git a/src/scribe_data/wikidata/language_data_extraction/greek/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/greek/verbs/query_verbs.sparql index 91b4603e..b44caeb6 100644 --- a/src/scribe_data/wikidata/language_data_extraction/greek/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/greek/verbs/query_verbs.sparql @@ -14,13 +14,8 @@ SELECT WHERE { ?lexeme dct:language wd:Q36510 ; - wikibase:lexicalCategory wd:Q24905 . - - # MARK: Infinitive - - ?lexeme ontolex:lexicalForm ?infinitiveForm . - ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 ; + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?infinitive . # MARK: Present diff --git a/src/scribe_data/wikidata/language_data_extraction/hausa/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/hausa/adjectives/query_adjectives.sparql index e7f1c203..d630528a 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hausa/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hausa/adjectives/query_adjectives.sparql @@ -15,6 +15,7 @@ WHERE { wikibase:lemma ?adjective . FILTER(lang(?adjective) = "ha") + # MARK: Plural OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . @@ -23,6 +24,8 @@ WHERE { FILTER(lang(?plural) = "ha") } + # MARK: Feminine + OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineSingularForm . ?feminineSingularForm ontolex:representation ?feminineSingular ; @@ -30,6 +33,8 @@ WHERE { FILTER(lang(?feminineSingular) = "ha") } + # MARK: Masculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineSingularForm . ?masculineSingularForm ontolex:representation ?masculineSingular ; diff --git a/src/scribe_data/wikidata/language_data_extraction/hausa/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/hausa/nouns/query_nouns.sparql index aab80850..adabe457 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hausa/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hausa/nouns/query_nouns.sparql @@ -22,7 +22,6 @@ WHERE { ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 . FILTER(lang(?plural) = "ha") - # FILTER(lang(?plural) = "ha-arabic") } # MARK: Gender(s) diff --git a/src/scribe_data/wikidata/language_data_extraction/hausa/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/hausa/proper_nouns/query_proper_nouns.sparql index 47eee939..388b4d87 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hausa/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hausa/proper_nouns/query_proper_nouns.sparql @@ -12,7 +12,6 @@ WHERE { wikibase:lexicalCategory wd:Q147276 ; wikibase:lemma ?singular . FILTER(lang(?singular) = "ha") - # FILTER(lang(?singular) = "ha-arabic") # MARK: Gender(s) diff --git a/src/scribe_data/wikidata/language_data_extraction/hausa/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/hausa/verbs/query_verbs.sparql index ed84e2dd..439c19b1 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hausa/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hausa/verbs/query_verbs.sparql @@ -11,5 +11,4 @@ WHERE { wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . FILTER(lang(?verb) = "ha") - # FILTER(lang(?verb) = "ha-arabic") } diff --git a/src/scribe_data/wikidata/language_data_extraction/hebrew/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/hebrew/adjectives/query_adjectives.sparql index 6147afec..eb65ff0c 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hebrew/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hebrew/adjectives/query_adjectives.sparql @@ -42,7 +42,6 @@ WHERE { FILTER(lang(?femininePlural) = "he") } - OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineSingularForm . ?masculineSingularForm ontolex:representation ?masculineSingular ; diff --git a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_3.sparql b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_3.sparql index 2fdb8cfe..f7c469eb 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_3.sparql @@ -6,16 +6,17 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?pastFirstPersonSingular ?pastFirstPersonPlural + ?femininePastSecondPersonSingular ?femininePastSecondPersonPlural ?femininePastThirdPersonSingular ?femininePastThirdPersonPlural + ?masculinePastSecondPersonSingular ?masculinePastSecondPersonPlural ?masculinePastThirdPersonSingular ?masculinePastThirdPersonPlural - WHERE { ?lexeme dct:language wd:Q9288 ; wikibase:lexicalCategory wd:Q24905 . @@ -36,6 +37,8 @@ WHERE { FILTER(lang(?pastFirstPersonPlural) = "he") } + # Feminine + OPTIONAL { ?lexeme ontolex:lexicalForm ?femininePastSecondPersonSingularForm . ?femininePastSecondPersonSingularForm ontolex:representation ?femininePastSecondPersonSingular ; @@ -64,6 +67,8 @@ WHERE { FILTER(lang(?femininePastThirdPersonPlural) = "he") } + # Masculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?masculinePastSecondPersonSingularForm . ?masculinePastSecondPersonSingularForm ontolex:representation ?masculinePastSecondPersonSingular ; diff --git a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_4.sparql b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_4.sparql index 4c9bb38d..6c8768e6 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_4.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hebrew/verbs/query_verbs_4.sparql @@ -37,6 +37,8 @@ WHERE { FILTER(lang(?futureFirstPersonPlural) = "he") . } + # Feminine + OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineFutureSecondPersonSingularForm . ?feminineFutureSecondPersonSingularForm ontolex:representation ?feminineFutureSecondPersonSingular ; @@ -65,6 +67,8 @@ WHERE { FILTER(lang(?feminineFutureThirdPersonPlural) = "he") . } + # Masculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineFutureSecondPersonSingularForm . ?masculineFutureSecondPersonSingularForm ontolex:representation ?masculineFutureSecondPersonSingular ; diff --git a/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/adjectives/query_adjectives.sparql index 728f0443..87dbd796 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/adjectives/query_adjectives.sparql @@ -9,6 +9,7 @@ SELECT ?adjective ?singular ?plural + ?vocativeFeminineSingular ?vocativeFemininePlural ?vocativeMasculineSingular @@ -30,7 +31,7 @@ WHERE { wikibase:lemma ?adjective . FILTER(lang(?adjective) = "hi") - # MARK: Singulative Numeral + # MARK: Singular OPTIONAL { ?lexeme ontolex:lexicalForm ?singularForm . @@ -39,7 +40,7 @@ WHERE { FILTER(LANG(?singular) = "hi") } - # MARK: Collective Numeral + # MARK: Plural OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . @@ -48,7 +49,6 @@ WHERE { FILTER(LANG(?plural) = "hi") } - # MARK: Vocative OPTIONAL { diff --git a/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/verbs/query_verbs.sparql index 42751dce..734c9c56 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hindustani/hindi/verbs/query_verbs.sparql @@ -17,7 +17,6 @@ SELECT ?adverbial ?absoluteConstruction - WHERE { # MARK: Infinitive @@ -26,7 +25,6 @@ WHERE { wikibase:lemma ?verb . FILTER(lang(?infinitive) = "hi") - # MARK: Accusative OPTIONAL { @@ -54,7 +52,6 @@ WHERE { FILTER(LANG(?oblique) = "hi") } - # MARK: Intransitive Phase OPTIONAL { diff --git a/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/adjectives/query_adjectives.sparql index 83910b64..5750f6f4 100644 --- a/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/hindustani/urdu/adjectives/query_adjectives.sparql @@ -28,7 +28,7 @@ WHERE { wikibase:lemma ?adjective . FILTER(lang(?adjective) = "ur") - # MARK: Singulative Numeral + # MARK: Singular OPTIONAL { ?lexeme ontolex:lexicalForm ?singularForm . @@ -37,7 +37,7 @@ WHERE { FILTER(LANG(?singular) = "ur") } - # MARK: Collective Numeral + # MARK: Plural OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_1.sparql index 2bc7fd1d..701e926d 100644 --- a/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_1.sparql @@ -12,7 +12,6 @@ SELECT ?presentIndicativeThirdPersonSingular ?presentIndicativeThirdPersonPlural - WHERE { ?lexeme dct:language wd:Q652 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_3.sparql b/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_3.sparql index 5f41e77a..ed39055f 100644 --- a/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/italian/verbs/query_verbs_3.sparql @@ -12,7 +12,6 @@ SELECT ?preteriteThirdPersonSingular ?preteriteThirdPersonPlural - WHERE { ?lexeme dct:language wd:Q652 ; wikibase:lexicalCategory wd:Q24905 ; diff --git a/src/scribe_data/wikidata/language_data_extraction/latin/prepositions/query_prepositions.sparql b/src/scribe_data/wikidata/language_data_extraction/latin/prepositions/query_prepositions.sparql index 43a114a8..1f6430bb 100644 --- a/src/scribe_data/wikidata/language_data_extraction/latin/prepositions/query_prepositions.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/latin/prepositions/query_prepositions.sparql @@ -13,7 +13,6 @@ WHERE { wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?preposition . - # MARK: Accusative OPTIONAL { diff --git "a/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_1.sparql" "b/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_1.sparql" index 8f2a71a0..7f150518 100644 --- "a/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_1.sparql" +++ "b/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_1.sparql" @@ -14,50 +14,56 @@ SELECT WHERE { ?lexeme dct:language wd:Q25167 ; - wikibase:lexicalCategory wd:Q24905 . + wikibase:lexicalCategory wd:Q24905 . + + # MARK: Imperative - # MARK: imperative OPTIONAL { ?lexeme ontolex:lexicalForm ?imperativeForm . ?imperativeForm ontolex:representation ?imperative ; wikibase:grammaticalFeature wd:Q22716 . } - # MARK: preterite + # MARK: Preterite + OPTIONAL { ?lexeme ontolex:lexicalForm ?preteriteForm . ?preteriteForm ontolex:representation ?preterite ; wikibase:grammaticalFeature wd:Q442485 . } - # MARK: present perfect + # MARK: Present Perfect + OPTIONAL { ?lexeme ontolex:lexicalForm ?presentPerfectForm . ?presentPerfectForm ontolex:representation ?presentPerfect ; wikibase:grammaticalFeature wd:Q1240211 . } - # MARK: passive infinitive + # MARK: Passive Infinitive + OPTIONAL { ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . ?passiveInfinitiveForm ontolex:representation ?passiveInfinitive ; wikibase:grammaticalFeature wd:Q1194697, wd:Q179230 . } - # MARK: passive Present + # MARK: Passive Present + OPTIONAL { ?lexeme ontolex:lexicalForm ?passivePresentForm . ?passivePresentForm ontolex:representation ?passivePresent ; wikibase:grammaticalFeature wd:Q1194697, wd:Q192613 . } - # MARK: active Infinitive + # MARK: Active Infinitive ?lexeme ontolex:lexicalForm ?activeInfinitiveForm . ?activeInfinitiveForm ontolex:representation ?activeInfinitive ; wikibase:grammaticalFeature wd:Q1317831 , wd:Q179230 . - # MARK: active present + # MARK: Active Present + OPTIONAL { ?lexeme ontolex:lexicalForm ?activePresentForm . ?activePresentForm ontolex:representation ?activePresent ; diff --git "a/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_2.sparql" "b/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_2.sparql" index a7edfe86..9cc551f5 100644 --- "a/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_2.sparql" +++ "b/src/scribe_data/wikidata/language_data_extraction/norwegian/bokm\303\245l/verbs/query_verbs_2.sparql" @@ -12,41 +12,39 @@ SELECT WHERE { ?lexeme dct:language wd:Q25167 ; - wikibase:lexicalCategory wd:Q24905 . + wikibase:lexicalCategory wd:Q24905 . + + # MARK: Present Participle - # MARK: present participle OPTIONAL { ?lexeme ontolex:lexicalForm ?presentParticipleForm . ?presentParticipleForm ontolex:representation ?presentParticiple ; wikibase:grammaticalFeature wd:Q10345583 . } - # MARK: plural past participle + # MARK: Past Participle + OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralPastParticipleForm . ?pluralPastParticipleForm ontolex:representation ?pluralPastParticiple ; wikibase:grammaticalFeature wd:Q12717679, wd:Q146786 . } - # MARK: definite singular past participle OPTIONAL { ?lexeme ontolex:lexicalForm ?definiteSingularPastParticipleForm . ?definiteSingularPastParticipleForm ontolex:representation ?definiteSingularPastParticiple ; wikibase:grammaticalFeature wd:Q12717679, wd:Q110786, wd:Q53997851 . } - # MARK: neuter singular indefinite past participle OPTIONAL { ?lexeme ontolex:lexicalForm ?neuterIndefiniteSingularPastParticipleForm . ?neuterIndefiniteSingularPastParticipleForm ontolex:representation ?neuterIndefiniteSingularPastParticiple ; wikibase:grammaticalFeature wd:Q12717679, wd:Q1775461, wd:Q110786, wd:Q53997857 . } - # MARK: masculine feminine singular indefinite past participle OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineMasculineIndefiniteSingularPastParticipleForm . ?feminineMasculineIndefiniteSingularPastParticipleForm ontolex:representation ?feminineMasculineIndefiniteSingularPastParticiple ; wikibase:grammaticalFeature wd:Q1775415, wd:Q499327, wd:Q53997857, wd:Q110786, wd:Q12717679 . } - } diff --git a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/adjectives/query_adjectives.sparql index 2ea78c36..07cd05ca 100644 --- a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/adjectives/query_adjectives.sparql @@ -12,7 +12,6 @@ SELECT ?neuterIndefiniteSingular ?feminineMasculineIndefiniteSingular - WHERE { ?lexeme dct:language wd:Q25164 ; wikibase:lexicalCategory wd:Q34698 ; diff --git a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/proper_nouns/query_proper_nouns.sparql index a4454a29..973c0fd2 100644 --- a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/proper_nouns/query_proper_nouns.sparql @@ -12,7 +12,6 @@ SELECT ?definitePlural ?gender - WHERE { ?lexeme dct:language wd:Q25164 ; wikibase:lexicalCategory wd:Q147276; diff --git a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/verbs/query_verbs.sparql index 5a3d37d7..ce351d56 100644 --- a/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/norwegian/nynorsk/verbs/query_verbs.sparql @@ -39,7 +39,6 @@ WHERE { FILTER(LANG(?imperative) = "nn") } - # MARK: Preterite OPTIONAL { @@ -63,7 +62,6 @@ WHERE { FILTER(LANG(?presentParticiple) = "nn") } - # MARK: Infinitive Passive OPTIONAL { @@ -152,5 +150,4 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q1775415, wd:Q110786, wd:Q53997857, wd:Q12717679 . FILTER(LANG(?feminineMasculineIndefiniteSingularPastParticiple) = "nn") } - } diff --git a/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_4.sparql b/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_4.sparql index 2c902260..b79ab42e 100644 --- a/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_4.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/persian/verbs/query_verbs_4.sparql @@ -12,7 +12,6 @@ SELECT ?presentPerfectThirdPersonSingular ?presentPerfectThirdPersonPlural - WHERE { ?lexeme dct:language wd:Q9168; wikibase:lexicalCategory wd:Q24905; @@ -38,7 +37,6 @@ WHERE { wikibase:grammaticalFeature wd:Q625420, wd:Q51929049, wd:Q192613, wd:Q110786 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?presentPerfectSecondPersonPluralForm . ?presentPerfectSecondPersonPluralForm ontolex:representation ?presentPerfectSecondPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/polish/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/polish/verbs/query_verbs.sparql index 98ad4c0d..b52610e2 100644 --- a/src/scribe_data/wikidata/language_data_extraction/polish/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/polish/verbs/query_verbs.sparql @@ -5,6 +5,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive + ?feminineSingularPassiveParticiple ?feminineSingularActiveParticiple ?femininePluralPassiveParticiple @@ -36,6 +37,8 @@ WHERE { wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?infinitive . +# MARK: Feminine + OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineSingularPassiveParticipleForm . ?feminineSingularPassiveParticipleForm ontolex:representation ?feminineSingularPassiveParticiple ; @@ -48,7 +51,6 @@ OPTIONAL { wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249355 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?femininePluralPassiveParticipleForm . ?femininePluralPassiveParticipleForm ontolex:representation ?femininePluralPassiveParticiple ; @@ -61,8 +63,7 @@ OPTIONAL { wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249355 . } - # MARK: Present - # MARK: Active Participle + # MARK: Masculine OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineInanimateSingularPassiveParticipleForm . @@ -112,7 +113,7 @@ OPTIONAL { wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249355 . } - # MARK: Passive Participle + # MARK: Neuter OPTIONAL { ?lexeme ontolex:lexicalForm ?neuterSingularPassiveParticipleForm . @@ -137,6 +138,8 @@ OPTIONAL { wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249355 . } + # MARK: Indicative + OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; diff --git a/src/scribe_data/wikidata/language_data_extraction/portuguese/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/portuguese/adjectives/query_adjectives.sparql index 016cd416..71e0a169 100644 --- a/src/scribe_data/wikidata/language_data_extraction/portuguese/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/portuguese/adjectives/query_adjectives.sparql @@ -10,12 +10,13 @@ SELECT ?masculineSingular ?masculinePlural - WHERE { ?lexeme dct:language wd:Q5146 ; wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . + # MARK: Feminine + OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineSingularForm . ?feminineSingularForm ontolex:representation ?feminineSingular ; @@ -28,6 +29,8 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . } + # MARK: Masculine + OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineSingularForm . ?masculineSingularForm ontolex:representation ?masculineSingular ; diff --git a/src/scribe_data/wikidata/language_data_extraction/portuguese/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/portuguese/verbs/query_verbs.sparql index 98866ce1..5d148d3a 100644 --- a/src/scribe_data/wikidata/language_data_extraction/portuguese/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/portuguese/verbs/query_verbs.sparql @@ -5,24 +5,28 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive + ?indicativePresentFirstPersonSingular ?indicativePresentFirstPersonPlural ?indicativePresentSecondPersonSingular ?indicativePresentSecondPersonPlural ?indicativePresentThirdPersonSingular ?indicativePresentThirdPersonPlural + ?indicativePastImperfectFirstPersonSingular ?indicativePastImperfectFirstPersonPlural ?indicativePastImperfectSecondPersonSingular ?indicativePastImperfectSecondPersonPlural ?indicativePastImperfectThirdPersonSingular ?indicativePastImperfectThirdPersonPlural + ?indicativePastPerfectFirstPersonSingular ?indicativePastPerfectFirstPersonPlural ?indicativePastPerfectSecondPersonSingular ?indicativePastPerfectSecondPersonPlural ?indicativePastPerfectThirdPersonSingular ?indicativePastPerfectThirdPersonPlural + ?indicativePluperfectFirstPersonSingular ?indicativePluperfectFirstPersonPlural ?indicativePluperfectSecondPersonSingular @@ -82,7 +86,7 @@ WHERE { wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . } - # MARK: Past Imperfect + # MARK: Past Imperfect OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePastImperfectFirstPersonSingularForm . @@ -157,7 +161,7 @@ WHERE { wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q64005357 . } - # MARK: Future Simple + # MARK: Pluperfect OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePluperfectFirstPersonSingularForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/russian/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/russian/adjectives/query_adjectives.sparql index 919a241a..9fb23fdc 100644 --- a/src/scribe_data/wikidata/language_data_extraction/russian/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/russian/adjectives/query_adjectives.sparql @@ -11,28 +11,36 @@ SELECT ?instrumentalPlural ?prepositionalPlural ?pluralShort + ?nominativeFeminineSingular ?nominativeMasculineSingular ?nominativeNeuterSingular + ?genitiveFeminineSingular ?genitiveMasculineSingular ?genitiveNeuterSingular + ?dativeFeminineSingular ?dativeMasculineSingular ?dativeNeuterSingular + ?accusativeInanimateSingular ?accusativeInanimatePlural ?accusativeAnimatePlural ?accusativeMasculineAnimateSingular + ?instrumentalFeminineSingular ?instrumentalMasculineSingular ?instrumentalNeuterSingular + ?prepositionalFeminineSingular ?prepositionalMasculineSingular ?prepositionalNeuterSingular + ?feminineSingularShort ?masculineSingularShort ?neuterSingularShort + ?accusativeFeminineAnimateSingular ?accusativeAnimateNeuterSingular @@ -41,196 +49,196 @@ WHERE { wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . - # MARK: Nominative - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativePluralForm . - ?nominativePluralForm ontolex:representation ?nominativePlural ; - wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitivePluralForm . - ?genitivePluralForm ontolex:representation ?genitivePlural ; - wikibase:grammaticalFeature wd:Q146233, wd:Q146786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?dativePluralForm . - ?dativePluralForm ontolex:representation ?dativePlural ; - wikibase:grammaticalFeature wd:Q145599, wd:Q146786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?instrumentalPluralForm . - ?instrumentalPluralForm ontolex:representation ?instrumentalPlural ; - wikibase:grammaticalFeature wd:Q192997, wd:Q146786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?prepositionalPluralForm . - ?prepositionalPluralForm ontolex:representation ?prepositionalPlural ; - wikibase:grammaticalFeature wd:Q2114906, wd:Q146786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralShortForm . - ?pluralShortForm ontolex:representation ?pluralShort ; - wikibase:grammaticalFeature wd:Q4239848, wd:Q146786 . -} - -# MARK: Nominative Singular - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeFeminineSingularForm . - ?nominativeFeminineSingularForm ontolex:representation ?nominativeFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q131105, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeMasculineSingularForm . - ?nominativeMasculineSingularForm ontolex:representation ?nominativeMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q131105, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?nominativeNeuterSingularForm . - ?nominativeNeuterSingularForm ontolex:representation ?nominativeNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q131105, wd:Q110786 . -} - -# MARK: Genitive Singular - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveFeminineSingularForm . - ?genitiveFeminineSingularForm ontolex:representation ?genitiveFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146233, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveMasculineSingularForm . - ?genitiveMasculineSingularForm ontolex:representation ?genitiveMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146233, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitiveNeuterSingularForm . - ?genitiveNeuterSingularForm ontolex:representation ?genitiveNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q146233, wd:Q110786 . -} - -# MARK: Dative Singular - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?dativeFeminineSingularForm . - ?dativeFeminineSingularForm ontolex:representation ?dativeFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q145599, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?dativeMasculineSingularForm . - ?dativeMasculineSingularForm ontolex:representation ?dativeMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q145599, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?dativeNeuterSingularForm . - ?dativeNeuterSingularForm ontolex:representation ?dativeNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q145599, wd:Q110786 . -} - -# MARK: Accusative Singular - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeInanimateSingularForm . - ?accusativeInanimateSingularForm ontolex:representation ?accusativeInanimateSingular ; - wikibase:grammaticalFeature wd:Q51927539, wd:Q146078, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeInanimatePluralForm . - ?accusativeInanimatePluralForm ontolex:representation ?accusativeInanimatePlural ; - wikibase:grammaticalFeature wd:Q51927539, wd:Q146078, wd:Q146786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeAnimatePluralForm . - ?accusativeAnimatePluralForm ontolex:representation ?accusativeAnimatePlural ; - wikibase:grammaticalFeature wd:Q51927507, wd:Q146078, wd:Q146786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeMasculineAnimateSingularForm . - ?accusativeMasculineAnimateSingularForm ontolex:representation ?accusativeMasculineAnimateSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q51927507, wd:Q146078, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?instrumentalFeminineSingularForm . - ?instrumentalFeminineSingularForm ontolex:representation ?instrumentalFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q192997, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?instrumentalMasculineSingularForm . - ?instrumentalMasculineSingularForm ontolex:representation ?instrumentalMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q192997, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?instrumentalNeuterSingularForm . - ?instrumentalNeuterSingularForm ontolex:representation ?instrumentalNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q192997, wd:Q110786 . -} - -# MARK: Prepositional Singular - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?prepositionalFeminineSingularForm . - ?prepositionalFeminineSingularForm ontolex:representation ?prepositionalFeminineSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q2114906, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?prepositionalMasculineSingularForm . - ?prepositionalMasculineSingularForm ontolex:representation ?prepositionalMasculineSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q2114906, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?prepositionalNeuterSingularForm . - ?prepositionalNeuterSingularForm ontolex:representation ?prepositionalNeuterSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q2114906, wd:Q110786 . -} - -# MARK: Short Singular - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineSingularShortForm . - ?feminineSingularShortForm ontolex:representation ?feminineSingularShort ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q4239848, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineSingularShortForm . - ?masculineSingularShortForm ontolex:representation ?masculineSingularShort ; - wikibase:grammaticalFeature wd:Q499327, wd:Q4239848, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterSingularShortForm . - ?neuterSingularShortForm ontolex:representation ?neuterSingularShort ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q4239848, wd:Q110786 . -} -OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeFeminineAnimateSingularForm . - ?accusativeFeminineAnimateSingularForm ontolex:representation ?accusativeFeminineAnimateSingular ; - wikibase:grammaticalFeature wd:Q146078, wd:Q1775415, wd:Q51927507, wd:Q110786 . -} - -OPTIONAL { - ?lexeme ontolex:lexicalForm ?accusativeAnimateNeuterSingularForm . - ?accusativeAnimateNeuterSingularForm ontolex:representation ?accusativeAnimateNeuterSingular ; - wikibase:grammaticalFeature wd:Q146078, wd:Q51927507, wd:Q1775461, wd:Q110786 . -} + # MARK: Nominative + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; + wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitivePluralForm . + ?genitivePluralForm ontolex:representation ?genitivePlural ; + wikibase:grammaticalFeature wd:Q146233, wd:Q146786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?dativePluralForm . + ?dativePluralForm ontolex:representation ?dativePlural ; + wikibase:grammaticalFeature wd:Q145599, wd:Q146786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?instrumentalPluralForm . + ?instrumentalPluralForm ontolex:representation ?instrumentalPlural ; + wikibase:grammaticalFeature wd:Q192997, wd:Q146786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?prepositionalPluralForm . + ?prepositionalPluralForm ontolex:representation ?prepositionalPlural ; + wikibase:grammaticalFeature wd:Q2114906, wd:Q146786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralShortForm . + ?pluralShortForm ontolex:representation ?pluralShort ; + wikibase:grammaticalFeature wd:Q4239848, wd:Q146786 . + } + + # MARK: Nominative Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeFeminineSingularForm . + ?nominativeFeminineSingularForm ontolex:representation ?nominativeFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q131105, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeMasculineSingularForm . + ?nominativeMasculineSingularForm ontolex:representation ?nominativeMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q131105, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeNeuterSingularForm . + ?nominativeNeuterSingularForm ontolex:representation ?nominativeNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q131105, wd:Q110786 . + } + + # MARK: Genitive Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveFeminineSingularForm . + ?genitiveFeminineSingularForm ontolex:representation ?genitiveFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146233, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveMasculineSingularForm . + ?genitiveMasculineSingularForm ontolex:representation ?genitiveMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146233, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveNeuterSingularForm . + ?genitiveNeuterSingularForm ontolex:representation ?genitiveNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q146233, wd:Q110786 . + } + + # MARK: Dative Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?dativeFeminineSingularForm . + ?dativeFeminineSingularForm ontolex:representation ?dativeFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q145599, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?dativeMasculineSingularForm . + ?dativeMasculineSingularForm ontolex:representation ?dativeMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q145599, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?dativeNeuterSingularForm . + ?dativeNeuterSingularForm ontolex:representation ?dativeNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q145599, wd:Q110786 . + } + + # MARK: Accusative Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeInanimateSingularForm . + ?accusativeInanimateSingularForm ontolex:representation ?accusativeInanimateSingular ; + wikibase:grammaticalFeature wd:Q51927539, wd:Q146078, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeInanimatePluralForm . + ?accusativeInanimatePluralForm ontolex:representation ?accusativeInanimatePlural ; + wikibase:grammaticalFeature wd:Q51927539, wd:Q146078, wd:Q146786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeAnimatePluralForm . + ?accusativeAnimatePluralForm ontolex:representation ?accusativeAnimatePlural ; + wikibase:grammaticalFeature wd:Q51927507, wd:Q146078, wd:Q146786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeMasculineAnimateSingularForm . + ?accusativeMasculineAnimateSingularForm ontolex:representation ?accusativeMasculineAnimateSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q51927507, wd:Q146078, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?instrumentalFeminineSingularForm . + ?instrumentalFeminineSingularForm ontolex:representation ?instrumentalFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q192997, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?instrumentalMasculineSingularForm . + ?instrumentalMasculineSingularForm ontolex:representation ?instrumentalMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q192997, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?instrumentalNeuterSingularForm . + ?instrumentalNeuterSingularForm ontolex:representation ?instrumentalNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q192997, wd:Q110786 . + } + + # MARK: Prepositional Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?prepositionalFeminineSingularForm . + ?prepositionalFeminineSingularForm ontolex:representation ?prepositionalFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q2114906, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?prepositionalMasculineSingularForm . + ?prepositionalMasculineSingularForm ontolex:representation ?prepositionalMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q2114906, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?prepositionalNeuterSingularForm . + ?prepositionalNeuterSingularForm ontolex:representation ?prepositionalNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q2114906, wd:Q110786 . + } + + # MARK: Short Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?feminineSingularShortForm . + ?feminineSingularShortForm ontolex:representation ?feminineSingularShort ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q4239848, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?masculineSingularShortForm . + ?masculineSingularShortForm ontolex:representation ?masculineSingularShort ; + wikibase:grammaticalFeature wd:Q499327, wd:Q4239848, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?neuterSingularShortForm . + ?neuterSingularShortForm ontolex:representation ?neuterSingularShort ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q4239848, wd:Q110786 . + } + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeFeminineAnimateSingularForm . + ?accusativeFeminineAnimateSingularForm ontolex:representation ?accusativeFeminineAnimateSingular ; + wikibase:grammaticalFeature wd:Q146078, wd:Q1775415, wd:Q51927507, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?accusativeAnimateNeuterSingularForm . + ?accusativeAnimateNeuterSingularForm ontolex:representation ?accusativeAnimateNeuterSingular ; + wikibase:grammaticalFeature wd:Q146078, wd:Q51927507, wd:Q1775461, wd:Q110786 . + } } diff --git a/src/scribe_data/wikidata/language_data_extraction/russian/prepositions/query_prepositions.sparql b/src/scribe_data/wikidata/language_data_extraction/russian/prepositions/query_prepositions.sparql index dd2bbb9a..73826b45 100644 --- a/src/scribe_data/wikidata/language_data_extraction/russian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/russian/prepositions/query_prepositions.sparql @@ -12,7 +12,7 @@ WHERE { wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?lemma . - # MARK: Corresponding Case + # MARK: Case OPTIONAL { ?lexeme wdt:P5713 ?caseForm . diff --git a/src/scribe_data/wikidata/language_data_extraction/russian/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/russian/verbs/query_verbs.sparql index 21c407cc..898fd639 100644 --- a/src/scribe_data/wikidata/language_data_extraction/russian/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/russian/verbs/query_verbs.sparql @@ -8,6 +8,7 @@ SELECT ?feminineIndicativePast ?masculineIndicativePast ?neuterIndicativePast + ?indicativePastPlural ?indicativePresentFirstPersonSingular ?indicativePresentFirstPersonPlural @@ -16,7 +17,6 @@ SELECT ?indicativePresentThirdPersonSingular ?indicativePresentThirdPersonPlural - WHERE { ?lexeme dct:language wd:Q7737 ; wikibase:lexicalCategory wd:Q24905 . @@ -59,7 +59,7 @@ WHERE { wikibase:grammaticalFeature wd:Q146786, wd:Q682111, wd:Q1994301 . } - # MARK: Present + # MARK: Indicative Present OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . @@ -79,7 +79,6 @@ WHERE { wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/sami/northern/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/sami/northern/nouns/query_nouns.sparql index bc3089ec..a152efe7 100644 --- a/src/scribe_data/wikidata/language_data_extraction/sami/northern/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/sami/northern/nouns/query_nouns.sparql @@ -6,16 +6,22 @@ SELECT DISTINCT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?nominativeSingular ?nominativePlural + ?genitiveSingular ?genitivePlural + ?dativeSingular ?dativePlural + ?accusativeSingular ?accusativePlural + ?instrumentalSingular ?instrumentalPlural + ?locativeSingular ?locativePlural + ?vocativeSingular ?vocativePlural diff --git a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives.sparql deleted file mode 100644 index 5a87d0ca..00000000 --- a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives.sparql +++ /dev/null @@ -1,13 +0,0 @@ -# tool: scribe-data -# All Slovak (Q9058) adjectives (Q34698) and the given forms. -# Enter this query at https://query.wikidata.org/. - -SELECT - (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?adjective - -WHERE { - ?lexeme dct:language wd:Q9058 ; - wikibase:lexicalCategory wd:Q34698 ; - wikibase:lemma ?adjective . -} diff --git a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_1.sparql b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_1.sparql index 6f2ec090..0018347a 100644 --- a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_1.sparql @@ -30,7 +30,6 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q131105, wd:Q110786, wd:Q3482678 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeMasculinePersonalPluralPositiveForm . ?nominativeMasculinePersonalPluralPositiveForm ontolex:representation ?nominativeMasculinePersonalPluralPositive ; diff --git a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_2.sparql b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_2.sparql index 5b9c2bc5..5acc814f 100644 --- a/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/slovak/adjectives/query_adjectives_2.sparql @@ -10,7 +10,6 @@ SELECT ?genitiveMasculineSingularPositive ?genitiveNeuterSingularPositive - WHERE { ?lexeme dct:language wd:Q9058; wikibase:lexicalCategory wd:Q34698 ; diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/adjectives/query_adjectives.sparql index abfb6404..075fba2a 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/adjectives/query_adjectives.sparql @@ -5,10 +5,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective + ?feminineSingular ?femininePlural ?masculineSingular ?masculinePlural + ?feminineSingularSuperlative ?femininePluralSuperlative ?masculineSingularSuperlative @@ -30,7 +32,6 @@ WHERE { } } - OPTIONAL { ?lexeme ontolex:lexicalForm ?femininePluralForm . ?femininePluralForm ontolex:representation ?femininePlural ; @@ -40,7 +41,6 @@ WHERE { } } - OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineSingularForm . ?masculineSingularForm ontolex:representation ?masculineSingular ; @@ -59,7 +59,6 @@ WHERE { } } - OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineSingularSuperlativeForm . ?feminineSingularSuperlativeForm ontolex:representation ?feminineSingularSuperlative ; @@ -74,8 +73,6 @@ WHERE { # MARK: Masculine - - OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineSingularSuperlativeForm . ?masculineSingularSuperlativeForm ontolex:representation ?masculineSingularSuperlative ; diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/nouns/query_nouns.sparql index 96b65c46..89b93051 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/nouns/query_nouns.sparql @@ -5,11 +5,15 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?singular + ?plural + ?feminineSingular ?femininePlural + ?masculineSingular ?masculinePlural + ?gender WHERE { @@ -25,9 +29,8 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 . } - # MARK: Gender(s) + # MARK: Feminine - # MARK: feminine singular and plural forms. OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineSingularForm . ?feminineSingularForm ontolex:representation ?feminineSingular ; @@ -40,13 +43,8 @@ WHERE { wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . } - OPTIONAL { - ?lexeme wdt:P5185 ?nounGender . - } + # MARK: Masculine - # Spansih sometimes has masculine and feminine versions on a single lexeme. - - # MARK: masculine singular and plural forms. OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineSingularForm . ?masculineSingularForm ontolex:representation ?masculineSingular ; @@ -59,6 +57,12 @@ WHERE { wikibase:grammaticalFeature wd:Q499327, wd:Q146786 . } + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } + SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". ?nounGender rdfs:label ?gender . diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/proper_nouns/query_proper_nouns.sparql index 9bd51165..237f8720 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/proper_nouns/query_proper_nouns.sparql @@ -12,7 +12,6 @@ SELECT ?masculinePlural ?gender - WHERE { ?lexeme dct:language wd:Q1321 ; wikibase:lexicalCategory wd:Q147276 ; @@ -26,33 +25,21 @@ WHERE { wikibase:grammaticalFeature wd:Q146786 . } + # MARK: Feminine - - - # MARK: feminine singular and plural forms. OPTIONAL { ?lexeme ontolex:lexicalForm ?feminineSingularForm . ?feminineSingularForm ontolex:representation ?feminineSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?femininePluralForm . ?femininePluralForm ontolex:representation ?femininePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . } - - # MARK: Gender(s) - - OPTIONAL { - ?lexeme wdt:P5185 ?nounGender . - } - - # Spansih sometimes has masculine and feminine versions on a single lexeme. - - # MARK: masculine singular and plural forms. + # MARK: Masculine OPTIONAL { ?lexeme ontolex:lexicalForm ?masculineSingularForm . ?masculineSingularForm ontolex:representation ?masculineSingular ; @@ -64,6 +51,13 @@ WHERE { ?masculinePluralForm ontolex:representation ?masculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786 . } + + # MARK: Gender(s) + + OPTIONAL { + ?lexeme wdt:P5185 ?nounGender . + } + SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". ?nounGender rdfs:label ?gender . diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_1.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_1.sparql index d013ddba..a8ffff5e 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_1.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_1.sparql @@ -12,16 +12,10 @@ SELECT ?indicativePresentThirdPersonSingular ?indicativePresentThirdPersonPlural - - WHERE { ?lexeme dct:language wd:Q1321 ; - wikibase:lexicalCategory wd:Q24905 . - - # MARK: Infinitive - ?lexeme ontolex:lexicalForm ?infinitiveForm . - ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 ; + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?infinitive . # MARK: Present diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_2.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_2.sparql index d1503140..73730a20 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_2.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_2.sparql @@ -14,12 +14,8 @@ SELECT WHERE { ?lexeme dct:language wd:Q1321 ; - wikibase:lexicalCategory wd:Q24905 . - - # MARK: Infinitive - ?lexeme ontolex:lexicalForm ?infinitiveForm . - ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 ; + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?infinitive . # MARK: Preterite diff --git a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_3.sparql b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_3.sparql index 44043a66..a0ab9bab 100644 --- a/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_3.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/spanish/verbs/query_verbs_3.sparql @@ -14,12 +14,8 @@ SELECT WHERE { ?lexeme dct:language wd:Q1321 ; - wikibase:lexicalCategory wd:Q24905 . - - # MARK: Infinitive - ?lexeme ontolex:lexicalForm ?infinitiveForm . - ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 ; + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?infinitive . # MARK: Imperfect diff --git a/src/scribe_data/wikidata/language_data_extraction/swedish/nouns/query_nouns.sparql b/src/scribe_data/wikidata/language_data_extraction/swedish/nouns/query_nouns.sparql index cfe389a8..f9d38904 100644 --- a/src/scribe_data/wikidata/language_data_extraction/swedish/nouns/query_nouns.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/swedish/nouns/query_nouns.sparql @@ -8,18 +8,19 @@ SELECT ?nominativeIndefinitePlural ?nominativeDefiniteSingular ?nominativeDefinitePlural + ?genitiveIndefiniteSingular ?genitiveIndefinitePlural ?genitiveDefiniteSingular ?genitiveDefinitePlural - ?gender + ?gender WHERE { ?lexeme dct:language wd:Q9027 ; wikibase:lexicalCategory wd:Q1084 . - # MARK: Indefinite + # MARK: Nominative OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeIndefiniteSingularForm . @@ -33,22 +34,20 @@ WHERE { wikibase:grammaticalFeature wd:Q53997857, wd:Q131105, wd:Q146786 . } - OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeDefiniteSingularForm . ?nominativeDefiniteSingularForm ontolex:representation ?nominativeDefiniteSingular ; wikibase:grammaticalFeature wd:Q53997851, wd:Q131105, wd:Q110786 . } - # MARK: Definite - - OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativeDefinitePluralForm . ?nominativeDefinitePluralForm ontolex:representation ?nominativeDefinitePlural ; wikibase:grammaticalFeature wd:Q53997851, wd:Q131105, wd:Q146786 . } + # MARK: Genitive + OPTIONAL { ?lexeme ontolex:lexicalForm ?genitiveIndefiniteSingularForm . ?genitiveIndefiniteSingularForm ontolex:representation ?genitiveIndefiniteSingular ; diff --git a/src/scribe_data/wikidata/language_data_extraction/swedish/verbs/query_verbs.sparql b/src/scribe_data/wikidata/language_data_extraction/swedish/verbs/query_verbs.sparql index 8100f44d..728d30b0 100644 --- a/src/scribe_data/wikidata/language_data_extraction/swedish/verbs/query_verbs.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/swedish/verbs/query_verbs.sparql @@ -4,11 +4,14 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?verb ?imperative + ?passiveInfinitive ?passivePresent ?passivePreterite ?passiveSupine + ?activeInfinitive ?activePresent ?activePreterite @@ -16,64 +19,66 @@ SELECT WHERE { ?lexeme dct:language wd:Q9027 ; - wikibase:lexicalCategory wd:Q24905 . -# Imperative -OPTIONAL { - ?lexeme ontolex:lexicalForm ?imperativeForm . - ?imperativeForm ontolex:representation ?imperative ; - wikibase:grammaticalFeature wd:Q22716 . -} + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?verb . -# Passive Infinitive -OPTIONAL { - ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . - ?passiveInfinitiveForm ontolex:representation ?passiveInfinitive ; - wikibase:grammaticalFeature wd:Q1194697, wd:Q179230 . -} + # MARK: Imperative -# Passive Present -OPTIONAL { - ?lexeme ontolex:lexicalForm ?passivePresentForm . - ?passivePresentForm ontolex:representation ?passivePresent ; - wikibase:grammaticalFeature wd:Q1194697, wd:Q192613 . -} + OPTIONAL { + ?lexeme ontolex:lexicalForm ?imperativeForm . + ?imperativeForm ontolex:representation ?imperative ; + wikibase:grammaticalFeature wd:Q22716 . + } -# Passive Preterite -OPTIONAL { - ?lexeme ontolex:lexicalForm ?passivePreteriteForm . - ?passivePreteriteForm ontolex:representation ?passivePreterite ; - wikibase:grammaticalFeature wd:Q1194697, wd:Q442485 . -} + # MARK: Passive -# Passive Supine -OPTIONAL { - ?lexeme ontolex:lexicalForm ?passiveSupineForm . - ?passiveSupineForm ontolex:representation ?passiveSupine ; - wikibase:grammaticalFeature wd:Q1194697, wd:Q548470 . -} + OPTIONAL { + ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . + ?passiveInfinitiveForm ontolex:representation ?passiveInfinitive ; + wikibase:grammaticalFeature wd:Q1194697, wd:Q179230 . + } -# Active Infinitive -?lexeme ontolex:lexicalForm ?activeInfinitiveForm . -?activeInfinitiveForm ontolex:representation ?activeInfinitive ; - wikibase:grammaticalFeature wd:Q1317831, wd:Q179230 . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?passivePresentForm . + ?passivePresentForm ontolex:representation ?passivePresent ; + wikibase:grammaticalFeature wd:Q1194697, wd:Q192613 . + } -# Active Present -OPTIONAL { - ?lexeme ontolex:lexicalForm ?activePresentForm . - ?activePresentForm ontolex:representation ?activePresent ; - wikibase:grammaticalFeature wd:Q1317831, wd:Q192613 . -} + OPTIONAL { + ?lexeme ontolex:lexicalForm ?passivePreteriteForm . + ?passivePreteriteForm ontolex:representation ?passivePreterite ; + wikibase:grammaticalFeature wd:Q1194697, wd:Q442485 . + } -# Active Preterite -OPTIONAL { - ?lexeme ontolex:lexicalForm ?activePreteriteForm . - ?activePreteriteForm ontolex:representation ?activePreterite ; - wikibase:grammaticalFeature wd:Q1317831, wd:Q442485 . -} + OPTIONAL { + ?lexeme ontolex:lexicalForm ?passiveSupineForm . + ?passiveSupineForm ontolex:representation ?passiveSupine ; + wikibase:grammaticalFeature wd:Q1194697, wd:Q548470 . + } + + # MARK: Active + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?activeInfinitiveForm . + ?activeInfinitiveForm ontolex:representation ?activeInfinitive ; + wikibase:grammaticalFeature wd:Q1317831, wd:Q179230 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?activePresentForm . + ?activePresentForm ontolex:representation ?activePresent ; + wikibase:grammaticalFeature wd:Q1317831, wd:Q192613 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?activePreteriteForm . + ?activePreteriteForm ontolex:representation ?activePreterite ; + wikibase:grammaticalFeature wd:Q1317831, wd:Q442485 . + } -# Active Supine -OPTIONAL { - ?lexeme ontolex:lexicalForm ?activeSupineForm . - ?activeSupineForm ontolex:representation ?activeSupine ; - wikibase:grammaticalFeature wd:Q1317831, wd:Q548470 . + OPTIONAL { + ?lexeme ontolex:lexicalForm ?activeSupineForm . + ?activeSupineForm ontolex:representation ?activeSupine ; + wikibase:grammaticalFeature wd:Q1317831, wd:Q548470 . + } } diff --git a/src/scribe_data/wikidata/language_data_extraction/ukrainian/adjectives/query_adjectives.sparql b/src/scribe_data/wikidata/language_data_extraction/ukrainian/adjectives/query_adjectives.sparql index 9ba9597e..1767b1d3 100644 --- a/src/scribe_data/wikidata/language_data_extraction/ukrainian/adjectives/query_adjectives.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/ukrainian/adjectives/query_adjectives.sparql @@ -5,8 +5,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective + ?comparative ?superlative + ?nominativePlural ?nominativeFeminineSingular ?nominativeMasculineSingular @@ -17,6 +19,7 @@ WHERE { wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . +# MARK: Comparative OPTIONAL { ?lexeme ontolex:lexicalForm ?comparativeForm . @@ -24,12 +27,16 @@ WHERE { wikibase:grammaticalFeature wd:Q14169499 . } + # MARK: Superlative + OPTIONAL { ?lexeme ontolex:lexicalForm ?superlativeForm . ?superlativeForm ontolex:representation ?superlative ; wikibase:grammaticalFeature wd:Q1817208 . } + # MARK: Nominative + OPTIONAL { ?lexeme ontolex:lexicalForm ?nominativePluralForm . ?nominativePluralForm ontolex:representation ?nominativePlural ; diff --git a/src/scribe_data/wikidata/language_data_extraction/ukrainian/prepositions/query_prepositions.sparql b/src/scribe_data/wikidata/language_data_extraction/ukrainian/prepositions/query_prepositions.sparql index 578bc672..af05ba0f 100644 --- a/src/scribe_data/wikidata/language_data_extraction/ukrainian/prepositions/query_prepositions.sparql +++ b/src/scribe_data/wikidata/language_data_extraction/ukrainian/prepositions/query_prepositions.sparql @@ -8,12 +8,11 @@ SELECT ?case WHERE { - # All Ukrainian prepositions. ?lexeme dct:language wd:Q8798 ; wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?lemma . - # MARK: Corresponding Case + # MARK: Case OPTIONAL { ?lexeme wdt:P5713 ?caseForm . diff --git a/src/scribe_data/wikidata/query_profanity.sparql b/src/scribe_data/wikidata/query_profanity.sparql index 122764b5..ecb7713d 100644 --- a/src/scribe_data/wikidata/query_profanity.sparql +++ b/src/scribe_data/wikidata/query_profanity.sparql @@ -7,8 +7,8 @@ SELECT DISTINCT WHERE { ?lexemeId dct:language wd:LANGUAGE_QID; # replace language qid here - wikibase:lemma ?lemma; - ontolex:sense ?sense. + wikibase:lemma ?lemma; + ontolex:sense ?sense. VALUES ?filter { wd:Q8102