diff --git a/.github/workflows/check_query_forms.yaml b/.github/workflows/check_query_forms.yaml new file mode 100644 index 000000000..6c99caa18 --- /dev/null +++ b/.github/workflows/check_query_forms.yaml @@ -0,0 +1,46 @@ +name: Check Query Forms +on: + push: + branches: [main] + pull_request: + branches: [main] + types: [opened, reopened, synchronize] + +jobs: + format_check: + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + python-version: + - "3.9" + + runs-on: ${{ matrix.os }} + + name: Run Check Query Forms + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Add project root to PYTHONPATH + run: echo "PYTHONPATH=$(pwd)/src" >> $GITHUB_ENV + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run check_query_forms.py + working-directory: ./src/scribe_data/check + run: python check_query_forms.py + + - name: Post-run status + if: failure() + run: echo "Project SPARQL query forms check failed. Please fix the reported errors." diff --git a/CHANGELOG.md b/CHANGELOG.md index ea1905b32..53f95a3db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,9 +16,9 @@ Emojis for the following are chosen based on [gitmoji](https://gitmoji.dev/). - Scribe-Data is now a fully functional CLI. - Querying Wikidata lexicographical data can be done via the `--query` command ([#159](https://github.com/scribe-org/Scribe-Data/issues/159)). - - The output type of queries can be in JSON, CSV, TSV and SQLite, with conversions output types also being possible ([#145](https://github.com/scribe-org/Scribe-Data/issues/145), [#146](https://github.com/scribe-org/Scribe-Data/issues/146)) - - Output paths can be set for query results ([#144](https://github.com/scribe-org/Scribe-Data/issues/144)). - - The version of the CLI can be printed to the command line and the CLI can further be used to upgrade itself ([#186](https://github.com/scribe-org/Scribe-Data/issues/186), [#157 ](https://github.com/scribe-org/Scribe-Data/issues/157)). + - The output type of queries can be in JSON, CSV, TSV and SQLite, with conversions output types also being possible ([#145](https://github.com/scribe-org/Scribe-Data/issues/145), [#146](https://github.com/scribe-org/Scribe-Data/issues/146)) + - Output paths can be set for query results ([#144](https://github.com/scribe-org/Scribe-Data/issues/144)). + - The version of the CLI can be printed to the command line and the CLI can further be used to upgrade itself ([#186](https://github.com/scribe-org/Scribe-Data/issues/186), [#157 ](https://github.com/scribe-org/Scribe-Data/issues/157)). - Total Wikidata lexemes for languages and data types can be derived with the `--total` command ([#147](https://github.com/scribe-org/Scribe-Data/issues/147)). - Commands can be used via an interactive mode with the `--interactive` command ([#158](https://github.com/scribe-org/Scribe-Data/issues/158)). - Articles are removed from machine translations so they're more directly useful in Scribe applications ([#96](https://github.com/scribe-org/Scribe-Data/issues/96)). diff --git a/docs/source/_static/CONTRIBUTING.rst b/docs/source/_static/CONTRIBUTING.rst index 4a34e1ffc..8cade2b22 100644 --- a/docs/source/_static/CONTRIBUTING.rst +++ b/docs/source/_static/CONTRIBUTING.rst @@ -16,7 +16,7 @@ Contents - `First steps as a contributor <#first-steps-as-a-contributor>`__ - `Learning the tech stack <#learning-the-tech-stack>`__ - `Development environment <#development-environment>`__ -- `Issues and projects <#issues-projects>`__ +- `Issues and projects <#issues-and-projects>`__ - `Bug reports <#bug-reports>`__ - `Feature requests <#feature-requests>`__ - `Pull requests <#pull-requests>`__ diff --git a/docs/source/conf.py b/docs/source/conf.py index 60dbb3922..78613691c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -40,8 +40,11 @@ "numpydoc", "sphinx.ext.viewcode", "sphinx.ext.imgmath", + "nbsphinx", ] +nbsphinx_allow_errors = True +nbsphinx_execute = "never" numpydoc_show_inherited_class_members = False numpydoc_show_class_members = False diff --git a/docs/source/notes.rst b/docs/source/notes.rst index 9d9aa20d0..f72b2f2a8 100644 --- a/docs/source/notes.rst +++ b/docs/source/notes.rst @@ -1,4 +1,4 @@ -.. mdinclude:: _static/CONTRIBUTING.rst +.. include:: _static/CONTRIBUTING.rst License ======= @@ -6,4 +6,4 @@ License .. literalinclude:: ../../LICENSE.txt :language: text -.. mdinclude:: ../../CHANGELOG.md +.. include:: ../../CHANGELOG.md diff --git a/docs/source/scribe_data/cli.rst b/docs/source/scribe_data/cli.rst index b3effbff4..853267957 100644 --- a/docs/source/scribe_data/cli.rst +++ b/docs/source/scribe_data/cli.rst @@ -67,7 +67,10 @@ Example output: adverbs emoji-keywords nouns + personal-pronouns + postpositions prepositions + proper-nouns verbs ----------------------------------- @@ -94,7 +97,10 @@ Example output: adverbs emoji-keywords nouns + personal-pronouns + postpositions prepositions + proper-nouns verbs ----------------------------------- @@ -115,7 +121,10 @@ Example output: adverbs emoji-keywords nouns + personal-pronouns + postpositions prepositions + proper-nouns verbs ----------------------------------- @@ -137,6 +146,7 @@ Options: - ``-dt, --data-type DATA_TYPE``: The data type(s) to get. - ``-od, --output-dir OUTPUT_DIR``: The output directory path for results. - ``-ot, --output-type {json,csv,tsv}``: The output file type. +- ``-ope, --outputs-per-entry OUTPUTS_PER_ENTRY``: How many outputs should be generated per data entry. - ``-o, --overwrite``: Whether to overwrite existing files (default: False). - ``-a, --all ALL``: Get all languages and data types. - ``-i, --interactive``: Run in interactive mode. @@ -257,7 +267,7 @@ Examples: .. code-block:: text - $scribe-data total -lang English -dt nouns + $scribe-data total -lang English -dt nouns # verbs, adjectives, etc Language: English Data type: nouns Total number of lexemes: 12345 @@ -278,7 +288,4 @@ Options: - ``-f, --file FILE``: The file to convert to a new type. - ``-ko, --keep-original``: Whether to keep the file to be converted (default: True). -- ``-json, --to-json TO_JSON``: Convert the file to JSON format. -- ``-csv, --to-csv TO_CSV``: Convert the file to CSV format. -- ``-tsv, --to-tsv TO_TSV``: Convert the file to TSV format. -- ``-sqlite, --to-sqlite TO_SQLITE``: Convert the file to SQLite format. +- ``-ot, --output-type {json,csv,tsv,sqlite}``: The output file type. diff --git a/docs/source/scribe_data/wikidata/query_profanity.rst b/docs/source/scribe_data/wikidata/query_profanity.rst index c0215a054..a6c2f198f 100644 --- a/docs/source/scribe_data/wikidata/query_profanity.rst +++ b/docs/source/scribe_data/wikidata/query_profanity.rst @@ -24,8 +24,7 @@ Queries all profane words from a given language to be removed from autosuggest o }. FILTER EXISTS {?sense wdt:P6191 ?filter.}. - - } + } ORDER BY lcase(?lemma) diff --git a/docs/source/scribe_data/wikipedia/gen_autosuggestions.rst b/docs/source/scribe_data/wikipedia/gen_autosuggestions.rst index 5f4c90b00..e69334a18 100644 --- a/docs/source/scribe_data/wikipedia/gen_autosuggestions.rst +++ b/docs/source/scribe_data/wikipedia/gen_autosuggestions.rst @@ -3,9 +3,10 @@ gen_autosuggestions.ipynb `View code on Github `_ -Scribe Autosuggest Generation ------------------------------ - This notebook is used to run the functions found in Scribe-Data to extract, clean and load autosuggestion files into Scribe apps. +.. toctree:: + + notebook.ipynb + Use the :code:`View code on GitHub` link above to view the notebook and explore the process! diff --git a/docs/source/scribe_data/wikipedia/notebook.ipynb b/docs/source/scribe_data/wikipedia/notebook.ipynb new file mode 100644 index 000000000..cdff0eb23 --- /dev/null +++ b/docs/source/scribe_data/wikipedia/notebook.ipynb @@ -0,0 +1,308 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "743abe55", + "metadata": { + "toc": true + }, + "source": [ + "

Table of Contents

\n", + "
" + ] + }, + { + "cell_type": "markdown", + "id": "592e4b36", + "metadata": {}, + "source": [ + "**Scribe Autosuggest Generation**\n", + "\n", + "This notebook is used to run the functions found in Scribe-Data to extract, clean and load autosuggestion files into Scribe apps." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "bec5ff38", + "metadata": {}, + "outputs": [], + "source": [ + "import warnings\n", + "\n", + "warnings.filterwarnings(\"ignore\", message=r\"Passing\", category=FutureWarning)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "1c8c7a44", + "metadata": { + "ExecuteTime": { + "end_time": "2023-04-10T19:52:39.142528Z", + "start_time": "2023-04-10T19:52:39.087499Z" + } + }, + "outputs": [], + "source": [ + "import os\n", + "import sys\n", + "import json\n", + "\n", + "from tqdm.auto import tqdm\n", + "from IPython.core.display import display, HTML\n", + "display(HTML(\"\"))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "14a5bf58", + "metadata": { + "ExecuteTime": { + "end_time": "2023-04-10T19:52:39.147871Z", + "start_time": "2023-04-10T19:52:39.144127Z" + } + }, + "outputs": [], + "source": [ + "pwd = os.path.dirname(os.path.realpath(\"gen_autosuggestions.ipynb\"))\n", + "pwd = pwd.split(\"scribe_data\")[0]\n", + "sys.path.append(pwd)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4c7939bd", + "metadata": { + "ExecuteTime": { + "end_time": "2023-04-10T19:52:52.508933Z", + "start_time": "2023-04-10T19:52:52.506137Z" + } + }, + "outputs": [], + "source": [ + "from scribe_data.wikipedia.extract_wiki import (\n", + " download_wiki,\n", + " parse_to_ndjson,\n", + ")\n", + "from scribe_data.wikipedia.process_wiki import (\n", + " clean,\n", + " gen_autosuggestions,\n", + ")\n", + "from scribe_data.utils import get_language_iso" + ] + }, + { + "cell_type": "markdown", + "id": "2add942e", + "metadata": {}, + "source": [ + "# Download and Parse Wiki" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "a722df43", + "metadata": { + "ExecuteTime": { + "end_time": "2023-04-10T19:53:16.467643Z", + "start_time": "2023-04-10T19:53:16.464619Z" + } + }, + "outputs": [], + "source": [ + "# Languages: French, German, Italian, Portuguese, Russian, Spanish, Swedish\n", + "language = \"French\"\n", + "language_abbr = get_language_iso(language)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "11546a55", + "metadata": { + "ExecuteTime": { + "end_time": "2023-04-10T19:53:28.138818Z", + "start_time": "2023-04-10T19:53:17.184354Z" + } + }, + "outputs": [], + "source": [ + "files = download_wiki(\n", + " language=language,\n", + " target_dir=f\"./{language_abbr}wiki_dump\",\n", + " file_limit=None, # None is all files\n", + " dump_id=\"20220920\"\n", + ")\n", + "print(f\"Number of files: {len(files)}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "b40fd9d9", + "metadata": { + "ExecuteTime": { + "end_time": "2022-10-03T12:25:23.192390Z", + "start_time": "2022-10-03T12:25:23.189124Z" + } + }, + "outputs": [], + "source": [ + "parse_to_ndjson(\n", + " output_path=f\"./{language_abbr}wiki.ndjson\",\n", + " input_dir=f\"./{language_abbr}wiki_dump\",\n", + " partitions_dir=f\"./{language_abbr}wiki_partitions\",\n", + " article_limit=None, # None is all articles\n", + " delete_parsed_files=True,\n", + " multicore=True,\n", + " verbose=True,\n", + ")" + ] + }, + { + "cell_type": "markdown", + "id": "3c3f2f51", + "metadata": {}, + "source": [ + "# Process and Clean" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "205a01b4", + "metadata": { + "ExecuteTime": { + "start_time": "2022-10-03T12:25:27.126Z" + } + }, + "outputs": [], + "source": [ + "with open(f\"./{language_abbr}wiki.ndjson\", \"r\") as fin:\n", + " article_texts = [\n", + " json.loads(lang)[1] for lang in tqdm(fin, desc=\"Articles added\", unit=\"articles\")\n", + " ]\n", + "\n", + "print(f\"Number of articles: {len(article_texts)}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "b1b869f4", + "metadata": { + "ExecuteTime": { + "start_time": "2022-10-03T12:25:34.201Z" + } + }, + "outputs": [], + "source": [ + "# Define sample size for up to 1 million articles.\n", + "sample_size = 1000000 / len(article_texts)\n", + "sample_size = min(sample_size, 1)\n", + "sample_size" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "ea9ea16c", + "metadata": { + "ExecuteTime": { + "start_time": "2022-10-03T12:25:40.574Z" + } + }, + "outputs": [], + "source": [ + "text_corpus = clean(\n", + " texts=article_texts,\n", + " language=language,\n", + " remove_words=None,\n", + " sample_size=sample_size,\n", + " verbose=True,\n", + ")" + ] + }, + { + "cell_type": "markdown", + "id": "593e855d", + "metadata": {}, + "source": [ + "# Generate and Upload" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "cda9e874", + "metadata": { + "ExecuteTime": { + "start_time": "2022-10-03T12:25:54.735Z" + } + }, + "outputs": [], + "source": [ + "autosuggest_dict = gen_autosuggestions(\n", + " text_corpus,\n", + " language=language,\n", + " num_words=1000,\n", + " ignore_words=None,\n", + " update_local_data=True,\n", + " verbose=True\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "c8c385b7", + "metadata": { + "ExecuteTime": { + "start_time": "2022-10-03T12:25:55.451Z" + } + }, + "outputs": [], + "source": [ + "# autosuggest_dict" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.12.5" + }, + "toc": { + "base_numbering": 1, + "nav_menu": {}, + "number_sections": true, + "sideBar": true, + "skip_h1_title": false, + "title_cell": "Table of Contents", + "title_sidebar": "Contents", + "toc_cell": true, + "toc_position": {}, + "toc_section_display": true, + "toc_window_display": false + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/requirements.txt b/requirements.txt index abbd5e443..03ed90a90 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,6 +6,7 @@ flax>=0.8.2 iso639-lang>=2.2.3 m2r2>=0.3.3 mwparserfromhell>=0.6 +nbsphinx>=0.9.5 numpydoc>=1.6.0 packaging>=20.9 pandas>=1.5.3 diff --git a/src/scribe_data/check/check_query_forms.py b/src/scribe_data/check/check_query_forms.py new file mode 100644 index 000000000..ac8c87662 --- /dev/null +++ b/src/scribe_data/check/check_query_forms.py @@ -0,0 +1,253 @@ +""" +Check the queries within Scribe-Data to make sure the accessed forms are correct. + +Example +------- + python3 src/scribe_data/check/check_query_forms.py + +.. raw:: html + +""" + +import re +from pathlib import Path + +from scribe_data.cli.cli_utils import ( + LANGUAGE_DATA_EXTRACTION_DIR, + lexeme_form_metadata, +) + +lexeme_form_qid_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 + ) + + +def extract_forms_from_sparql(file_path: Path) -> str: + """ + Extracts the QID from a SPARQL query file based on the provided pattern. + + Parameters + ---------- + file_path : Path + The path to the SPARQL query file from which to extract forms. + + Returns + ------- + query_form_dict : dict + The file path with form labels of the query and their respective QIDs. + + Raises + ------ + FileNotFoundError + If the specified file does not exist. + """ + optional_pattern = r"\s\sOPTIONAL\s*\{([^}]*)\}" + try: + with open(file_path, "r", encoding="utf-8") as file: + query_text = file.read() + + return [ + match[1] + for match in re.finditer(pattern=optional_pattern, string=query_text) + ] + + except Exception as e: + print(f"Error reading {file_path}: {e}") + + return None + + +def check_form_label(form_text: str): + """ + Checks that the label of the form matches the representation label. + + Parameters + ---------- + form_text : str + The text that defines the form within the query. + + Returns + ------- + bool + Whether the form and its current representation label match (repForm and rep). + """ + form_label_line_pattern = r"\?lexeme ontolex:lexicalForm .* \." + + if line_match := re.search(pattern=form_label_line_pattern, string=form_text): + form_label_pattern = r".*\?(.*)\." + if label_match := re.search(pattern=form_label_pattern, string=line_match[0]): + form_label = label_match[1].strip() + current_form_rep_label = form_label.split("Form")[0] + + if not line_match: + return False + + onto_rep_pattern = r"{form_label} ontolex:representation .* ;".format( + form_label=form_label + ) + + if not (line_match := re.search(pattern=onto_rep_pattern, string=form_text)): + return False + + rep_label_pattern = r".*\?(.*);" + if label_match := re.search(pattern=rep_label_pattern, string=line_match[0]): + form_rep_label = label_match[1].strip() + + return form_rep_label == current_form_rep_label + + +def extract_form_rep_label(form_text: str): + """ + Extracts the representation label from an optional query form. + + Parameters + ---------- + form_text : str + The text that defines the form within the query. + + Returns + ------- + str + The label of the form representation. + """ + onto_rep_pattern = r"ontolex:representation .* ;" + if line_match := re.search(pattern=onto_rep_pattern, string=form_text): + rep_label_pattern = r".*\?(.*);" + if label_match := re.search(pattern=rep_label_pattern, string=line_match[0]): + return label_match[1].strip() + + +def extract_form_qids(form_text: str): + """ + Extracts all QIDs from an optional query form. + + Parameters + ---------- + form_text : str + The text that defines the form within the query. + + Returns + ------- + list[str] + All QIDS that make up the form. + """ + qids_pattern = r"wikibase:grammaticalFeature .+ \." + if match := re.search(pattern=qids_pattern, string=form_text): + return [q.split("wd:")[1].split(" .")[0] for q in match[0].split(", ")] + + +def return_correct_form_label(qids: list): + """ + Returns the correct label for a lexeme form representation given the QIDs that compose it. + + Parameters + ---------- + qids : list[str] + All QIDS that make up the form. + + Returns + ------- + correct_label : str + The label for the representation given the QIDs. + """ + if not qids: + return "Invalid query formatting found" + + if not set(qids) <= set(lexeme_form_qid_order): + not_included_qids = sorted(set(qids) - set(lexeme_form_qid_order)) + qid_label = "QIDs" if len(not_included_qids) > 1 else "QID" + return f"{qid_label} {', '.join(not_included_qids)} not included in lexeme_form.metadata.json" + + qids_ordered = [q for q in lexeme_form_qid_order if q in qids] + correct_label = "" + for q in qids_ordered: + for category_vals in lexeme_form_metadata.values(): + for qid_label in category_vals.values(): + if q == qid_label["qid"]: + correct_label += qid_label["label"] + + return correct_label[:1].lower() + correct_label[1:] + + +def check_query_forms() -> None: + """ + Validates SPARQL queries in the language data directory to check for correct form QIDs. + """ + error_output = "" + index = 0 + for query_file in LANGUAGE_DATA_EXTRACTION_DIR.glob("**/*.sparql"): + query_file_str = str(query_file) + if extract_forms_from_sparql(query_file): + query_form_check_dict = {} + for form_text in extract_forms_from_sparql(query_file): + if ( + "ontolex:lexicalForm" in form_text + and "ontolex:representation" in form_text + ): + form_rep_label = extract_form_rep_label(form_text=form_text) + check = check_form_label(form_text=form_text) + qids = extract_form_qids(form_text=form_text) + correct_form_rep_label = return_correct_form_label(qids=qids) + + query_form_check_dict[form_rep_label] = { + "form_rep_match": check, + "qids": qids, + "correct_form_rep_label": correct_form_rep_label, + } + + if query_form_check_dict: + incorrect_query_labels = [] + for k in query_form_check_dict: + if k != query_form_check_dict[k]["correct_form_rep_label"]: + incorrect_query_labels.append( + (k, query_form_check_dict[k]["correct_form_rep_label"]) + ) + + elif query_form_check_dict[k]["form_rep_match"] is False: + incorrect_query_labels.append( + (k, "Form and representation labels don't match") + ) + + if incorrect_query_labels: + current_rep_label_to_correct_label_str = [ + f"{incorrect_query_labels[i][0]} : {incorrect_query_labels[i][1]}" + for i in range(len(incorrect_query_labels)) + ] + incorrect_query_form_rep_labels_str = "\n - ".join( + current_rep_label_to_correct_label_str + ) + + error_output += f"\n{index}. {query_file_str}:\n - {incorrect_query_form_rep_labels_str}\n" + index += 1 + + if error_output: + print( + "There are query forms that have invalid representation labels given their forms:" + ) + print(error_output) + print("Please correct the above lexeme form representation labels.") + exit(1) + + else: + print("All query forms are labeled and formatted correctly.") + + +if __name__ == "__main__": + check_query_forms() diff --git a/src/scribe_data/check/check_query_identifiers.py b/src/scribe_data/check/check_query_identifiers.py index 754827165..1a87fbf38 100644 --- a/src/scribe_data/check/check_query_identifiers.py +++ b/src/scribe_data/check/check_query_identifiers.py @@ -1,5 +1,5 @@ """ -Check the queries within Scribe-Data to make sure the data they're accessing is correct. +Check the queries within Scribe-Data to make sure the language and data type are correct. Example ------- @@ -35,6 +35,72 @@ ) +def is_valid_language(query_file: Path, lang_qid: str) -> bool: + """ + Validates the language QID against the expected QID for the directory. + + Parameters + ---------- + query_file : Path + The path to the SPARQL query file being validated. + + lang_qid : str + The QID of the language extracted from the SPARQL query. + + Returns + ------- + bool + True if the language QID is valid, otherwise False. + + Example + ------- + > is_valid_language(Path("path/to/query.sparql"), "Q123456") + True + """ + lang_directory_name = query_file.parent.parent.name.lower() + language_entry = language_metadata.get(lang_directory_name) + + if not language_entry: + # Look for sub-languages. + for lang, details in language_metadata.items(): + if "sub_languages" in details: + if sub_language_entry := details["sub_languages"].get( + lang_directory_name + ): + language_entry = sub_language_entry + break + + return lang_qid == language_entry["qid"] if language_entry else False + + +def is_valid_data_type(query_file: Path, data_type_qid: str) -> bool: + """ + Validates the data type QID against the expected QID for the directory. + + Parameters + ---------- + query_file : Path + The path to the SPARQL query file being validated. + + data_type_qid : str + The QID of the data type extracted from the SPARQL query. + + Returns + ------- + bool + True if the data type QID is valid, otherwise False. + + Example + ------- + > is_valid_data_type(Path("path/to/query.sparql"), "Q654321") + True + """ + directory_name = query_file.parent.name # e.g., "nouns" or "verbs" + expected_data_type_qid = data_type_metadata.get(directory_name) + + return data_type_qid == expected_data_type_qid + + def extract_qid_from_sparql(file_path: Path, pattern: str) -> str: """ Extracts the QID from a SPARQL query file based on the provided pattern. @@ -59,8 +125,8 @@ def extract_qid_from_sparql(file_path: Path, pattern: str) -> str: """ try: with open(file_path, "r", encoding="utf-8") as file: - content = file.read() - if match := re.search(pattern, content): + query_text = file.read() + if match := re.search(pattern=pattern, string=query_text): return match[0].split("wd:")[1] except Exception as e: @@ -69,28 +135,28 @@ def extract_qid_from_sparql(file_path: Path, pattern: str) -> str: return None -def check_queries() -> None: +def check_query_identifiers() -> None: """ - Validates SPARQL queries in the specified directory to check for correct language - and data type QIDs. - - This function scans all SPARQL query files in the LANGUAGE_DATA_EXTRACTION_DIR - and prints out any files with incorrect QIDs for both languages and data types. + Validates SPARQL queries in the language data directory to check for correct language and data type QIDs. """ language_pattern = r"\?lexeme dct:language wd:Q\d+" data_type_pattern = r"wikibase:lexicalCategory\s+wd:Q\d+" incorrect_languages = [] incorrect_data_types = [] - language_extraction_dir = LANGUAGE_DATA_EXTRACTION_DIR - for query_file in language_extraction_dir.glob("**/*.sparql"): - lang_qid = extract_qid_from_sparql(query_file, language_pattern) - data_type_qid = extract_qid_from_sparql(query_file, data_type_pattern) + for query_file in LANGUAGE_DATA_EXTRACTION_DIR.glob("**/*.sparql"): + lang_qid = extract_qid_from_sparql( + file_path=query_file, pattern=language_pattern + ) + data_type_qid = extract_qid_from_sparql( + file_path=query_file, pattern=data_type_pattern + ) - # Validate language QID and data type QID - if not is_valid_language(query_file, lang_qid): + # Validate language QID and data type QID. + if not is_valid_language(query_file=query_file, lang_qid=lang_qid): incorrect_languages.append(query_file) - if not is_valid_data_type(query_file, data_type_qid): + + if not is_valid_data_type(query_file=query_file, data_type_qid=data_type_qid): incorrect_data_types.append(query_file) if incorrect_languages: @@ -108,73 +174,5 @@ def check_queries() -> None: sys.exit(1) -def is_valid_language(query_file: Path, lang_qid: str) -> bool: - """ - Validates the language QID against the expected QID for the directory. - - Parameters - ---------- - query_file : Path - The path to the SPARQL query file being validated. - lang_qid : str - The QID of the language extracted from the SPARQL query. - - Returns - ------- - bool - True if the language QID is valid, otherwise False. - - Example - ------- - > is_valid_language(Path("path/to/query.sparql"), "Q123456") - True - """ - lang_directory_name = query_file.parent.parent.name.lower() - language_entry = language_metadata.get(lang_directory_name) - - if not language_entry: - # Look for sub-languages - for lang, details in language_metadata.items(): - if "sub_languages" in details: - sub_language_entry = details["sub_languages"].get(lang_directory_name) - if sub_language_entry: - language_entry = sub_language_entry - break - - if not language_entry: - return False - - expected_language_qid = language_entry["qid"] - - return lang_qid == expected_language_qid - - -def is_valid_data_type(query_file: Path, data_type_qid: str) -> bool: - """ - Validates the data type QID against the expected QID for the directory. - - Parameters - ---------- - query_file : Path - The path to the SPARQL query file being validated. - data_type_qid : str - The QID of the data type extracted from the SPARQL query. - - Returns - ------- - bool - True if the data type QID is valid, otherwise False. - - Example - ------- - > is_valid_data_type(Path("path/to/query.sparql"), "Q654321") - True - """ - directory_name = query_file.parent.name # e.g., "nouns" or "verbs" - expected_data_type_qid = data_type_metadata.get(directory_name) - - return data_type_qid == expected_data_type_qid - - if __name__ == "__main__": - check_queries() + check_query_identifiers() diff --git a/src/scribe_data/cli/cli_utils.py b/src/scribe_data/cli/cli_utils.py index 4bfbb58c6..6ef55b853 100644 --- a/src/scribe_data/cli/cli_utils.py +++ b/src/scribe_data/cli/cli_utils.py @@ -37,6 +37,9 @@ DATA_TYPE_METADATA_FILE = ( Path(__file__).parent.parent / "resources" / "data_type_metadata.json" ) +LEXEME_FORM_METADATA_FILE = ( + Path(__file__).parent.parent / "resources" / "lexeme_form_metadata.json" +) DATA_DIR = Path(DEFAULT_JSON_EXPORT_DIR) try: @@ -54,6 +57,13 @@ except (IOError, json.JSONDecodeError) as e: print(f"Error reading data type metadata: {e}") +try: + with LEXEME_FORM_METADATA_FILE.open("r", encoding="utf-8") as file: + lexeme_form_metadata = json.load(file) + +except (IOError, json.JSONDecodeError) as e: + print(f"Error reading lexeme form metadata: {e}") + language_map = {} language_to_qid = {} diff --git a/src/scribe_data/language_data_extraction/Arabic/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Arabic/adjectives/query_adjectives.sparql index 60275a1c5..eae27703e 100644 --- a/src/scribe_data/language_data_extraction/Arabic/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Arabic/adjectives/query_adjectives.sparql @@ -5,30 +5,30 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?femSingularNominativeIndef - ?masSingularNominativeIndef - ?femDualNominativeIndef - ?masDualNominativeIndef - ?femPluralNominativeIndef - ?masPluralNominativeIndef - ?femSingularAccusativeIndef - ?masSingularAccusativeIndef - ?femDualAccusativeIndef - ?masDualAccusativeIndef - ?femPluralAccusativeIndef - ?masPluralAccusativeIndef - ?femSingularGenitiveIndef - ?masSingularGenitiveIndef - ?femDualGenitiveIndef - ?masDualGenitiveIndef - ?femPluralGenitiveIndef - ?masPluralGenitiveIndef - ?femSingularPausalIndef - ?masSingularPausalIndef - ?femDualPausalIndef - ?masDualPausalIndef - ?femPluralPausalIndef - ?masPluralPausalIndef + ?nominativeFeminineIndefiniteSingular + ?nominativeMasculineIndefiniteSingular + ?nominativeFeminineIndefiniteDual + ?nominativeMasculineIndefiniteDual + ?nominativeFeminineIndefinitePlural + ?nominativeMasculineIndefinitePlural + ?accusativeFeminineIndefiniteSingular + ?accusativeMasculineIndefiniteSingular + ?accusativeFeminineIndefiniteDual + ?accusativeMasculineIndefiniteDual + ?accusativeFeminineIndefinitePlural + ?accusativeMasculineIndefinitePlural + ?genitiveFeminineIndefiniteSingular + ?genitiveMasculineIndefiniteSingular + ?genitiveFeminineIndefiniteDual + ?genitiveMasculineIndefiniteDual + ?genitiveFeminineIndefinitePlural + ?genitiveMasculineIndefinitePlural + ?pausalFeminineIndefiniteSingular + ?pausalMasculineIndefiniteSingular + ?pausalFeminineIndefiniteDual + ?pausalMasculineIndefiniteDual + ?pausalFeminineIndefinitePlural + ?pausalMasculineIndefinitePlural WHERE { ?lexeme dct:language wd:Q13955 ; @@ -40,42 +40,42 @@ WHERE { # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularNominativeIndefForm . - ?femSingularNominativeIndefForm ontolex:representation ?femSingularNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefiniteSingularForm . + ?nominativeFeminineIndefiniteSingularForm ontolex:representation ?nominativeFeminineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q131105, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularNominativeIndefForm . - ?masSingularNominativeIndefForm ontolex:representation ?masSingularNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefiniteSingularForm . + ?nominativeMasculineIndefiniteSingularForm ontolex:representation ?nominativeMasculineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q131105, wd:Q53997857 . } # Dual OPTIONAL { - ?lexeme ontolex:lexicalForm ?femDualNominativeIndefForm . - ?femDualNominativeIndefForm ontolex:representation ?femDualNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefiniteDualForm . + ?nominativeFeminineIndefiniteDualForm ontolex:representation ?nominativeFeminineIndefiniteDual ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q131105, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masDualNominativeIndefForm . - ?masDualNominativeIndefForm ontolex:representation ?masDualNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefiniteDualForm . + ?nominativeMasculineIndefiniteDualForm ontolex:representation ?nominativeMasculineIndefiniteDual ; wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q131105, wd:Q53997857 . } # Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralNominativeIndefForm . - ?femPluralNominativeIndefForm ontolex:representation ?femPluralNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefinitePluralForm . + ?nominativeFeminineIndefinitePluralForm ontolex:representation ?nominativeFeminineIndefinitePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q131105, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralNominativeIndefForm . - ?masPluralNominativeIndefForm ontolex:representation ?masPluralNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefinitePluralForm . + ?nominativeMasculineIndefinitePluralForm ontolex:representation ?nominativeMasculineIndefinitePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q131105, wd:Q53997857 . } @@ -84,42 +84,42 @@ WHERE { # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularAccusativeIndefForm . - ?femSingularAccusativeIndefForm ontolex:representation ?femSingularAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteSingularForm . + ?accusativeFeminineIndefiniteSingularForm ontolex:representation ?accusativeFeminineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146078, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularAccusativeIndefForm . - ?masSingularAccusativeIndefForm ontolex:representation ?masSingularAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteSingularForm . + ?accusativeMasculineIndefiniteSingularForm ontolex:representation ?accusativeMasculineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146078, wd:Q53997857 . } # Dual OPTIONAL { - ?lexeme ontolex:lexicalForm ?femDualAccusativeIndefForm . - ?femDualAccusativeIndefForm ontolex:representation ?femDualAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteDualForm . + ?accusativeFeminineIndefiniteDualForm ontolex:representation ?accusativeFeminineIndefiniteDual ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146078, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masDualAccusativeIndefForm . - ?masDualAccusativeIndefForm ontolex:representation ?masDualAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteDualForm . + ?accusativeMasculineIndefiniteDualForm ontolex:representation ?accusativeMasculineIndefiniteDual ; wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146078, wd:Q53997857 . } # Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralAccusativeIndefForm . - ?femPluralAccusativeIndefForm ontolex:representation ?femPluralAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefinitePluralForm . + ?accusativeFeminineIndefinitePluralForm ontolex:representation ?accusativeFeminineIndefinitePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146078, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralAccusativeIndefForm . - ?masPluralAccusativeIndefForm ontolex:representation ?masPluralAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefinitePluralForm . + ?accusativeMasculineIndefinitePluralForm ontolex:representation ?accusativeMasculineIndefinitePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146078, wd:Q53997857 . } @@ -128,42 +128,42 @@ WHERE { # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularGanitiveIndefForm . - ?femSingularGanitiveIndefForm ontolex:representation ?femSingularGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteSingularForm . + ?genitiveFeminineIndefiniteSingularForm ontolex:representation ?genitiveFeminineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146233, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularGanitiveIndefForm . - ?masSingularGanitiveIndefForm ontolex:representation ?masSingularGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteSingularForm . + ?genitiveMasculineIndefiniteSingularForm ontolex:representation ?genitiveMasculineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146233, wd:Q53997857 . } # Dual OPTIONAL { - ?lexeme ontolex:lexicalForm ?femDualGanitiveIndefForm . - ?femDualGanitiveIndefForm ontolex:representation ?femDualGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteDualForm . + ?genitiveFeminineIndefiniteDualForm ontolex:representation ?genitiveFeminineIndefiniteDual ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146233, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masDualGanitiveIndefForm . - ?masDualGanitiveIndefForm ontolex:representation ?masDualGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteDualForm . + ?genitiveMasculineIndefiniteDualForm ontolex:representation ?genitiveMasculineIndefiniteDual ; wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146233, wd:Q53997857 . } # Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralGanitiveIndefForm . - ?femPluralGanitiveIndefForm ontolex:representation ?femPluralGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefinitePluralForm . + ?genitiveFeminineIndefinitePluralForm ontolex:representation ?genitiveFeminineIndefinitePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146233, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralGanitiveIndefForm . - ?masPluralGanitiveIndefForm ontolex:representation ?masPluralGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefinitePluralForm . + ?genitiveMasculineIndefinitePluralForm ontolex:representation ?genitiveMasculineIndefinitePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146233, wd:Q53997857 . } @@ -172,42 +172,42 @@ WHERE { # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularPausalIndefForm . - ?femSingularPausalIndefForm ontolex:representation ?femSingularPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalFeminineIndefiniteSingularForm . + ?pausalFeminineIndefiniteSingularForm ontolex:representation ?pausalFeminineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q117262361, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularPausalIndefForm . - ?masSingularPausalIndefForm ontolex:representation ?masSingularPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteSingularForm . + ?pausalMasculineIndefiniteSingularForm ontolex:representation ?pausalMasculineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q117262361, wd:Q53997857 . } # Dual OPTIONAL { - ?lexeme ontolex:lexicalForm ?femDualPausalIndefForm . - ?femDualPausalIndefForm ontolex:representation ?femDualPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalFeminineIndefiniteDualForm . + ?pausalFeminineIndefiniteDualForm ontolex:representation ?pausalFeminineIndefiniteDual ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q117262361, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masDualPausalIndefForm . - ?masDualPausalIndefForm ontolex:representation ?masDualPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteDualForm . + ?pausalMasculineIndefiniteDualForm ontolex:representation ?pausalMasculineIndefiniteDual ; wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q117262361, wd:Q53997857 . } # Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralPausalIndefForm . - ?femPluralPausalIndefForm ontolex:representation ?femPluralPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalFeminineIndefinitePluralForm . + ?pausalFeminineIndefinitePluralForm ontolex:representation ?pausalFeminineIndefinitePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q117262361, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralPausalIndefForm . - ?masPluralPausalIndefForm ontolex:representation ?masPluralPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalMasculineIndefinitePluralForm . + ?pausalMasculineIndefinitePluralForm ontolex:representation ?pausalMasculineIndefinitePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q117262361, wd:Q53997857 . } } diff --git a/src/scribe_data/language_data_extraction/Arabic/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Arabic/nouns/query_nouns.sparql index dda244732..c321b9127 100644 --- a/src/scribe_data/language_data_extraction/Arabic/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Arabic/nouns/query_nouns.sparql @@ -6,33 +6,33 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?noun - ?femSingularNominativeIndef - ?masSingularNominativeIndef - ?femDualNominativeIndef - ?masDualNominativeIndef - ?femPluralNominativeIndef - ?masPluralNominativeIndef - - ?femSingularAccusativeIndef - ?masSingularAccusativeIndef - ?femDualAccusativeIndef - ?masDualAccusativeIndef - ?femPluralAccusativeIndef - ?masPluralAccusativeIndef - - ?femSingularGenitiveIndef - ?masSingularGenitiveIndef - ?femDualGenitiveIndef - ?masDualGenitiveIndef - ?femPluralGenitiveIndef - ?masPluralGenitiveIndef - - ?femSingularPausalIndef - ?masSingularPausalIndef - ?femDualPausalIndef - ?masDualPausalIndef - ?femPluralPausalIndef - ?masPluralPausalIndef + ?nominativeFeminineIndefiniteSingular + ?nominativeMasculineIndefiniteSingular + ?nominativeFeminineIndefiniteDual + ?nominativeMasculineIndefiniteDual + ?nominativeFeminineIndefinitePlural + ?nominativeMasculineIndefinitePlural + + ?accusativeFeminineIndefiniteSingular + ?accusativeMasculineIndefiniteSingular + ?accusativeFeminineIndefiniteDual + ?accusativeMasculineIndefiniteDual + ?accusativeFeminineIndefinitePlural + ?accusativeMasculineIndefinitePlural + + ?genitiveFeminineIndefiniteSingular + ?genitiveMasculineIndefiniteSingular + ?genitiveFeminineIndefiniteDual + ?genitiveMasculineIndefiniteDual + ?genitiveFeminineIndefinitePlural + ?genitiveMasculineIndefinitePlural + + ?pausalFeminineIndefiniteSingular + ?pausalMasculineIndefiniteSingular + ?pausalFeminineIndefiniteDual + ?pausalMasculineIndefiniteDual + ?pausalFeminineIndefinitePlural + ?pausalMasculineIndefinitePlural WHERE { ?lexeme dct:language wd:Q13955 ; @@ -44,42 +44,42 @@ WHERE { # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularNominativeIndefForm . - ?femSingularNominativeIndefForm ontolex:representation ?femSingularNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefiniteSingularForm . + ?nominativeFeminineIndefiniteSingularForm ontolex:representation ?nominativeFeminineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q131105, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularNominativeIndefForm . - ?masSingularNominativeIndefForm ontolex:representation ?masSingularNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefiniteSingularForm . + ?nominativeMasculineIndefiniteSingularForm ontolex:representation ?nominativeMasculineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q131105, wd:Q53997857 . } # Dual OPTIONAL { - ?lexeme ontolex:lexicalForm ?femDualNominativeIndefForm . - ?femDualNominativeIndefForm ontolex:representation ?femDualNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefiniteDualForm . + ?nominativeFeminineIndefiniteDualForm ontolex:representation ?nominativeFeminineIndefiniteDual ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q131105, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masDualNominativeIndefForm . - ?masDualNominativeIndefForm ontolex:representation ?masDualNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefiniteDualForm . + ?nominativeMasculineIndefiniteDualForm ontolex:representation ?nominativeMasculineIndefiniteDual ; wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q131105, wd:Q53997857 . } # Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralNominativeIndefForm . - ?femPluralNominativeIndefForm ontolex:representation ?femPluralNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeFeminineIndefinitePluralForm . + ?nominativeFeminineIndefinitePluralForm ontolex:representation ?nominativeFeminineIndefinitePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q131105, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralNominativeIndefForm . - ?masPluralNominativeIndefForm ontolex:representation ?masPluralNominativeIndef ; + ?lexeme ontolex:lexicalForm ?nominativeMasculineIndefinitePluralForm . + ?nominativeMasculineIndefinitePluralForm ontolex:representation ?nominativeMasculineIndefinitePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q131105, wd:Q53997857 . } @@ -88,42 +88,42 @@ WHERE { # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularAccusativeIndefForm . - ?femSingularAccusativeIndefForm ontolex:representation ?femSingularAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteSingularForm . + ?accusativeFeminineIndefiniteSingularForm ontolex:representation ?accusativeFeminineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146078, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularAccusativeIndefForm . - ?masSingularAccusativeIndefForm ontolex:representation ?masSingularAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteSingularForm . + ?accusativeMasculineIndefiniteSingularForm ontolex:representation ?accusativeMasculineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146078, wd:Q53997857 . } # Dual OPTIONAL { - ?lexeme ontolex:lexicalForm ?femDualAccusativeIndefForm . - ?femDualAccusativeIndefForm ontolex:representation ?femDualAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefiniteDualForm . + ?accusativeFeminineIndefiniteDualForm ontolex:representation ?accusativeFeminineIndefiniteDual ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146078, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masDualAccusativeIndefForm . - ?masDualAccusativeIndefForm ontolex:representation ?masDualAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefiniteDualForm . + ?accusativeMasculineIndefiniteDualForm ontolex:representation ?accusativeMasculineIndefiniteDual ; wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146078, wd:Q53997857 . } # Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralAccusativeIndefForm . - ?femPluralAccusativeIndefForm ontolex:representation ?femPluralAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeFeminineIndefinitePluralForm . + ?accusativeFeminineIndefinitePluralForm ontolex:representation ?accusativeFeminineIndefinitePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146078, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralAccusativeIndefForm . - ?masPluralAccusativeIndefForm ontolex:representation ?masPluralAccusativeIndef ; + ?lexeme ontolex:lexicalForm ?accusativeMasculineIndefinitePluralForm . + ?accusativeMasculineIndefinitePluralForm ontolex:representation ?accusativeMasculineIndefinitePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146078, wd:Q53997857 . } @@ -132,42 +132,42 @@ WHERE { # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularGanitiveIndefForm . - ?femSingularGanitiveIndefForm ontolex:representation ?femSingularGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteSingularForm . + ?genitiveFeminineIndefiniteSingularForm ontolex:representation ?genitiveFeminineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q146233, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularGanitiveIndefForm . - ?masSingularGanitiveIndefForm ontolex:representation ?masSingularGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteSingularForm . + ?genitiveMasculineIndefiniteSingularForm ontolex:representation ?genitiveMasculineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q146233, wd:Q53997857 . } # Dual OPTIONAL { - ?lexeme ontolex:lexicalForm ?femDualGanitiveIndefForm . - ?femDualGanitiveIndefForm ontolex:representation ?femDualGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefiniteDualForm . + ?genitiveFeminineIndefiniteDualForm ontolex:representation ?genitiveFeminineIndefiniteDual ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q146233, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masDualGanitiveIndefForm . - ?masDualGanitiveIndefForm ontolex:representation ?masDualGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefiniteDualForm . + ?genitiveMasculineIndefiniteDualForm ontolex:representation ?genitiveMasculineIndefiniteDual ; wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q146233, wd:Q53997857 . } # Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralGanitiveIndefForm . - ?femPluralGanitiveIndefForm ontolex:representation ?femPluralGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveFeminineIndefinitePluralForm . + ?genitiveFeminineIndefinitePluralForm ontolex:representation ?genitiveFeminineIndefinitePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q146233, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralGanitiveIndefForm . - ?masPluralGanitiveIndefForm ontolex:representation ?masPluralGanitiveIndef ; + ?lexeme ontolex:lexicalForm ?genitiveMasculineIndefinitePluralForm . + ?genitiveMasculineIndefinitePluralForm ontolex:representation ?genitiveMasculineIndefinitePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q146233, wd:Q53997857 . } @@ -176,42 +176,42 @@ WHERE { # Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularPausalIndefForm . - ?femSingularPausalIndefForm ontolex:representation ?femSingularPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalFeminineIndefiniteSingularForm . + ?pausalFeminineIndefiniteSingularForm ontolex:representation ?pausalFeminineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q117262361, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularPausalIndefForm . - ?masSingularPausalIndefForm ontolex:representation ?masSingularPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteSingularForm . + ?pausalMasculineIndefiniteSingularForm ontolex:representation ?pausalMasculineIndefiniteSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q117262361, wd:Q53997857 . } # Dual OPTIONAL { - ?lexeme ontolex:lexicalForm ?femDualPausalIndefForm . - ?femDualPausalIndefForm ontolex:representation ?femDualPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalFeminineIndefiniteDualForm . + ?pausalFeminineIndefiniteDualForm ontolex:representation ?pausalFeminineIndefiniteDual ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110022, wd:Q117262361, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masDualPausalIndefForm . - ?masDualPausalIndefForm ontolex:representation ?masDualPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalMasculineIndefiniteDualForm . + ?pausalMasculineIndefiniteDualForm ontolex:representation ?pausalMasculineIndefiniteDual ; wikibase:grammaticalFeature wd:Q499327, wd:Q110022, wd:Q117262361, wd:Q53997857 . } # Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralPausalIndefForm . - ?femPluralPausalIndefForm ontolex:representation ?femPluralPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalFeminineIndefinitePluralForm . + ?pausalFeminineIndefinitePluralForm ontolex:representation ?pausalFeminineIndefinitePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q117262361, wd:Q53997857 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralPausalIndefForm . - ?masPluralPausalIndefForm ontolex:representation ?masPluralPausalIndef ; + ?lexeme ontolex:lexicalForm ?pausalMasculineIndefinitePluralForm . + ?pausalMasculineIndefinitePluralForm ontolex:representation ?pausalMasculineIndefinitePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q117262361, wd:Q53997857 . } } diff --git a/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_1.sparql index 60308b2f4..6251f4f11 100644 --- a/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_1.sparql @@ -5,9 +5,17 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb - ?presFPS ?presSPSM ?presSPSF ?presTPSM ?presTPSF - ?presSPD ?presTPDM ?presTPDF - ?presFPP ?presSPPM ?presSPPF + ?indicativeFirstPersonSingularFiilMudari + ?feminineIndicativeSecondPersonSingularFiilMudari + ?masculineIndicativeSecondPersonSingularFiilMudari + ?feminineIndicativeThirdPersonSingularFiilMudari + ?masculineIndicativeThirdPersonSingularFiilMudari + ?indicativeSecondPersonDualFiilMudari + ?feminineIndicativeThirdPersonDualFiilMudari + ?masculineIndicativeThirdPersonDualFiilMudari + ?indicativeFirstPersonPluralFiilMudari + ?feminineIndicativeSecondPersonPluralFiilMudari + ?masculineIndicativeSecondPersonPluralFiilMudari WHERE { ?lexeme dct:language wd:Q13955 ; @@ -17,68 +25,68 @@ WHERE { # MARK: Present OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPSForm . - ?presFPSForm ontolex:representation ?presFPS ; + ?lexeme ontolex:lexicalForm ?indicativeFirstPersonSingularFiilMudariForm . + ?indicativeFirstPersonSingularFiilMudariForm ontolex:representation ?indicativeFirstPersonSingularFiilMudari ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPSMForm . - ?presSPSMForm ontolex:representation ?presSPSM ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q499327, 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 ?presSPSFForm . - ?presSPSFForm ontolex:representation ?presSPSF ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1775415, 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 ?presTPSMForm . - ?presTPSMForm ontolex:representation ?presTPSM ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q499327, 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 { - ?lexeme ontolex:lexicalForm ?presTPSFForm . - ?presTPSFForm ontolex:representation ?presTPSF ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, 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 ?presSPDForm . - ?presSPDForm ontolex:representation ?presSPD ; + ?lexeme ontolex:lexicalForm ?indicativeSecondPersonDualFiilMudariForm . + ?indicativeSecondPersonDualFiilMudariForm ontolex:representation ?indicativeSecondPersonDualFiilMudari ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110022, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPDMForm . - ?presTPDMForm ontolex:representation ?presTPDM ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q499327, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?feminineIndicativeThirdPersonDualFiilMudariForm . + ?feminineIndicativeThirdPersonDualFiilMudariForm ontolex:representation ?feminineIndicativeThirdPersonDualFiilMudari ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q1775415, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPDFForm . - ?presTPDFForm ontolex:representation ?presTPDF ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q1775415, wd:Q682111, wd:Q12230930 . + ?lexeme ontolex:lexicalForm ?masculineIndicativeThirdPersonDualFiilMudariForm . + ?masculineIndicativeThirdPersonDualFiilMudariForm ontolex:representation ?masculineIndicativeThirdPersonDualFiilMudari ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q499327, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPPForm . - ?presFPPForm ontolex:representation ?presFPP ; + ?lexeme ontolex:lexicalForm ?indicativeFirstPersonPluralFiilMudariForm . + ?indicativeFirstPersonPluralFiilMudariForm ontolex:representation ?indicativeFirstPersonPluralFiilMudari ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPPMForm . - ?presSPPMForm ontolex:representation ?presSPPM ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, 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 ?presSPPFForm . - ?presSPPFForm ontolex:representation ?presSPPF ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1775415, wd:Q682111, wd:Q12230930 . + ?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/language_data_extraction/Arabic/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_2.sparql index 5b66b9827..f69837ae1 100644 --- a/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_2.sparql @@ -5,9 +5,17 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb - ?pastFPS ?pastSPSM ?pastSPSF ?pastTPSM ?pastTPSF - ?pastSPD ?pastTPDM ?pastTPDF - ?pastFPP ?pastSPPM ?pastSPPF + ?activePerformativeFirstPersonSingular + ?feminineActivePerformativeSecondPersonSingular + ?masculineActivePerformativeSecondPersonSingular + ?feminineActivePerformativeThirdPersonSingular + ?masculineActivePerformativeThirdPersonSingular + ?activePerformativeSecondPersonDual + ?feminineActivePerformativeThirdPersonDual + ?masculineActivePerformativeThirdPersonDual + ?activePerformativeFirstPersonPlural + ?feminineActivePerformativeSecondPersonPlural + ?masculineActivePerformativeSecondPersonPlural WHERE { ?lexeme dct:language wd:Q13955 ; @@ -17,68 +25,68 @@ WHERE { # MARK: Performative Past OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastFPSForm . - ?pastFPSForm ontolex:representation ?pastFPS ; + ?lexeme ontolex:lexicalForm ?activePerformativeFirstPersonSingularForm . + ?activePerformativeFirstPersonSingularForm ontolex:representation ?activePerformativeFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q1317831, wd:Q124351233 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastSPSMForm . - ?pastSPSMForm ontolex:representation ?pastSPSM ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q499327, wd:Q1317831, wd:Q124351233 . + ?lexeme ontolex:lexicalForm ?feminineActivePerformativeSecondPersonSingularForm . + ?feminineActivePerformativeSecondPersonSingularForm ontolex:representation ?feminineActivePerformativeSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1775415, wd:Q1317831, wd:Q124351233 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastSPSFForm . - ?pastSPSFForm ontolex:representation ?pastSPSF ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1775415, 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 ?pastTPSMForm . - ?pastTPSMForm ontolex:representation ?pastTPSM ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q499327, wd:Q1317831, wd:Q124351233 . + ?lexeme ontolex:lexicalForm ?feminineActivePerformativeThirdPersonSingularForm . + ?feminineActivePerformativeThirdPersonSingularForm ontolex:representation ?feminineActivePerformativeThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q1775415, wd:Q1317831, wd:Q124351233 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastTPSFForm . - ?pastTPSFForm ontolex:representation ?pastTPSF ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, 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 ?pastSPDForm . - ?pastSPDForm ontolex:representation ?pastSPD ; + ?lexeme ontolex:lexicalForm ?activePerformativeSecondPersonDualForm . + ?activePerformativeSecondPersonDualForm ontolex:representation ?activePerformativeSecondPersonDual ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110022, wd:Q1317831, wd:Q124351233 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastTPDMForm . - ?pastTPDMForm ontolex:representation ?pastTPDM ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q499327, wd:Q1317831, wd:Q124351233 . + ?lexeme ontolex:lexicalForm ?feminineActivePerformativeThirdPersonDualForm . + ?feminineActivePerformativeThirdPersonDualForm ontolex:representation ?feminineActivePerformativeThirdPersonDual ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q1775415, wd:Q1317831, wd:Q124351233 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastTPDFForm . - ?pastTPDFForm ontolex:representation ?pastTPDF ; - wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q1775415, wd:Q1317831, wd:Q124351233 . + ?lexeme ontolex:lexicalForm ?masculineActivePerformativeThirdPersonDualForm . + ?masculineActivePerformativeThirdPersonDualForm ontolex:representation ?masculineActivePerformativeThirdPersonDual ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110022, wd:Q499327, wd:Q1317831, wd:Q124351233 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastFPPForm . - ?pastFPPForm ontolex:representation ?pastFPP ; + ?lexeme ontolex:lexicalForm ?activePerformativeFirstPersonPluralForm . + ?activePerformativeFirstPersonPluralForm ontolex:representation ?activePerformativeFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q1317831, wd:Q124351233 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastSPPMForm . - ?pastSPPMForm ontolex:representation ?pastSPPM ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, 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 { - ?lexeme ontolex:lexicalForm ?pastSPPFForm . - ?pastSPPFForm ontolex:representation ?pastSPPF ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1775415, wd:Q1317831, wd:Q124351233 . + ?lexeme ontolex:lexicalForm ?masculineActivePerformativeSecondPersonPluralForm . + ?masculineActivePerformativeSecondPersonPluralForm ontolex:representation ?masculineActivePerformativeSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q499327, wd:Q1317831, wd:Q124351233 . } } diff --git a/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_3.sparql b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_3.sparql index 0e6739d47..4184579e9 100644 --- a/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_3.sparql +++ b/src/scribe_data/language_data_extraction/Arabic/verbs/query_verbs_3.sparql @@ -5,8 +5,11 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb - ?impSPSM ?impSPSF ?impSPD - ?impSPPM ?impSPPF + ?masculineIndicativeSecondPersonSingularFiilMudari + ?feminineIndicativeSecondPersonSingularFiilMudari + ?indicativeSecondPersonDualFiilMudari + ?masculineIndicativeSecondPersonPluralFiilMudari + ?feminineIndicativeSecondPersonPluralFiilMudari WHERE { ?lexeme dct:language wd:Q13955 ; @@ -16,32 +19,32 @@ WHERE { # MARK: Imperative OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPSMForm . - ?impSPSMForm ontolex:representation ?impSPSM ; + ?lexeme ontolex:lexicalForm ?masculineIndicativeSecondPersonSingularFiilMudariForm . + ?masculineIndicativeSecondPersonSingularFiilMudariForm ontolex:representation ?masculineIndicativeSecondPersonSingularFiilMudari ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q499327, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPSFForm . - ?impSPSFForm ontolex:representation ?impSPSF ; + ?lexeme ontolex:lexicalForm ?feminineIndicativeSecondPersonSingularFiilMudariForm . + ?feminineIndicativeSecondPersonSingularFiilMudariForm ontolex:representation ?feminineIndicativeSecondPersonSingularFiilMudari ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1775415, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPDForm . - ?impSPDForm ontolex:representation ?impSPD ; + ?lexeme ontolex:lexicalForm ?indicativeSecondPersonDualFiilMudariForm . + ?indicativeSecondPersonDualFiilMudariForm ontolex:representation ?indicativeSecondPersonDualFiilMudari ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110022, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPPMForm . - ?impSPPMForm ontolex:representation ?impSPPM ; + ?lexeme ontolex:lexicalForm ?masculineIndicativeSecondPersonPluralFiilMudariForm . + ?masculineIndicativeSecondPersonPluralFiilMudariForm ontolex:representation ?masculineIndicativeSecondPersonPluralFiilMudari ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q499327, wd:Q682111, wd:Q12230930 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPPFForm . - ?impSPPFForm ontolex:representation ?impSPPF ; + ?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/language_data_extraction/Basque/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Basque/nouns/query_nouns.sparql index 40763778d..44cc0a4aa 100644 --- a/src/scribe_data/language_data_extraction/Basque/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Basque/nouns/query_nouns.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?absIndefinite - ?absSingular - ?absPlural + ?absolutiveSingular + ?absolutivePlural WHERE { ?lexeme dct:language wd:Q8752 ; @@ -16,16 +16,16 @@ WHERE { # MARK: Absolutive Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?absSingularForm . - ?absSingularForm ontolex:representation ?absSingular ; + ?lexeme ontolex:lexicalForm ?absolutiveSingularForm . + ?absolutiveSingularForm ontolex:representation ?absolutiveSingular ; wikibase:grammaticalFeature wd:Q332734, wd:Q110786 . } # MARK: Absolutive Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?absPluralForm . - ?absPluralForm ontolex:representation ?absPlural ; + ?lexeme ontolex:lexicalForm ?absolutivePluralForm . + ?absolutivePluralForm ontolex:representation ?absolutivePlural ; wikibase:grammaticalFeature wd:Q332734, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Basque/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Basque/verbs/query_verbs.sparql index c8117f4f3..8cd194e44 100644 --- a/src/scribe_data/language_data_extraction/Basque/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Basque/verbs/query_verbs.sparql @@ -23,7 +23,7 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?futureForm . ?futureForm ontolex:representation ?future ; - wikibase:grammaticalFeature wd:Q501405 . + wikibase:grammaticalFeature wd:Q501405 . } # MARK: Gerund @@ -31,7 +31,7 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?gerundForm . ?gerundForm ontolex:representation ?gerund ; - wikibase:grammaticalFeature wd:Q1923028 . + wikibase:grammaticalFeature wd:Q1923028 . } # MARK: Imperfective @@ -39,7 +39,7 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?imperfectiveForm . ?imperfectiveForm ontolex:representation ?imperfective ; - wikibase:grammaticalFeature wd:Q54556033 . + wikibase:grammaticalFeature wd:Q54556033 . } # MARK: Nominalized @@ -47,7 +47,7 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?nominalizedForm . ?nominalizedForm ontolex:representation ?nominalized ; - wikibase:grammaticalFeature wd:Q74674960 . + wikibase:grammaticalFeature wd:Q74674960 . } # MARK: Participle @@ -55,6 +55,6 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?participleForm . ?participleForm ontolex:representation ?participle ; - wikibase:grammaticalFeature wd:Q814722 . + wikibase:grammaticalFeature wd:Q814722 . } } diff --git a/src/scribe_data/language_data_extraction/Bengali/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Bengali/nouns/query_nouns.sparql index d40bd804e..b57a0517c 100644 --- a/src/scribe_data/language_data_extraction/Bengali/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Bengali/nouns/query_nouns.sparql @@ -16,32 +16,32 @@ WHERE { # MARK: Nminative OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomForm . - ?nomForm ontolex:representation ?nominative ; + ?lexeme ontolex:lexicalForm ?nominativeForm . + ?nominativeForm ontolex:representation ?nominative ; wikibase:grammaticalFeature wd:Q131105 . } # MARK: Genitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?genForm . - ?genForm ontolex:representation ?genitive ; + ?lexeme ontolex:lexicalForm ?genitiveForm . + ?genitiveForm ontolex:representation ?genitive ; wikibase:grammaticalFeature wd:Q146233 . } # MARK: Accusative OPTIONAL { - ?lexeme ontolex:lexicalForm ?accForm . - ?accForm ontolex:representation ?accusative ; + ?lexeme ontolex:lexicalForm ?accusativeForm . + ?accusativeForm ontolex:representation ?accusative ; wikibase:grammaticalFeature wd:Q146078 . } # MARK: Locative OPTIONAL { - ?lexeme ontolex:lexicalForm ?locForm . - ?locForm ontolex:representation ?locative ; + ?lexeme ontolex:lexicalForm ?locativeForm . + ?locativeForm ontolex:representation ?locative ; wikibase:grammaticalFeature wd:Q202142 . } } diff --git a/src/scribe_data/language_data_extraction/Bengali/postpositions/query_postpositions.sparql b/src/scribe_data/language_data_extraction/Bengali/postpositions/query_postpositions.sparql index 135f47264..7802100fd 100644 --- a/src/scribe_data/language_data_extraction/Bengali/postpositions/query_postpositions.sparql +++ b/src/scribe_data/language_data_extraction/Bengali/postpositions/query_postpositions.sparql @@ -17,7 +17,7 @@ WHERE { OPTIONAL { ?lexeme wdt:P5713 ?caseForm . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Bengali/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Bengali/proper_nouns/query_proper_nouns.sparql index bc8b889cb..f795cc083 100644 --- a/src/scribe_data/language_data_extraction/Bengali/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Bengali/proper_nouns/query_proper_nouns.sparql @@ -16,32 +16,32 @@ WHERE { # MARK: Nminative OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomForm . - ?nomForm ontolex:representation ?nominative ; - wikibase:grammaticalFeature wd:Q131105 ; - } . + ?lexeme ontolex:lexicalForm ?nominativeForm . + ?nominativeForm ontolex:representation ?nominative ; + wikibase:grammaticalFeature wd:Q131105 . + } # MARK: Genitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?genForm . - ?genForm ontolex:representation ?genitive ; - wikibase:grammaticalFeature wd:Q146233 ; - } . + ?lexeme ontolex:lexicalForm ?genitiveForm . + ?genitiveForm ontolex:representation ?genitive ; + wikibase:grammaticalFeature wd:Q146233 . + } # MARK: Accusative OPTIONAL { - ?lexeme ontolex:lexicalForm ?accForm . - ?accForm ontolex:representation ?accusative ; - wikibase:grammaticalFeature wd:Q146078 ; - } . + ?lexeme ontolex:lexicalForm ?accusativeForm . + ?accusativeForm ontolex:representation ?accusative ; + wikibase:grammaticalFeature wd:Q146078 . + } # MARK: Locative OPTIONAL { - ?lexeme ontolex:lexicalForm ?locForm . - ?locForm ontolex:representation ?locative ; - wikibase:grammaticalFeature wd:Q202142 ; - } . + ?lexeme ontolex:lexicalForm ?locativeForm . + ?locativeForm ontolex:representation ?locative ; + wikibase:grammaticalFeature wd:Q202142 . + } } diff --git a/src/scribe_data/language_data_extraction/Chinese/Mandarin/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Chinese/Mandarin/adverbs/query_adverbs.sparql index 3b675b1f9..b5d675545 100644 --- a/src/scribe_data/language_data_extraction/Chinese/Mandarin/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Chinese/Mandarin/adverbs/query_adverbs.sparql @@ -10,5 +10,5 @@ WHERE { ?lexeme dct:language wd:Q727694 ; wikibase:lexicalCategory wd:Q380057 ; wikibase:lemma ?adverb . - FILTER(LANG(?adverb) = "zh") . + FILTER(LANG(?adverb) = "zh") } diff --git a/src/scribe_data/language_data_extraction/Czech/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Czech/nouns/query_nouns.sparql index 11989c386..f8e9f77cb 100644 --- a/src/scribe_data/language_data_extraction/Czech/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Czech/nouns/query_nouns.sparql @@ -4,8 +4,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural ?gender WHERE { @@ -15,16 +15,16 @@ WHERE { # MARK: Nominative Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomSingularForm . - ?nomSingularForm ontolex:representation ?nomSingular ; + ?lexeme ontolex:lexicalForm ?nominativeSingularForm . + ?nominativeSingularForm ontolex:representation ?nominativeSingular ; wikibase:grammaticalFeature wd:Q131105, wd:Q110786 . } # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } diff --git a/src/scribe_data/language_data_extraction/Czech/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Czech/proper_nouns/query_proper_nouns.sparql index 4ccb7cf1f..bc730b44f 100644 --- a/src/scribe_data/language_data_extraction/Czech/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Czech/proper_nouns/query_proper_nouns.sparql @@ -5,7 +5,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?properNoun - ?nomPlural + ?nominativePlural ?gender WHERE { @@ -16,17 +16,16 @@ WHERE { # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; - wikibase:grammaticalFeature wd:Q131105 ; - wikibase:grammaticalFeature wd:Q146786 ; - } . + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; + wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . + } # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql index 7b5a37ab3..f3c32b63f 100644 --- a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_1.sparql @@ -4,22 +4,24 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?infinitive - - ?presFPS ?presSPS ?presTPS - ?presFPP ?presSPP ?presTPP - - ?FPPImp ?SPSImp ?SPPImp - - ?femSingularActivePart - ?masAnimateSingularActivePart - ?masInanimateSingularActivePart - ?neutSingularActivePart - ?femPluralActivePart - ?masAnimatePluralActivePart - ?masInanimatePluralActivePart - ?neutPluralActivePart + ?indicativePresentFirstPersonSingular + ?indicativePresentSecondPersonSingular + ?indicativePresentThirdPersonSingular + ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonPlural + ?imperativeFirstPersonPlural + ?imperativeSecondPersonSingular + ?imperativeSecondPersonPlural + ?feminineSingularActiveParticiple + ?masculineAnimateSingularActiveParticiple + ?masculineInanimateSingularActiveParticiple + ?neuterSingularActiveParticiple + ?femininePluralActiveParticiple + ?masculineAnimatePluralActiveParticiple + ?masculineInanimatePluralActiveParticiple + ?neuterPluralActiveParticiple WHERE { ?lexeme dct:language wd:Q9056 ; @@ -29,108 +31,108 @@ WHERE { # MARK: Indicative Present OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPSForm . - ?presFPSForm ontolex:representation ?presFPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . + ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPSForm . - ?presSPSForm ontolex:representation ?presSPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPSForm . - ?presTPSForm ontolex:representation ?presTPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPPForm . - ?presFPPForm ontolex:representation ?presFPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . + ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPPForm . - ?presSPPForm ontolex:representation ?presSPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . + ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPPForm . - ?presTPPForm ontolex:representation ?presTPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . + ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . } # MARK: Imperative OPTIONAL { - ?lexeme ontolex:lexicalForm ?FPPImpForm . - ?FPPImpForm ontolex:representation ?FPPImp ; + ?lexeme ontolex:lexicalForm ?imperativeFirstPersonPluralForm . + ?imperativeFirstPersonPluralForm ontolex:representation ?imperativeFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q22716 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?SPSImpForm . - ?SPSImpForm ontolex:representation ?SPSImp ; + ?lexeme ontolex:lexicalForm ?imperativeSecondPersonSingularForm . + ?imperativeSecondPersonSingularForm ontolex:representation ?imperativeSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q22716 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?SPPImpForm . - ?SPPImpForm ontolex:representation ?SPPImp ; + ?lexeme ontolex:lexicalForm ?imperativeSecondPersonPluralForm . + ?imperativeSecondPersonPluralForm ontolex:representation ?imperativeSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q22716 . } # MARK: Active Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularActivePartForm . - ?femSingularActivePartForm ontolex:representation ?femSingularActivePart ; + ?lexeme ontolex:lexicalForm ?feminineSingularActiveParticipleForm . + ?feminineSingularActiveParticipleForm ontolex:representation ?feminineSingularActiveParticiple ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masAnimateSingularActivePartForm . - ?masAnimateSingularActivePartForm ontolex:representation ?masAnimateSingularActivePart ; + ?lexeme ontolex:lexicalForm ?masculineAnimateSingularActiveParticipleForm . + ?masculineAnimateSingularActiveParticipleForm ontolex:representation ?masculineAnimateSingularActiveParticiple ; wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masInanimateSingularActivePartForm . - ?masInanimateSingularActivePartForm ontolex:representation ?masInanimateSingularActivePart ; + ?lexeme ontolex:lexicalForm ?masculineInanimateSingularActiveParticipleForm . + ?masculineInanimateSingularActiveParticipleForm ontolex:representation ?masculineInanimateSingularActiveParticiple ; wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neutSingularActivePartForm . - ?neutSingularActivePartForm ontolex:representation ?neutSingularActivePart ; + ?lexeme ontolex:lexicalForm ?neuterSingularActiveParticipleForm . + ?neuterSingularActiveParticipleForm ontolex:representation ?neuterSingularActiveParticiple ; wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralActivePartForm . - ?femPluralActivePartForm ontolex:representation ?femPluralActivePart ; + ?lexeme ontolex:lexicalForm ?femininePluralActiveParticipleForm . + ?femininePluralActiveParticipleForm ontolex:representation ?femininePluralActiveParticiple ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masAnimatePluralActivePartForm . - ?masAnimatePluralActivePartForm ontolex:representation ?masAnimatePluralActivePart ; + ?lexeme ontolex:lexicalForm ?masculineAnimatePluralActiveParticipleForm . + ?masculineAnimatePluralActiveParticipleForm ontolex:representation ?masculineAnimatePluralActiveParticiple ; wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masInanimatePluralActivePartForm . - ?masInanimatePluralActivePartForm ontolex:representation ?masInanimatePluralActivePart ; + ?lexeme ontolex:lexicalForm ?masculineInanimatePluralActiveParticipleForm . + ?masculineInanimatePluralActiveParticipleForm ontolex:representation ?masculineInanimatePluralActiveParticiple ; wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neutPluralActivePartForm . - ?neutPluralActivePartForm ontolex:representation ?neutPluralActivePart ; + ?lexeme ontolex:lexicalForm ?neuterPluralActiveParticipleForm . + ?neuterPluralActiveParticipleForm ontolex:representation ?neuterPluralActiveParticiple ; wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249355 . } } diff --git a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql index 5aba5e692..1100549bf 100644 --- a/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/Czech/verbs/query_verbs_2.sparql @@ -5,23 +5,23 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?femSingularPassivePart - ?masAnimateSingularPassivePart - ?masInanimateSingularPassivePart - ?neutSingularPassivePart - ?femPluralPassivePart - ?masAnimatePluralPassivePart - ?masInanimatePluralPassivePart - ?neutPluralPassivePart - - ?femSingularPastTransgressive - ?masAnimateSingularPastTransgressive - ?masInanimateSingularPastTransgressive - ?neutSingularPastTransgressive - ?femPluralPastTransgressive - ?masAnimatePluralPastTransgressive - ?masInanimatePluralPastTransgressive - ?neutPluralPastTransgressive + ?feminineSingularPassiveParticiple + ?masculineAnimateSingularPassiveParticiple + ?masculineInanimateSingularPassiveParticiple + ?neuterSingularPassiveParticiple + ?femininePluralPassiveParticiple + ?masculineAnimatePluralPassiveParticiple + ?masculineInanimatePluralPassiveParticiple + ?neuterPluralPassiveParticiple + + ?femininePastTransgressiveSingular + ?masculineAnimatePastTransgressiveSingular + ?masculineInanimatePastTransgressiveSingular + ?neuterPastTransgressiveSingular + ?femininePastTransgressivePlural + ?masculineAnimatePastTransgressivePlural + ?masculineInanimatePastTransgressivePlural + ?neuterPastTransgressivePlural WHERE { ?lexeme dct:language wd:Q9056 ; @@ -30,100 +30,100 @@ WHERE { # MARK: Passive Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularPassivePartForm . - ?femSingularPassivePartForm ontolex:representation ?femSingularPassivePart ; + ?lexeme ontolex:lexicalForm ?feminineSingularPassiveParticipleForm . + ?feminineSingularPassiveParticipleForm ontolex:representation ?feminineSingularPassiveParticiple ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masAnimateSingularPassivePartForm . - ?masAnimateSingularPassivePartForm ontolex:representation ?masAnimateSingularPassivePart ; + ?lexeme ontolex:lexicalForm ?masculineAnimateSingularPassiveParticipleForm . + ?masculineAnimateSingularPassiveParticipleForm ontolex:representation ?masculineAnimateSingularPassiveParticiple ; wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masInanimateSingularPassivePartForm . - ?masInanimateSingularPassivePartForm ontolex:representation ?masInanimateSingularPassivePart ; + ?lexeme ontolex:lexicalForm ?masculineInanimateSingularPassiveParticipleForm . + ?masculineInanimateSingularPassiveParticipleForm ontolex:representation ?masculineInanimateSingularPassiveParticiple ; wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neutSingularPassivePartForm . - ?neutSingularPassivePartForm ontolex:representation ?neutSingularPassivePart ; + ?lexeme ontolex:lexicalForm ?neuterSingularPassiveParticipleForm . + ?neuterSingularPassiveParticipleForm ontolex:representation ?neuterSingularPassiveParticiple ; wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralPassivePartForm . - ?femPluralPassivePartForm ontolex:representation ?femPluralPassivePart ; + ?lexeme ontolex:lexicalForm ?femininePluralPassiveParticipleForm . + ?femininePluralPassiveParticipleForm ontolex:representation ?femininePluralPassiveParticiple ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masAnimatePluralPassivePartForm . - ?masAnimatePluralPassivePartForm ontolex:representation ?masAnimatePluralPassivePart ; + ?lexeme ontolex:lexicalForm ?masculineAnimatePluralPassiveParticipleForm . + ?masculineAnimatePluralPassiveParticipleForm ontolex:representation ?masculineAnimatePluralPassiveParticiple ; wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masInanimatePluralPassivePartForm . - ?masInanimatePluralPassivePartForm ontolex:representation ?masInanimatePluralPassivePart ; + ?lexeme ontolex:lexicalForm ?masculineInanimatePluralPassiveParticipleForm . + ?masculineInanimatePluralPassiveParticipleForm ontolex:representation ?masculineInanimatePluralPassiveParticiple ; wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neutPluralPassivePartForm . - ?neutPluralPassivePartForm ontolex:representation ?neutPluralPassivePart ; + ?lexeme ontolex:lexicalForm ?neuterPluralPassiveParticipleForm . + ?neuterPluralPassiveParticipleForm ontolex:representation ?neuterPluralPassiveParticiple ; wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249544 . } # MARK: Past Transgressive OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularPastTransgressiveForm . - ?femSingularPastTransgressiveForm ontolex:representation ?femSingularPastTransgressive ; + ?lexeme ontolex:lexicalForm ?femininePastTransgressiveSingularForm . + ?femininePastTransgressiveSingularForm ontolex:representation ?femininePastTransgressiveSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q12750232 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masAnimateSingularPastTransgressiveForm . - ?masAnimateSingularPastTransgressiveForm ontolex:representation ?masAnimateSingularPastTransgressive ; + ?lexeme ontolex:lexicalForm ?masculineAnimatePastTransgressiveSingularForm . + ?masculineAnimatePastTransgressiveSingularForm ontolex:representation ?masculineAnimatePastTransgressiveSingular ; wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q12750232 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masInanimateSingularPastTransgressiveForm . - ?masInanimateSingularPastTransgressiveForm ontolex:representation ?masInanimateSingularPastTransgressive ; + ?lexeme ontolex:lexicalForm ?masculineInanimatePastTransgressiveSingularForm . + ?masculineInanimatePastTransgressiveSingularForm ontolex:representation ?masculineInanimatePastTransgressiveSingular ; wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q12750232 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neutSingularPastTransgressiveForm . - ?neutSingularPastTransgressiveForm ontolex:representation ?neutSingularPastTransgressive ; + ?lexeme ontolex:lexicalForm ?neuterPastTransgressiveSingularForm . + ?neuterPastTransgressiveSingularForm ontolex:representation ?neuterPastTransgressiveSingular ; wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q12750232 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralPastTransgressiveForm . - ?femPluralPastTransgressiveForm ontolex:representation ?femPluralPastTransgressive ; + ?lexeme ontolex:lexicalForm ?femininePastTransgressivePluralForm . + ?femininePastTransgressivePluralForm ontolex:representation ?femininePastTransgressivePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q12750232 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masAnimatePluralPastTransgressiveForm . - ?masAnimatePluralPastTransgressiveForm ontolex:representation ?masAnimatePluralPastTransgressive ; + ?lexeme ontolex:lexicalForm ?masculineAnimatePastTransgressivePluralForm . + ?masculineAnimatePastTransgressivePluralForm ontolex:representation ?masculineAnimatePastTransgressivePlural ; wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q12750232 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masInanimatePluralPastTransgressiveForm . - ?masInanimatePluralPastTransgressiveForm ontolex:representation ?masInanimatePluralPastTransgressive ; + ?lexeme ontolex:lexicalForm ?masculineInanimatePastTransgressivePluralForm . + ?masculineInanimatePastTransgressivePluralForm ontolex:representation ?masculineInanimatePastTransgressivePlural ; wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q12750232 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neutPluralPastTransgressiveForm . - ?neutPluralPastTransgressiveForm ontolex:representation ?neutPluralPastTransgressive ; + ?lexeme ontolex:lexicalForm ?neuterPastTransgressivePluralForm . + ?neuterPastTransgressivePluralForm ontolex:representation ?neuterPastTransgressivePlural ; wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q12750232 . } } diff --git a/src/scribe_data/language_data_extraction/Dagbani/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Dagbani/adjectives/query_adjectives.sparql index f218feb5d..c755d0dbe 100644 --- a/src/scribe_data/language_data_extraction/Dagbani/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Dagbani/adjectives/query_adjectives.sparql @@ -18,7 +18,7 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?singularForm . ?singularForm ontolex:representation ?singular ; - wikibase:grammaticalFeature wd:Q110786 . + wikibase:grammaticalFeature wd:Q110786 . } # MARK: Plural @@ -26,6 +26,6 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q146786 . + wikibase:grammaticalFeature wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Dagbani/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Dagbani/adverbs/query_adverbs.sparql index e2e277574..348528412 100644 --- a/src/scribe_data/language_data_extraction/Dagbani/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Dagbani/adverbs/query_adverbs.sparql @@ -7,9 +7,9 @@ SELECT ?adverb ?adverbial ?plural - ?presentTense + ?present ?adverbialLocation - ?pastTense + ?past ?singular ?adverbOfManner ?phrase @@ -33,8 +33,8 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentTenseForm . - ?presentTenseForm ontolex:representation ?presentTense ; + ?lexeme ontolex:lexicalForm ?presentForm . + ?presentForm ontolex:representation ?present ; wikibase:grammaticalFeature wd:Q192613 . } @@ -45,8 +45,8 @@ WHERE { } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastTenseForm . - ?pastTenseForm ontolex:representation ?pastTense ; + ?lexeme ontolex:lexicalForm ?pastForm . + ?pastForm ontolex:representation ?past ; wikibase:grammaticalFeature wd:Q1994301 . } diff --git a/src/scribe_data/language_data_extraction/Dagbani/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Dagbani/nouns/query_nouns.sparql new file mode 100644 index 000000000..cf4a924ab --- /dev/null +++ b/src/scribe_data/language_data_extraction/Dagbani/nouns/query_nouns.sparql @@ -0,0 +1,20 @@ +# tool: scribe-data +# All Dagbani (Q32238) nouns (Q1084) and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?noun + ?plural + +WHERE { + ?lexeme dct:language wd:Q32238 ; + wikibase:lexicalCategory wd:Q1084 ; + wikibase:lemma ?noun . + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 . + } +} diff --git a/src/scribe_data/language_data_extraction/Dagbani/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Dagbani/verbs/query_verbs.sparql index 775c384e1..bbef66d7b 100644 --- a/src/scribe_data/language_data_extraction/Dagbani/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Dagbani/verbs/query_verbs.sparql @@ -20,7 +20,7 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?presentContinuousForm . ?presentContinuousForm ontolex:representation ?presentContinuous ; - wikibase:grammaticalFeature wd:Q7240943 . + wikibase:grammaticalFeature wd:Q7240943 . } # MARK: Past @@ -28,7 +28,7 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?pastForm . ?pastForm ontolex:representation ?past ; - wikibase:grammaticalFeature wd:Q1994301 . + wikibase:grammaticalFeature wd:Q1994301 . } # MARK: Future @@ -36,13 +36,13 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?futureForm . ?futureForm ontolex:representation ?future ; - wikibase:grammaticalFeature wd:Q501405 . + wikibase:grammaticalFeature wd:Q501405 . } # MARK: Imperative OPTIONAL { ?lexeme ontolex:lexicalForm ?imperativeForm . ?imperativeForm ontolex:representation ?imperative ; - wikibase:grammaticalFeature wd:Q22716 . + wikibase:grammaticalFeature wd:Q22716 . } } diff --git a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_1.sparql b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_1.sparql index 7d334e768..bae6a9c17 100644 --- a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_1.sparql +++ b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_1.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?commonSingularIndefinite - ?neuterSingularIndefinite + ?commonIndefiniteSingularPositive + ?neuterIndefiniteSingularPositive WHERE { ?lexeme dct:language wd:Q9035 ; @@ -16,14 +16,14 @@ WHERE { # MARK: Indefinite OPTIONAL { - ?lexeme ontolex:lexicalForm ?commonSingularIndefiniteForm . - ?commonSingularIndefiniteForm ontolex:representation ?commonSingularIndefinite ; + ?lexeme ontolex:lexicalForm ?commonIndefiniteSingularPositiveForm . + ?commonIndefiniteSingularPositiveForm ontolex:representation ?commonIndefiniteSingularPositive ; wikibase:grammaticalFeature wd:Q1305037, wd:Q110786, wd:Q53997857, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterSingularIndefiniteForm . - ?neuterSingularIndefiniteForm ontolex:representation ?neuterSingularIndefinite ; + ?lexeme ontolex:lexicalForm ?neuterIndefiniteSingularPositiveForm . + ?neuterIndefiniteSingularPositiveForm ontolex:representation ?neuterIndefiniteSingularPositive ; wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q53997857, wd:Q3482678 . } } diff --git a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_2.sparql b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_2.sparql index aa47f84dd..695a59fa0 100644 --- a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_2.sparql @@ -17,8 +17,8 @@ WHERE { # MARK: Definite OPTIONAL { - ?lexeme ontolex:lexicalForm ?singularDefiniteForm . - ?singularDefiniteForm ontolex:representation ?singularDefinite ; + ?lexeme ontolex:lexicalForm ?definiteSingularPositiveForm . + ?definiteSingularPositiveForm ontolex:representation ?definiteSingularPositive ; wikibase:grammaticalFeature wd:Q110786, wd:Q53997851, wd:Q3482678 . } diff --git a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_3.sparql b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_3.sparql index 0a4fb0ef3..20669f334 100644 --- a/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_3.sparql +++ b/src/scribe_data/language_data_extraction/Danish/adjectives/query_adjectives_3.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?indefiniteSuperlative - ?definiteSuperlative + ?indefiniteSingularSuperlative + ?definiteSingularSuperlative WHERE { ?lexeme dct:language wd:Q9035 ; @@ -16,14 +16,14 @@ WHERE { # MARK: Superlative OPTIONAL { - ?lexeme ontolex:lexicalForm ?indefiniteSuperlativeForm . - ?indefiniteSuperlativeFrom ontolex:representation ?indefiniteSuperlative ; + ?lexeme ontolex:lexicalForm ?indefiniteSingularSuperlativeForm . + ?indefiniteSingularSuperlativeForm ontolex:representation ?indefiniteSingularSuperlative ; wikibase:grammaticalFeature wd:Q110786, wd:Q53997857, wd:Q1817208 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?definiteSuperlativeForm . - ?definiteSuperlativeForm ontolex:representation ?definiteSuperlative ; + ?lexeme ontolex:lexicalForm ?definiteSingularSuperlativeForm . + ?definiteSingularSuperlativeForm ontolex:representation ?definiteSingularSuperlative ; wikibase:grammaticalFeature wd:Q110786, wd:Q53997851, wd:Q1817208 . } } diff --git a/src/scribe_data/language_data_extraction/Danish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Danish/proper_nouns/query_proper_nouns.sparql index 0e0c8c6b2..bb8202a9d 100644 --- a/src/scribe_data/language_data_extraction/Danish/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Danish/proper_nouns/query_proper_nouns.sparql @@ -16,7 +16,7 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Danish/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Danish/verbs/query_verbs.sparql index 6fe6a536a..da4336526 100644 --- a/src/scribe_data/language_data_extraction/Danish/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Danish/verbs/query_verbs.sparql @@ -5,15 +5,15 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?infActive - ?presActive - ?pretActive - ?pastPart - ?presPart + ?activeInfinitive + ?activePresent + ?activePreterite + ?pastParticiple + ?presentParticiple ?imperative - ?presPassive - ?pretPassive - ?infPassive + ?passivePresent + ?passivePreterite + ?passiveInfinitive WHERE { # MARK: Infinitive @@ -25,40 +25,40 @@ WHERE { # MARK: Infinitive Active OPTIONAL { - ?lexeme ontolex:lexicalForm ?infActiveForm . - ?infActiveForm ontolex:representation ?infActive ; + ?lexeme ontolex:lexicalForm ?activeInfinitiveForm . + ?activeInfinitiveForm ontolex:representation ?activeInfinitive ; wikibase:grammaticalFeature wd:Q179230, wd:Q1317831 . } # MARK: Present Active OPTIONAL { - ?lexeme ontolex:lexicalForm ?presActiveForm . - ?presActiveForm ontolex:representation ?presActive ; + ?lexeme ontolex:lexicalForm ?activePresentForm . + ?activePresentForm ontolex:representation ?activePresent ; wikibase:grammaticalFeature wd:Q192613, wd:Q1317831 . } # MARK: Preterite Active OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretActiveForm . - ?pretActiveForm ontolex:representation ?pretActive ; + ?lexeme ontolex:lexicalForm ?activePreteriteForm . + ?activePreteriteForm ontolex:representation ?activePreterite ; wikibase:grammaticalFeature wd:Q442485, wd:Q1317831 . } # MARK: Past Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastPartForm . - ?pastPartForm ontolex:representation ?pastPart ; + ?lexeme ontolex:lexicalForm ?pastParticipleForm . + ?pastParticipleForm ontolex:representation ?pastParticiple ; wikibase:grammaticalFeature wd:Q12717679 . } # MARK: Present Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?presPartForm . - ?presPartForm ontolex:representation ?presPart ; + ?lexeme ontolex:lexicalForm ?presentParticipleForm . + ?presentParticipleForm ontolex:representation ?presentParticiple ; wikibase:grammaticalFeature wd:Q10345583 . } @@ -73,24 +73,24 @@ WHERE { # MARK: Present Passive OPTIONAL { - ?lexeme ontolex:lexicalForm ?presPassiveForm . - ?presPassiveForm ontolex:representation ?presPassive ; - wikibase:grammaticalFeature wd:Q442485, wd:Q1194697 . + ?lexeme ontolex:lexicalForm ?passivePresentForm . + ?passivePresentForm ontolex:representation ?passivePresent ; + wikibase:grammaticalFeature wd:Q192613, wd:Q1194697 . } # MARK: Preterite Passive OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretPassiveForm . - ?pretPassiveForm ontolex:representation ?pretPassive ; + ?lexeme ontolex:lexicalForm ?passivePreteriteForm . + ?passivePreteriteForm ontolex:representation ?passivePreterite ; wikibase:grammaticalFeature wd:Q442485, wd:Q1194697 . } # MARK: Infinitive Passive OPTIONAL { - ?lexeme ontolex:lexicalForm ?infPassiveForm . - ?infPassiveForm ontolex:representation ?infPassive ; + ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . + ?passiveInfinitiveForm ontolex:representation ?passiveInfinitive ; wikibase:grammaticalFeature wd:Q179230, wd:Q1194697 . } } diff --git a/src/scribe_data/language_data_extraction/English/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/English/proper_nouns/query_proper_nouns.sparql index 4db68d8ef..732b7e61e 100644 --- a/src/scribe_data/language_data_extraction/English/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/English/proper_nouns/query_proper_nouns.sparql @@ -17,6 +17,6 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q146786 ; - } . + wikibase:grammaticalFeature wd:Q146786 . + } } diff --git a/src/scribe_data/language_data_extraction/English/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/English/verbs/query_verbs.sparql index 1079fa694..4b3a226c8 100644 --- a/src/scribe_data/language_data_extraction/English/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/English/verbs/query_verbs.sparql @@ -5,11 +5,11 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?presSimp - ?presTPS - ?presPart - ?pastSimp - ?pastPart + ?simplePresent + ?simplePresentThirdPersonSingular + ?presentParticiple + ?simplePast + ?pastParticiple WHERE { # MARK: Infinitive @@ -21,62 +21,56 @@ WHERE { # MARK: Simple Present OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSimpForm . - ?presSimpForm ontolex:representation ?presSimp ; - wikibase:grammaticalFeature wd:Q3910936 ; - FILTER NOT EXISTS { ?presSimpForm wikibase:grammaticalFeature wd:Q51929074 . } - FILTER NOT EXISTS { ?presSimpForm wdt:P6191 wd:Q181970 . } - FILTER NOT EXISTS { ?presSimpForm wikibase:grammaticalFeature wd:Q126473 . } - FILTER(LANG(?presSimp) = "en") . + ?lexeme ontolex:lexicalForm ?simplePresentForm . + ?simplePresentForm ontolex:representation ?simplePresent ; + wikibase:grammaticalFeature wd:Q3910936 . + FILTER NOT EXISTS { ?simplePresentForm wikibase:grammaticalFeature wd:Q51929074 . } + FILTER NOT EXISTS { ?simplePresentForm wdt:P6191 wd:Q181970 . } + FILTER NOT EXISTS { ?simplePresentForm wikibase:grammaticalFeature wd:Q126473 . } + FILTER(LANG(?simplePresent) = "en") } # MARK: Third-person Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPSForm . - ?presTPSForm ontolex:representation ?presTPS ; - wikibase:grammaticalFeature wd:Q51929074 ; - wikibase:grammaticalFeature wd:Q110786 ; - wikibase:grammaticalFeature wd:Q3910936 ; - FILTER NOT EXISTS { ?presTPSForm wdt:P6191 wd:Q181970 . } - FILTER NOT EXISTS { ?presTPSForm wikibase:grammaticalFeature wd:Q126473 . } - FILTER(LANG(?presTPS) = "en") . + ?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") } # MARK: Present Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?presPartForm . - ?presPartForm ontolex:representation ?presPart ; - wikibase:grammaticalFeature wd:Q10345583 ; - FILTER NOT EXISTS { ?presPartForm wdt:P6191 wd:Q181970 . } - FILTER NOT EXISTS { ?presPartForm wikibase:grammaticalFeature wd:Q126473 . } - FILTER(LANG(?presPart) = "en") . + ?lexeme ontolex:lexicalForm ?presentParticipleForm . + ?presentParticipleForm ontolex:representation ?presentParticiple ; + wikibase:grammaticalFeature wd:Q10345583 . + FILTER NOT EXISTS { ?presentParticipleForm wdt:P6191 wd:Q181970 . } + FILTER NOT EXISTS { ?presentParticipleForm wikibase:grammaticalFeature wd:Q126473 . } + FILTER(LANG(?presentParticiple) = "en") } # MARK: Simple Past OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastSimpForm . - ?pastSimpForm ontolex:representation ?pastSimp ; - wikibase:grammaticalFeature wd:Q1392475 ; - FILTER NOT EXISTS { ?pastSimpForm wdt:P6191 wd:Q181970 . } - FILTER NOT EXISTS { ?pastSimpForm wikibase:grammaticalFeature wd:Q126473 . } - FILTER(LANG(?pastSimp) = "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: Past Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastPartForm . - ?pastPartForm ontolex:representation ?pastPart ; - wikibase:grammaticalFeature wd:Q1230649 ; - FILTER NOT EXISTS { ?pastPartForm wdt:P6191 wd:Q181970 . } - FILTER NOT EXISTS { ?pastPartForm wikibase:grammaticalFeature wd:Q126473 . } - FILTER(LANG(?pastPart) = "en") . - } - - SERVICE wikibase:label { - bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". + ?lexeme ontolex:lexicalForm ?pastParticipleForm . + ?pastParticipleForm ontolex:representation ?pastParticiple ; + wikibase:grammaticalFeature wd:Q1230649 . + FILTER NOT EXISTS { ?pastParticipleForm wdt:P6191 wd:Q181970 . } + FILTER NOT EXISTS { ?pastParticipleForm wikibase:grammaticalFeature wd:Q126473 . } + FILTER(LANG(?pastParticiple) = "en") } } diff --git a/src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql index f2e3c542e..cc83891ef 100644 --- a/src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Esperanto/adjectives/query_adjectives.sparql @@ -10,5 +10,5 @@ WHERE { ?lexeme dct:language wd:Q143 ; wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . - FILTER(LANG(?adjective) = "eo") . + FILTER(LANG(?adjective) = "eo") } diff --git a/src/scribe_data/language_data_extraction/Esperanto/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Esperanto/adverbs/query_adverbs.sparql index 6fd6e869d..0cb91d265 100644 --- a/src/scribe_data/language_data_extraction/Esperanto/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Esperanto/adverbs/query_adverbs.sparql @@ -10,5 +10,5 @@ WHERE { ?lexeme dct:language wd:Q143 ; wikibase:lexicalCategory wd:Q380057 ; wikibase:lemma ?adverb . - FILTER(LANG(?adverb) = "eo") . + FILTER(LANG(?adverb) = "eo") } diff --git a/src/scribe_data/language_data_extraction/Esperanto/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Esperanto/nouns/query_nouns.sparql index 6aa93bbb6..9ad7a9424 100644 --- a/src/scribe_data/language_data_extraction/Esperanto/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Esperanto/nouns/query_nouns.sparql @@ -4,37 +4,37 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?accSingular - ?nomPlural - ?accPlural + ?nominativeSingular + ?accusativeSingular + ?nominativePlural + ?accusativePlural WHERE { ?lexeme dct:language wd:Q143 ; wikibase:lexicalCategory wd:Q1084 ; - wikibase:lemma ?nomSingular . + wikibase:lemma ?nominativeSingular . # MARK: Accusative Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?accSingularForm . - ?accSingularForm ontolex:representation ?accSingular ; + ?lexeme ontolex:lexicalForm ?accusativeSingularForm . + ?accusativeSingularForm ontolex:representation ?accusativeSingular ; wikibase:grammaticalFeature wd:Q146078, wd:Q110786 . } # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } # MARK: Accusative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?accPluralForm . - ?accPluralForm ontolex:representation ?accPlural ; + ?lexeme ontolex:lexicalForm ?accusativePluralForm . + ?accusativePluralForm ontolex:representation ?accusativePlural ; wikibase:grammaticalFeature wd:Q146078, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Esperanto/personal_pronouns/query_personal_pronouns.sparql b/src/scribe_data/language_data_extraction/Esperanto/personal_pronouns/query_personal_pronouns.sparql index 8a209a528..a734bbe0f 100644 --- a/src/scribe_data/language_data_extraction/Esperanto/personal_pronouns/query_personal_pronouns.sparql +++ b/src/scribe_data/language_data_extraction/Esperanto/personal_pronouns/query_personal_pronouns.sparql @@ -10,5 +10,5 @@ WHERE { ?lexeme dct:language wd:Q143 ; wikibase:lexicalCategory wd:Q468801 ; wikibase:lemma ?personalPronouns . - FILTER(LANG(?personalPronouns) = "eo") . + FILTER(LANG(?personalPronouns) = "eo") } diff --git a/src/scribe_data/language_data_extraction/Esperanto/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Esperanto/proper_nouns/query_proper_nouns.sparql index d23c12692..32cc3b03e 100644 --- a/src/scribe_data/language_data_extraction/Esperanto/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Esperanto/proper_nouns/query_proper_nouns.sparql @@ -4,40 +4,37 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?accSingular - ?nomPlural - ?accPlural + ?nominativeSingular + ?accusativeSingular + ?nominativePlural + ?accusativePlural WHERE { ?lexeme dct:language wd:Q143 ; wikibase:lexicalCategory wd:Q147276 ; - wikibase:lemma ?nomSingular . + wikibase:lemma ?nominativeSingular . # MARK: Accusative Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?accSingularForm . - ?accSingularForm ontolex:representation ?accSingular ; - wikibase:grammaticalFeature wd:Q146078 ; - wikibase:grammaticalFeature wd:Q110786 ; - } . + ?lexeme ontolex:lexicalForm ?accusativeSingularForm . + ?accusativeSingularForm ontolex:representation ?accusativeSingular ; + wikibase:grammaticalFeature wd:Q146078, wd:Q110786 . + } # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; - wikibase:grammaticalFeature wd:Q131105 ; - wikibase:grammaticalFeature wd:Q146786 ; - } . + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; + wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . + } # MARK: Accusative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?accPluralForm . - ?accPluralForm ontolex:representation ?accPlural ; - wikibase:grammaticalFeature wd:Q146078 ; - wikibase:grammaticalFeature wd:Q146786 ; - } . + ?lexeme ontolex:lexicalForm ?accusativePluralForm . + ?accusativePluralForm ontolex:representation ?accusativePlural ; + wikibase:grammaticalFeature wd:Q146078, wd:Q146786 . + } } diff --git a/src/scribe_data/language_data_extraction/Esperanto/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Esperanto/verbs/query_verbs.sparql index ae647dd92..38b86a61b 100644 --- a/src/scribe_data/language_data_extraction/Esperanto/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Esperanto/verbs/query_verbs.sparql @@ -5,9 +5,9 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?presIndicative - ?pastIndicative - ?futIndicative + ?indicativePresent + ?indicativePast + ?indicativeFuture ?conditional ?volitive @@ -21,31 +21,28 @@ WHERE { # MARK: Present Tense OPTIONAL { - ?lexeme ontolex:lexicalForm ?presIndicativeForm . - ?presIndicativeForm ontolex:representation ?presIndicative ; - wikibase:grammaticalFeature wd:Q192613 ; - wikibase:grammaticalFeature wd:Q682111 ; - FILTER(LANG(?presIndicative) = "eo") . + ?lexeme ontolex:lexicalForm ?indicativePresentForm . + ?indicativePresentForm ontolex:representation ?indicativePresent ; + wikibase:grammaticalFeature wd:Q192613, wd:Q682111 . + FILTER(LANG(?indicativePresent) = "eo") } # MARK: Past Tense OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastIndicativeForm . - ?pastIndicativeForm ontolex:representation ?pastIndicative ; - wikibase:grammaticalFeature wd:Q1994301 ; - wikibase:grammaticalFeature wd:Q682111 ; - FILTER(LANG(?pastIndicative) = "eo") . + ?lexeme ontolex:lexicalForm ?indicativePastForm . + ?indicativePastForm ontolex:representation ?indicativePast ; + wikibase:grammaticalFeature wd:Q1994301, wd:Q682111 . + FILTER(LANG(?indicativePast) = "eo") } # MARK: Future Tense OPTIONAL { - ?lexeme ontolex:lexicalForm ?futIndicativeForm . - ?futIndicativeForm ontolex:representation ?futIndicative ; - wikibase:grammaticalFeature wd:Q501405 ; - wikibase:grammaticalFeature wd:Q682111 ; - FILTER(LANG(?futIndicative) = "eo") . + ?lexeme ontolex:lexicalForm ?indicativeFutureForm . + ?indicativeFutureForm ontolex:representation ?indicativeFuture ; + wikibase:grammaticalFeature wd:Q501405, wd:Q682111 . + FILTER(LANG(?indicativeFuture) = "eo") } # MARK: Conditional @@ -53,8 +50,8 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?conditionalForm . ?conditionalForm ontolex:representation ?conditional ; - wikibase:grammaticalFeature wd:Q625581 ; - FILTER(LANG(?conditional) = "eo") . + wikibase:grammaticalFeature wd:Q625581 . + FILTER(LANG(?conditional) = "eo") } # MARK: Volitive @@ -62,7 +59,7 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?volitiveForm . ?volitiveForm ontolex:representation ?volitive ; - wikibase:grammaticalFeature wd:Q2532941 ; - FILTER(LANG(?volitive) = "eo") . + wikibase:grammaticalFeature wd:Q2532941 . + FILTER(LANG(?volitive) = "eo") } } diff --git a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_1.sparql b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_1.sparql index d6ed6d04c..5e92e85d8 100644 --- a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_1.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_1.sparql @@ -5,12 +5,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?nomSingular - ?nomPlural - ?genSingular - ?genPlural - ?partSingular - ?partPlural + ?nominativeSingular + ?nominativePlural + ?genitiveSingular + ?genitivePlural + ?partitiveSingular + ?partitivePlural WHERE { ?lexeme dct:language wd:Q9072 ; @@ -20,42 +20,42 @@ WHERE { # MARK: Nominative OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomSingularForm . - ?nomSingularForm ontolex:representation ?nomSingular ; + ?lexeme ontolex:lexicalForm ?nominativeSingularForm . + ?nominativeSingularForm ontolex:representation ?nominativeSingular ; wikibase:grammaticalFeature wd:Q131105, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } # MARK: Genitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?genSingularForm . - ?genSingularForm ontolex:representation ?genSingular ; + ?lexeme ontolex:lexicalForm ?genitiveSingularForm . + ?genitiveSingularForm ontolex:representation ?genitiveSingular ; wikibase:grammaticalFeature wd:Q146233, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?genPluralForm . - ?genPluralForm ontolex:representation ?genPlural ; + ?lexeme ontolex:lexicalForm ?genitivePluralForm . + ?genitivePluralForm ontolex:representation ?genitivePlural ; wikibase:grammaticalFeature wd:Q146233, wd:Q146786 . } # MARK: Partitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?partSingularForm . - ?partSingularForm ontolex:representation ?partSingular ; + ?lexeme ontolex:lexicalForm ?partitiveSingularForm . + ?partitiveSingularForm ontolex:representation ?partitiveSingular ; wikibase:grammaticalFeature wd:Q857325, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?partPluralForm . - ?partPluralForm ontolex:representation ?partPlural ; + ?lexeme ontolex:lexicalForm ?partitivePluralForm . + ?partitivePluralForm ontolex:representation ?partitivePlural ; wikibase:grammaticalFeature wd:Q857325, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_2.sparql b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_2.sparql index d9cb12684..8670f7bcc 100644 --- a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_2.sparql @@ -5,14 +5,14 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?illSingular - ?illPlural - ?ineSingular - ?inePlural - ?eleSingular - ?elePlural - ?allSingular - ?allPlural + ?illativeSingular + ?illativePlural + ?inessiveSingular + ?inessivePlural + ?elativeSingular + ?elativePlural + ?allativeSingular + ?allativePlural WHERE { ?lexeme dct:language wd:Q9072 ; @@ -22,56 +22,56 @@ WHERE { # MARK: Illative OPTIONAL { - ?lexeme ontolex:lexicalForm ?illSingularForm . - ?illSingularForm ontolex:representation ?illSingular ; + ?lexeme ontolex:lexicalForm ?illativeSingularForm . + ?illativeSingularForm ontolex:representation ?illativeSingular ; wikibase:grammaticalFeature wd:Q474668, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?illPluralForm . - ?illPluralForm ontolex:representation ?illPlural ; + ?lexeme ontolex:lexicalForm ?illativePluralForm . + ?illativePluralForm ontolex:representation ?illativePlural ; wikibase:grammaticalFeature wd:Q474668, wd:Q146786 . } # MARK: Inessive OPTIONAL { - ?lexeme ontolex:lexicalForm ?ineSingularForm . - ?ineSingularForm ontolex:representation ?ineSingular ; + ?lexeme ontolex:lexicalForm ?inessiveSingularForm . + ?inessiveSingularForm ontolex:representation ?inessiveSingular ; wikibase:grammaticalFeature wd:Q282031, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?inePluralForm . - ?inePluralForm ontolex:representation ?inePlural ; + ?lexeme ontolex:lexicalForm ?inessivePluralForm . + ?inessivePluralForm ontolex:representation ?inessivePlural ; wikibase:grammaticalFeature wd:Q282031, wd:Q146786 . } # MARK: Elative OPTIONAL { - ?lexeme ontolex:lexicalForm ?elaSingularForm . - ?elaSingularForm ontolex:representation ?elaSingular ; + ?lexeme ontolex:lexicalForm ?elativeSingularForm . + ?elativeSingularForm ontolex:representation ?elativeSingular ; wikibase:grammaticalFeature wd:Q394253, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?elaPluralForm . - ?elaPluralForm ontolex:representation ?elaPlural ; + ?lexeme ontolex:lexicalForm ?elativePluralForm . + ?elativePluralForm ontolex:representation ?elativePlural ; wikibase:grammaticalFeature wd:Q394253, wd:Q146786 . } # MARK: Allative OPTIONAL { - ?lexeme ontolex:lexicalForm ?allSingularForm . - ?allSingularForm ontolex:representation ?allSingular ; + ?lexeme ontolex:lexicalForm ?allativeSingularForm . + ?allativeSingularForm ontolex:representation ?allativeSingular ; wikibase:grammaticalFeature wd:Q655020, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?allPluralForm . - ?allPluralForm ontolex:representation ?allPlural ; + ?lexeme ontolex:lexicalForm ?allativePluralForm . + ?allativePluralForm ontolex:representation ?allativePlural ; wikibase:grammaticalFeature wd:Q655020, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_3.sparql b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_3.sparql index ba9948516..7d2864d76 100644 --- a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_3.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_3.sparql @@ -4,14 +4,14 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?adeSingular - ?adePlural - ?ablSingular - ?ablPlural - ?transSingular - ?transPlural - ?termSingular - ?termPlural + ?adessiveSingular + ?adessivePlural + ?ablativeSingular + ?ablativePlural + ?translativeSingular + ?translativePlural + ?terminativeSingular + ?terminativePlural WHERE { ?lexeme dct:language wd:Q9072 ; @@ -21,28 +21,28 @@ WHERE { # MARK: Adessive OPTIONAL { - ?lexeme ontolex:lexicalForm ?adeSingularForm . - ?adeSingularForm ontolex:representation ?adeSingular ; + ?lexeme ontolex:lexicalForm ?adessiveSingularForm . + ?adessiveSingularForm ontolex:representation ?adessiveSingular ; wikibase:grammaticalFeature wd:Q281954, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?adePluralForm . - ?adePluralForm ontolex:representation ?adePlural ; + ?lexeme ontolex:lexicalForm ?adessivePluralForm . + ?adessivePluralForm ontolex:representation ?adessivePlural ; wikibase:grammaticalFeature wd:Q281954, wd:Q146786 . } # MARK: Ablative OPTIONAL { - ?lexeme ontolex:lexicalForm ?ablSingularForm . - ?ablSingularForm ontolex:representation ?ablSingular ; + ?lexeme ontolex:lexicalForm ?ablativeSingularForm . + ?ablativeSingularForm ontolex:representation ?ablativeSingular ; wikibase:grammaticalFeature wd:Q156986, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?ablPluralForm . - ?ablPluralForm ontolex:representation ?ablPlural ; + ?lexeme ontolex:lexicalForm ?ablativePluralForm . + ?ablativePluralForm ontolex:representation ?ablativePlural ; wikibase:grammaticalFeature wd:Q156986, wd:Q146786 . } @@ -50,28 +50,28 @@ WHERE { OPTIONAL { - ?lexeme ontolex:lexicalForm ?transSingularForm . - ?transSingularForm ontolex:representation ?transSingular ; + ?lexeme ontolex:lexicalForm ?translativeSingularForm . + ?translativeSingularForm ontolex:representation ?translativeSingular ; wikibase:grammaticalFeature wd:Q950170, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?transPluralForm . - ?transPluralForm ontolex:representation ?transPlural ; + ?lexeme ontolex:lexicalForm ?translativePluralForm . + ?translativePluralForm ontolex:representation ?translativePlural ; wikibase:grammaticalFeature wd:Q950170, wd:Q146786 . } # MARK: Terminative OPTIONAL { - ?lexeme ontolex:lexicalForm ?termSingularForm . - ?termSingularForm ontolex:representation ?termSingular ; + ?lexeme ontolex:lexicalForm ?terminativeSingularForm . + ?terminativeSingularForm ontolex:representation ?terminativeSingular ; wikibase:grammaticalFeature wd:Q747019, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?termPluralForm . - ?termPluralForm ontolex:representation ?termPlural ; + ?lexeme ontolex:lexicalForm ?terminativePluralForm . + ?terminativePluralForm ontolex:representation ?terminativePlural ; wikibase:grammaticalFeature wd:Q747019, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_4.sparql b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_4.sparql index 9181e7d1a..66f545532 100644 --- a/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_4.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/adjectives/query_adjectives_4.sparql @@ -4,11 +4,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?essPlural - ?abeSingular - ?abePlural - ?comSingular - ?comPlural + ?essiveSingular + ?essivePlural + ?abessiveSingular + ?abessivePlural + ?comitativeSingular + ?comitativePlural WHERE { ?lexeme dct:language wd:Q9072 ; @@ -18,42 +19,42 @@ WHERE { # MARK: Essive OPTIONAL { - ?lexeme ontolex:lexicalForm ?essSingularForm . - ?essSingularForm ontolex:representation ?essSingular ; + ?lexeme ontolex:lexicalForm ?essiveSingularForm . + ?essiveSingularForm ontolex:representation ?essiveSingular ; wikibase:grammaticalFeature wd:Q148465, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?essPluralForm . - ?essPluralForm ontolex:representation ?essPlural ; + ?lexeme ontolex:lexicalForm ?essivePluralForm . + ?essivePluralForm ontolex:representation ?essivePlural ; wikibase:grammaticalFeature wd:Q148465, wd:Q146786 . } # MARK: Abessive OPTIONAL { - ?lexeme ontolex:lexicalForm ?abeSingularForm . - ?abeSingularForm ontolex:representation ?abeSingular ; + ?lexeme ontolex:lexicalForm ?abessiveSingularForm . + ?abessiveSingularForm ontolex:representation ?abessiveSingular ; wikibase:grammaticalFeature wd:Q319822, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?abePluralForm . - ?abePluralForm ontolex:representation ?abePlural ; + ?lexeme ontolex:lexicalForm ?abessivePluralForm . + ?abessivePluralForm ontolex:representation ?abessivePlural ; wikibase:grammaticalFeature wd:Q319822, wd:Q146786 . } # MARK: Comitative OPTIONAL { - ?lexeme ontolex:lexicalForm ?comSingularForm . - ?comSingularForm ontolex:representation ?comSingular ; + ?lexeme ontolex:lexicalForm ?comitativeSingularForm . + ?comitativeSingularForm ontolex:representation ?comitativeSingular ; wikibase:grammaticalFeature wd:Q838581, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?comPluralForm . - ?comPluralForm ontolex:representation ?comPlural ; - wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . + ?lexeme ontolex:lexicalForm ?comitativePluralForm . + ?comitativePluralForm ontolex:representation ?comitativePlural ; + wikibase:grammaticalFeature wd:Q838581, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Estonian/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Estonian/nouns/query_nouns.sparql index 0ead32fa5..3ae902144 100644 --- a/src/scribe_data/language_data_extraction/Estonian/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/nouns/query_nouns.sparql @@ -5,7 +5,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?singular - ?plural + ?nominativePlural WHERE { ?lexeme dct:language wd:Q9072 ; @@ -15,8 +15,8 @@ WHERE { # MARK: Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralForm . - ?pluralForm ontolex:representation ?plural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Estonian/postpositions/query_postpositions.sparql b/src/scribe_data/language_data_extraction/Estonian/postpositions/query_postpositions.sparql index 19532d7f9..5fb588605 100644 --- a/src/scribe_data/language_data_extraction/Estonian/postpositions/query_postpositions.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/postpositions/query_postpositions.sparql @@ -16,7 +16,7 @@ WHERE { OPTIONAL { ?lexeme wdt:P5713 ?caseForm . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Estonian/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Estonian/proper_nouns/query_proper_nouns.sparql index ac7b5cf6b..215d99803 100644 --- a/src/scribe_data/language_data_extraction/Estonian/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Estonian/proper_nouns/query_proper_nouns.sparql @@ -5,7 +5,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?singular - ?plural + ?nominativePlural WHERE { ?lexeme dct:language wd:Q9072 ; @@ -15,9 +15,8 @@ WHERE { # MARK: Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralForm . - ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q131105 ; - wikibase:grammaticalFeature wd:Q146786 ; - } . + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; + wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . + } } diff --git a/src/scribe_data/language_data_extraction/Finnish/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Finnish/nouns/query_nouns.sparql index c0a6ea142..11c95a44b 100644 --- a/src/scribe_data/language_data_extraction/Finnish/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Finnish/nouns/query_nouns.sparql @@ -4,19 +4,19 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural WHERE { ?lexeme dct:language wd:Q1412 ; wikibase:lexicalCategory wd:Q1084 ; - wikibase:lemma ?nomSingular . + wikibase:lemma ?nominativeSingular . # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Finnish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Finnish/proper_nouns/query_proper_nouns.sparql index 191bbda15..78c6b30ba 100644 --- a/src/scribe_data/language_data_extraction/Finnish/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Finnish/proper_nouns/query_proper_nouns.sparql @@ -4,20 +4,19 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural WHERE { ?lexeme dct:language wd:Q1412 ; wikibase:lexicalCategory wd:Q147276; - wikibase:lemma ?nomSingular . + wikibase:lemma ?nominativeSingular . # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; - wikibase:grammaticalFeature wd:Q131105 ; - wikibase:grammaticalFeature wd:Q146786 ; - } . + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; + wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . + } } diff --git a/src/scribe_data/language_data_extraction/Finnish/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Finnish/verbs/query_verbs.sparql index 614543ea8..fead64e2c 100644 --- a/src/scribe_data/language_data_extraction/Finnish/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Finnish/verbs/query_verbs.sparql @@ -5,120 +5,9 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb - ?infinitiveI WHERE { ?lexeme dct:language wd:Q1412 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . - - # Infinitives - OPTIONAL { - ?lexeme ontolex:lexicalForm ?infinitiveIForm . - ?infinitiveIForm ontolex:representation ?infinitiveI ; - wikibase:grammaticalFeature wd:Q179230 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?infinitiveIIForm . - ?infinitiveIIForm ontolex:representation ?infinitiveII ; - wikibase:grammaticalFeature wd:Q179230, wd:Q66596723 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?infinitiveIIIForm . - ?infinitiveIIIForm ontolex:representation ?infinitiveIII ; - wikibase:grammaticalFeature wd:Q179230, wd:Q66596786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?infinitiveIVForm . - ?infinitiveIVForm ontolex:representation ?infinitiveIV ; - wikibase:grammaticalFeature wd:Q179230, wd:Q66596828 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?infinitiveVForm . - ?infinitiveVForm ontolex:representation ?infinitiveV ; - wikibase:grammaticalFeature wd:Q179230, wd:Q66596870 . - } - - # Present Indicative - OPTIONAL { - ?lexeme ontolex:lexicalForm ?presIndSg1Form . - ?presIndSg1Form ontolex:representation ?presIndSg1 ; - wikibase:grammaticalFeature wd:Q192613, wd:Q21714344, wd:Q110786 . - } - - # Past Indicative - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastIndSg1Form . - ?pastIndSg1Form ontolex:representation ?pastIndSg1 ; - wikibase:grammaticalFeature wd:Q1240211, wd:Q21714344, wd:Q110786 . - } - - # Conditional - OPTIONAL { - ?lexeme ontolex:lexicalForm ?conditionalSg1Form . - ?conditionalSg1Form ontolex:representation ?conditionalSg1 ; - wikibase:grammaticalFeature wd:Q52824793, wd:Q21714344, wd:Q110786 . - } - - # Potential - OPTIONAL { - ?lexeme ontolex:lexicalForm ?potentialSg1Form . - ?potentialSg1Form ontolex:representation ?potentialSg1 ; - wikibase:grammaticalFeature wd:Q696092, wd:Q21714344, wd:Q110786 . - } - - # Imperative - OPTIONAL { - ?lexeme ontolex:lexicalForm ?imperativeSg2Form . - ?imperativeSg2Form ontolex:representation ?imperativeSg2 ; - wikibase:grammaticalFeature wd:Q22716, wd:Q51929049, wd:Q110786 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?imperativePl2Form . - ?imperativePl2Form ontolex:representation ?imperativePl2 ; - wikibase:grammaticalFeature wd:Q22716, wd:Q51929049, wd:Q146786 . - } - - # Participles - OPTIONAL { - ?lexeme ontolex:lexicalForm ?activePresParticipleForm . - ?activePresParticipleForm ontolex:representation ?activePresParticiple ; - wikibase:grammaticalFeature wd:Q814722, wd:Q1317831 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?activePastParticipleForm . - ?activePastParticipleForm ontolex:representation ?activePastParticiple ; - wikibase:grammaticalFeature wd:Q12612262, wd:Q1317831 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?passivePresParticipleForm . - ?passivePresParticipleForm ontolex:representation ?passivePresParticiple ; - wikibase:grammaticalFeature wd:Q814722, wd:Q1194697 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?passivePastParticipleForm . - ?passivePastParticipleForm ontolex:representation ?passivePastParticiple ; - wikibase:grammaticalFeature wd:Q12612262, wd:Q1194697 . - } - - # Passive forms - OPTIONAL { - ?lexeme ontolex:lexicalForm ?passivePresentForm . - ?passivePresentForm ontolex:representation ?passivePresent ; - wikibase:grammaticalFeature wd:Q192613, wd:Q1194697 . - } - - OPTIONAL { - ?lexeme ontolex:lexicalForm ?passivePastForm . - ?passivePastForm ontolex:representation ?passivePast ; - wikibase:grammaticalFeature wd:Q1240211, wd:Q1194697 . - } } diff --git a/src/scribe_data/language_data_extraction/French/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/French/proper_nouns/query_proper_nouns.sparql index 1dff615bd..43681835b 100644 --- a/src/scribe_data/language_data_extraction/French/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/French/proper_nouns/query_proper_nouns.sparql @@ -16,7 +16,7 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/French/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/French/verbs/query_verbs_1.sparql index ab036d6cd..0340e80a2 100644 --- a/src/scribe_data/language_data_extraction/French/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/French/verbs/query_verbs_1.sparql @@ -5,10 +5,18 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?presFPS ?presSPS ?presTPS - ?presFPP ?presSPP ?presTPP - ?pretFPS ?pretSPS ?pretTPS - ?pretFPP ?pretSPP ?pretTPP + ?indicativePresentFirstPersonSingular + ?indicativePresentSecondPersonSingular + ?indicativePresentThirdPersonSingular + ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonPlural + ?indicativePreteriteFirstPersonSingular + ?indicativePreteriteSecondPersonSingular + ?indicativePreteriteThirdPersonSingular + ?indicativePreteriteFirstPersonPlural + ?indicativePreteriteSecondPersonPlural + ?indicativePreteriteThirdPersonPlural WHERE { ?lexeme dct:language wd:Q150 ; @@ -22,89 +30,77 @@ WHERE { # MARK: Indicative Present - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPSForm . - ?presFPSForm ontolex:representation ?presFPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . + ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPSForm . - ?presSPSForm ontolex:representation ?presSPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPSForm . - ?presTPSForm ontolex:representation ?presTPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPPForm . - ?presFPPForm ontolex:representation ?presFPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . + ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPPForm . - ?presSPPForm ontolex:representation ?presSPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . + ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPPForm . - ?presTPPForm ontolex:representation ?presTPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . + ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . } # MARK: Indicative Preterite - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPSForm . - ?pretFPSForm ontolex:representation ?pretFPS ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteFirstPersonSingularForm . + ?indicativePreteriteFirstPersonSingularForm ontolex:representation ?indicativePreteriteFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q442485 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPSForm . - ?pretSPSForm ontolex:representation ?pretSPS ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteSecondPersonSingularForm . + ?indicativePreteriteSecondPersonSingularForm ontolex:representation ?indicativePreteriteSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q442485 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPSForm . - ?pretTPSForm ontolex:representation ?pretTPS ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteThirdPersonSingularForm . + ?indicativePreteriteThirdPersonSingularForm ontolex:representation ?indicativePreteriteThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q442485 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPPForm . - ?pretFPPForm ontolex:representation ?pretFPP ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteFirstPersonPluralForm . + ?indicativePreteriteFirstPersonPluralForm ontolex:representation ?indicativePreteriteFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q442485 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPPForm . - ?pretSPPForm ontolex:representation ?pretSPP ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteSecondPersonPluralForm . + ?indicativePreteriteSecondPersonPluralForm ontolex:representation ?indicativePreteriteSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q442485 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPPForm . - ?pretTPPForm ontolex:representation ?pretTPP ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteThirdPersonPluralForm . + ?indicativePreteriteThirdPersonPluralForm ontolex:representation ?indicativePreteriteThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q442485 . } } diff --git a/src/scribe_data/language_data_extraction/French/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/French/verbs/query_verbs_2.sparql index 5f8ce5c17..b21114424 100644 --- a/src/scribe_data/language_data_extraction/French/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/French/verbs/query_verbs_2.sparql @@ -5,10 +5,18 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?impFPS ?impSPS ?impTPS - ?impFPP ?impSPP ?impTPP - ?futFPS ?futSPS ?futTPS - ?futFPP ?futSPP ?futTPP + ?indicativeImperfectFirstPersonSingular + ?indicativeImperfectSecondPersonSingular + ?indicativeImperfectThirdPersonSingular + ?indicativeImperfectFirstPersonPlural + ?indicativeImperfectSecondPersonPlural + ?indicativeImperfectThirdPersonPlural + ?indicativeSimpleFutureFirstPersonSingular + ?indicativeSimpleFutureSecondPersonSingular + ?indicativeSimpleFutureThirdPersonSingular + ?indicativeSimpleFutureFirstPersonPlural + ?indicativeSimpleFutureSecondPersonPlural + ?indicativeSimpleFutureThirdPersonPlural WHERE { ?lexeme dct:language wd:Q150 ; @@ -22,89 +30,77 @@ WHERE { # MARK: Imperfect - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impFPSForm . - ?impFPSForm ontolex:representation ?impFPS ; + ?lexeme ontolex:lexicalForm ?indicativeImperfectFirstPersonSingularForm . + ?indicativeImperfectFirstPersonSingularForm ontolex:representation ?indicativeImperfectFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q108524486 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPSForm . - ?impSPSForm ontolex:representation ?impSPS ; + ?lexeme ontolex:lexicalForm ?indicativeImperfectSecondPersonSingularForm . + ?indicativeImperfectSecondPersonSingularForm ontolex:representation ?indicativeImperfectSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q108524486 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impTPSForm . - ?impTPSForm ontolex:representation ?impTPS ; + ?lexeme ontolex:lexicalForm ?indicativeImperfectThirdPersonSingularForm . + ?indicativeImperfectThirdPersonSingularForm ontolex:representation ?indicativeImperfectThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q108524486 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impFPPForm . - ?impFPPForm ontolex:representation ?impFPP ; + ?lexeme ontolex:lexicalForm ?indicativeImperfectFirstPersonPluralForm . + ?indicativeImperfectFirstPersonPluralForm ontolex:representation ?indicativeImperfectFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q108524486 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPPForm . - ?impSPPForm ontolex:representation ?impSPP ; + ?lexeme ontolex:lexicalForm ?indicativeImperfectSecondPersonPluralForm . + ?indicativeImperfectSecondPersonPluralForm ontolex:representation ?indicativeImperfectSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q108524486 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impTPPForm . - ?impTPPForm ontolex:representation ?impTPP ; + ?lexeme ontolex:lexicalForm ?indicativeImperfectThirdPersonPluralForm . + ?indicativeImperfectThirdPersonPluralForm ontolex:representation ?indicativeImperfectThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q108524486 . } # MARK: Future - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?futFPSForm . - ?futFPSForm ontolex:representation ?futFPS ; + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureFirstPersonSingularForm . + ?indicativeSimpleFutureFirstPersonSingularForm ontolex:representation ?indicativeSimpleFutureFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q1475560 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?futSPSForm . - ?futSPSForm ontolex:representation ?futSPS ; + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureSecondPersonSingularForm . + ?indicativeSimpleFutureSecondPersonSingularForm ontolex:representation ?indicativeSimpleFutureSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q1475560 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?futTPSForm . - ?futTPSForm ontolex:representation ?futTPS ; + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureThirdPersonSingularForm . + ?indicativeSimpleFutureThirdPersonSingularForm ontolex:representation ?indicativeSimpleFutureThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q1475560 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?futFPPForm . - ?futFPPForm ontolex:representation ?futFPP ; + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureFirstPersonPluralForm . + ?indicativeSimpleFutureFirstPersonPluralForm ontolex:representation ?indicativeSimpleFutureFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q1475560 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?futSPPForm . - ?futSPPForm ontolex:representation ?futSPP ; + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureSecondPersonPluralForm . + ?indicativeSimpleFutureSecondPersonPluralForm ontolex:representation ?indicativeSimpleFutureSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q1475560 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?futTPPForm . - ?futTPPForm ontolex:representation ?futTPP ; + ?lexeme ontolex:lexicalForm ?indicativeSimpleFutureThirdPersonPluralForm . + ?indicativeSimpleFutureThirdPersonPluralForm ontolex:representation ?indicativeSimpleFutureThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q1475560 . } } diff --git a/src/scribe_data/language_data_extraction/German/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/German/nouns/query_nouns.sparql index fb2e031fc..70ef2ac04 100644 --- a/src/scribe_data/language_data_extraction/German/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/German/nouns/query_nouns.sparql @@ -4,20 +4,20 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural ?gender WHERE { ?lexeme dct:language wd:Q188 ; wikibase:lexicalCategory wd:Q1084 ; - wikibase:lemma ?nomSingular . + wikibase:lemma ?nominativeSingular . # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q146786, wd:Q131105 . } diff --git a/src/scribe_data/language_data_extraction/German/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/German/proper_nouns/query_proper_nouns.sparql index 3818f5561..fef840fba 100644 --- a/src/scribe_data/language_data_extraction/German/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/German/proper_nouns/query_proper_nouns.sparql @@ -4,19 +4,19 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular + ?nominativeSingular ?gender WHERE { ?lexeme dct:language wd:Q188 ; wikibase:lexicalCategory wd:Q147276 ; - wikibase:lemma ?nomSingular . + wikibase:lemma ?nominativeSingular . # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/German/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/German/verbs/query_verbs_1.sparql index b5f3755a0..22a4a08c9 100644 --- a/src/scribe_data/language_data_extraction/German/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/German/verbs/query_verbs_1.sparql @@ -6,8 +6,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?presFPS ?presSPS ?presTPS - ?presFPP ?presSPP ?presTPP + ?indicativePresentFirstPersonSingular + ?indicativePresentSecondPersonSingular + ?indicativePresentThirdPersonSingular + ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonPlural WHERE { ?lexeme dct:language wd:Q188 ; @@ -22,33 +26,33 @@ WHERE { # MARK: Indicative Present OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPSForm . - ?presFPSForm ontolex:representation ?presFPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . + ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPSForm . - ?presSPSForm ontolex:representation ?presSPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPSForm . - ?presTPSForm ontolex:representation ?presTPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPPForm . - ?presFPPForm ontolex:representation ?presFPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . + ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPPForm . - ?presSPPForm ontolex:representation ?presSPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . + ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPPForm . - ?presTPPForm ontolex:representation ?presTPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . + ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . } diff --git a/src/scribe_data/language_data_extraction/German/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/German/verbs/query_verbs_2.sparql index aaa57bc67..92a60b863 100644 --- a/src/scribe_data/language_data_extraction/German/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/German/verbs/query_verbs_2.sparql @@ -5,9 +5,15 @@ # Not SELECT as we want to get verbs with both sein and haben as auxiliaries SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?infinitive ?pastParticiple ?auxiliaryVerb - ?pretFPS ?pretSPS ?pretTPS - ?pretFPP ?pretSPP ?pretTPP + ?infinitive + ?pastParticiple + ?auxiliaryVerb + ?indicativePreteriteFirstPersonSingular + ?indicativePreteriteSecondPersonSingular + ?indicativePreteriteThirdPersonSingular + ?indicativePreteriteFirstPersonPlural + ?indicativePreteriteSecondPersonPlural + ?indicativePreteriteThirdPersonPlural WHERE { ?lexeme dct:language wd:Q188 ; @@ -36,33 +42,33 @@ WHERE { # MARK: Indicative Preterite OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPSForm . - ?pretFPSForm ontolex:representation ?pretFPS ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteFirstPersonSingularForm . + ?indicativePreteriteFirstPersonSingularForm ontolex:representation ?indicativePreteriteFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q442485 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPSForm . - ?pretSPSForm ontolex:representation ?pretSPS ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteSecondPersonSingularForm . + ?indicativePreteriteSecondPersonSingularForm ontolex:representation ?indicativePreteriteSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q442485 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPSForm . - ?pretTPSForm ontolex:representation ?pretTPS ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteThirdPersonSingularForm . + ?indicativePreteriteThirdPersonSingularForm ontolex:representation ?indicativePreteriteThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q442485 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPPForm . - ?pretFPPForm ontolex:representation ?pretFPP ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteFirstPersonPluralForm . + ?indicativePreteriteFirstPersonPluralForm ontolex:representation ?indicativePreteriteFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q442485 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPPForm . - ?pretSPPForm ontolex:representation ?pretSPP ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteSecondPersonPluralForm . + ?indicativePreteriteSecondPersonPluralForm ontolex:representation ?indicativePreteriteSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q442485 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPPForm . - ?pretTPPForm ontolex:representation ?pretTPP ; + ?lexeme ontolex:lexicalForm ?indicativePreteriteThirdPersonPluralForm . + ?indicativePreteriteThirdPersonPluralForm ontolex:representation ?indicativePreteriteThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q442485 . } diff --git a/src/scribe_data/language_data_extraction/Greek/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Greek/nouns/query_nouns.sparql index dd9f09425..02e509e8e 100644 --- a/src/scribe_data/language_data_extraction/Greek/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Greek/nouns/query_nouns.sparql @@ -5,7 +5,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?singular - ?plural + ?nominativePlural ?gender WHERE { @@ -16,8 +16,8 @@ WHERE { # MARK: Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralForm . - ?pluralForm ontolex:representation ?plural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } diff --git a/src/scribe_data/language_data_extraction/Greek/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Greek/proper_nouns/query_proper_nouns.sparql index adbc859dd..0c33b4c2b 100644 --- a/src/scribe_data/language_data_extraction/Greek/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Greek/proper_nouns/query_proper_nouns.sparql @@ -19,7 +19,7 @@ WHERE { FILTER NOT EXISTS { ?lexeme wdt:P31 wd:Q202444 } - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Greek/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Greek/verbs/query_verbs.sparql index 85cd94988..4012aabbb 100644 --- a/src/scribe_data/language_data_extraction/Greek/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Greek/verbs/query_verbs.sparql @@ -5,10 +5,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?presFPS ?presSPS ?presTPS - ?presFPP ?presSPP ?presTPP - ?pastFPS ?pastSPS ?pastTPS - ?pastFPP ?pastSPP ?pastTPP + ?presentFirstPersonSingular + ?presentSecondPersonSingular + ?presentThirdPersonSingular + ?presentFirstPersonPlural + ?presentSecondPersonPlural + ?presentThirdPersonPlural WHERE { ?lexeme dct:language wd:Q36510 ; @@ -23,38 +25,38 @@ WHERE { # MARK: Present OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPSForm . - ?presFPSForm ontolex:representation ?presFPS ; + ?lexeme ontolex:lexicalForm ?presentFirstPersonSingularForm . + ?presentFirstPersonSingularForm ontolex:representation ?presentFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPSForm . - ?presSPSForm ontolex:representation ?presSPS ; + ?lexeme ontolex:lexicalForm ?presentSecondPersonSingularForm . + ?presentSecondPersonSingularForm ontolex:representation ?presentSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPSForm . - ?presTPSForm ontolex:representation ?presTPS ; + ?lexeme ontolex:lexicalForm ?presentThirdPersonSingularForm . + ?presentThirdPersonSingularForm ontolex:representation ?presentThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPPForm . - ?presFPPForm ontolex:representation ?presFPP ; + ?lexeme ontolex:lexicalForm ?presentFirstPersonPluralForm . + ?presentFirstPersonPluralForm ontolex:representation ?presentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPPForm . - ?presSPPForm ontolex:representation ?presSPP ; + ?lexeme ontolex:lexicalForm ?presentSecondPersonPluralForm . + ?presentSecondPersonPluralForm ontolex:representation ?presentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q192613 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPPForm . - ?presTPPForm ontolex:representation ?presTPP ; + ?lexeme ontolex:lexicalForm ?presentThirdPersonPluralForm . + ?presentThirdPersonPluralForm ontolex:representation ?presentThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q192613 . } } diff --git a/src/scribe_data/language_data_extraction/Hausa/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Hausa/nouns/query_nouns.sparql index b61e9c5c2..aab808508 100644 --- a/src/scribe_data/language_data_extraction/Hausa/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hausa/nouns/query_nouns.sparql @@ -21,7 +21,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 . - FILTER(lang(?plural) = "ha") . + FILTER(lang(?plural) = "ha") # FILTER(lang(?plural) = "ha-arabic") } diff --git a/src/scribe_data/language_data_extraction/Hausa/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Hausa/proper_nouns/query_proper_nouns.sparql index 9bc30fe50..47eee9390 100644 --- a/src/scribe_data/language_data_extraction/Hausa/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hausa/proper_nouns/query_proper_nouns.sparql @@ -1,5 +1,5 @@ # tool: scribe-data -# All Hausa (Q56475) nouns (Q1084) and the given forms. +# All Hausa (Q56475) proper nouns (Q147276) and the given forms. # Enter this query at https://query.wikidata.org/. SELECT @@ -18,7 +18,7 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Hebrew/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Hebrew/adjectives/query_adjectives.sparql index 1144509c9..317eb4827 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/adjectives/query_adjectives.sparql @@ -5,14 +5,14 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?femSingular - ?femSingularConstruct - ?femPlural - ?femPluralConstruct - ?masSingular - ?masSingularConstruct - ?masPlural - ?masPluralConstruct + ?feminineSingular + ?feminineSingularConstruct + ?femininePlural + ?femininePluralConstruct + ?masculineSingular + ?masculineSingularConstruct + ?masculinePlural + ?masculinePluralConstruct WHERE { ?lexeme dct:language wd:Q9288 ; @@ -23,72 +23,72 @@ WHERE { # MARK: Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularForm . - ?femSingularForm ontolex:representation ?femSingular ; + ?lexeme ontolex:lexicalForm ?feminineSingularForm . + ?feminineSingularForm ontolex:representation ?feminineSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 . FILTER NOT EXISTS { - ?femSingularForm wikibase:grammaticalFeature wd:Q1641446 . + ?feminineSingularForm wikibase:grammaticalFeature wd:Q1641446 . } - FILTER(lang(?femSingular) = "he") . + FILTER(lang(?feminineSingular) = "he") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularConstructForm . - ?femSingularConstructForm ontolex:representation ?femSingularConstruct ; + ?lexeme ontolex:lexicalForm ?feminineSingularConstructForm . + ?feminineSingularConstructForm ontolex:representation ?feminineSingularConstruct ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q1641446 . - FILTER(lang(?femSingularConstruct) = "he") . + FILTER(lang(?feminineSingularConstruct) = "he") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralForm . - ?femPluralForm ontolex:representation ?femPlural ; + ?lexeme ontolex:lexicalForm ?femininePluralForm . + ?femininePluralForm ontolex:representation ?femininePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . FILTER NOT EXISTS { - ?femPluralForm wikibase:grammaticalFeature wd:Q1641446 . + ?femininePluralForm wikibase:grammaticalFeature wd:Q1641446 . } - FILTER(lang(?femPlural) = "he") . + FILTER(lang(?femininePlural) = "he") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralConstructForm . - ?femPluralConstructForm ontolex:representation ?femPluralConstruct ; + ?lexeme ontolex:lexicalForm ?femininePluralConstructForm . + ?femininePluralConstructForm ontolex:representation ?femininePluralConstruct ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q1641446 . - FILTER(lang(?femPluralConstruct) = "he") . + FILTER(lang(?femininePluralConstruct) = "he") } # MARK: Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularForm . - ?masSingularForm ontolex:representation ?masSingular ; + ?lexeme ontolex:lexicalForm ?masculineSingularForm . + ?masculineSingularForm ontolex:representation ?masculineSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786 . FILTER NOT EXISTS { - ?masSingularForm wikibase:grammaticalFeature wd:Q1641446 . + ?masculineSingularForm wikibase:grammaticalFeature wd:Q1641446 . } - FILTER(lang(?masSingular) = "he") . + FILTER(lang(?masculineSingular) = "he") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularConstructForm . - ?masSingularConstructForm ontolex:representation ?masSingularConstruct ; + ?lexeme ontolex:lexicalForm ?masculineSingularConstructForm . + ?masculineSingularConstructForm ontolex:representation ?masculineSingularConstruct ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1641446 . - FILTER(lang(?masSingularConstruct) = "he") . + FILTER(lang(?masculineSingularConstruct) = "he") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralForm . - ?masPluralForm ontolex:representation ?masPlural ; + ?lexeme ontolex:lexicalForm ?masculinePluralForm . + ?masculinePluralForm ontolex:representation ?masculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786 . FILTER NOT EXISTS { - ?masPluralForm wikibase:grammaticalFeature wd:Q1641446 . + ?masculinePluralForm wikibase:grammaticalFeature wd:Q1641446 . } - FILTER(lang(?masPlural) = "he") . + FILTER(lang(?masculinePlural) = "he") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralConstructForm . - ?masPluralConstructForm ontolex:representation ?masPluralConstruct ; + ?lexeme ontolex:lexicalForm ?masculinePluralConstructForm . + ?masculinePluralConstructForm ontolex:representation ?masculinePluralConstruct ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q1641446 . - FILTER(lang(?masPluralConstruct) = "he") . + FILTER(lang(?masculinePluralConstruct) = "he") } } diff --git a/src/scribe_data/language_data_extraction/Hebrew/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Hebrew/nouns/query_nouns.sparql index f50ac2a39..6578ec433 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/nouns/query_nouns.sparql @@ -20,7 +20,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 . - FILTER(lang(?plural) = "he") . + FILTER(lang(?plural) = "he") } # MARK: Gender(s) diff --git a/src/scribe_data/language_data_extraction/Hebrew/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Hebrew/proper_nouns/query_proper_nouns.sparql index 927f487ca..c252b0b60 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/proper_nouns/query_proper_nouns.sparql @@ -17,7 +17,7 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_1.sparql index 239387c36..73b62a2b6 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_1.sparql @@ -5,7 +5,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?presSF ?presSM ?presPF ?presPM + ?femininePresentSingular + ?masculinePresentSingular + ?femininePresentPlural + ?masculinePresentPlural WHERE { ?lexeme dct:language wd:Q9288 ; @@ -15,35 +18,31 @@ WHERE { # MARK: Present - # Singular Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSFForm . - ?presSFForm ontolex:representation ?presSF ; + ?lexeme ontolex:lexicalForm ?femininePresentSingularForm . + ?femininePresentSingularForm ontolex:representation ?femininePresentSingular ; wikibase:grammaticalFeature wd:Q110786, wd:Q192613, wd:Q1775415 . - FILTER(lang(?presSF) = "he") . + FILTER(lang(?femininePresentSingular) = "he") } - # Singular Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSMForm . - ?presSMForm ontolex:representation ?presSM ; + ?lexeme ontolex:lexicalForm ?masculinePresentSingularForm . + ?masculinePresentSingularForm ontolex:representation ?masculinePresentSingular ; wikibase:grammaticalFeature wd:Q110786, wd:Q192613, wd:Q499327 . - FILTER(lang(?presSM) = "he") . + FILTER(lang(?masculinePresentSingular) = "he") } - # Plural Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?presPFForm . - ?presPFForm ontolex:representation ?presPF ; + ?lexeme ontolex:lexicalForm ?femininePresentPluralForm . + ?femininePresentPluralForm ontolex:representation ?femininePresentPlural ; wikibase:grammaticalFeature wd:Q146786, wd:Q192613, wd:Q1775415 . - FILTER(lang(?presPF) = "he") . + FILTER(lang(?femininePresentPlural) = "he") } - # Plural Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?presPMForm . - ?presPMForm ontolex:representation ?presPM ; + ?lexeme ontolex:lexicalForm ?masculinePresentPluralForm . + ?masculinePresentPluralForm ontolex:representation ?masculinePresentPlural ; wikibase:grammaticalFeature wd:Q146786, wd:Q192613, wd:Q499327 . - FILTER(lang(?presPM) = "he") . + FILTER(lang(?masculinePresentPlural) = "he") } } diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_2.sparql index 7dbeec3bc..6a30175f1 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_2.sparql @@ -5,7 +5,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?impSPSF ?impSPSM ?impSPPF ?impSPPM + ?feminineImperativeSecondPersonSingular + ?masculineImperativeSecondPersonSingular + ?feminineImperativeSecondPersonPlural + ?masculineImperativeSecondPersonPlural WHERE { ?lexeme dct:language wd:Q9288 ; @@ -13,35 +16,31 @@ WHERE { # MARK: Imerpative - # TPS Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPSMForm . - ?impSPSMForm ontolex:representation ?impSPSM ; + ?lexeme ontolex:lexicalForm ?feminineImperativeSecondPersonSingularForm . + ?feminineImperativeSecondPersonSingularForm ontolex:representation ?feminineImperativeSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q22716, wd:Q1775415 . - FILTER(lang(?impSPSM) = "he") . + FILTER(lang(?feminineImperativeSecondPersonSingular) = "he") } - # TPS Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPSMForm . - ?impSPSMForm ontolex:representation ?impSPSM ; - wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q22716, wd:Q1775415 . - FILTER(lang(?impSPSM) = "he") . + ?lexeme ontolex:lexicalForm ?masculineImperativeSecondPersonSingularForm . + ?masculineImperativeSecondPersonSingularForm ontolex:representation ?masculineImperativeSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q22716, wd:Q499327 . + FILTER(lang(?masculineImperativeSecondPersonSingular) = "he") } - # TPP Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPPFForm . - ?impSPPFForm ontolex:representation ?impSPPF ; + ?lexeme ontolex:lexicalForm ?feminineImperativeSecondPersonPluralForm . + ?feminineImperativeSecondPersonPluralForm ontolex:representation ?feminineImperativeSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q22716, wd:Q1775415 . - FILTER(lang(?impSPPF) = "he") . + FILTER(lang(?feminineImperativeSecondPersonPlural) = "he") } - # TPP Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPPMForm . - ?impSPPMForm ontolex:representation ?impSPPM ; + ?lexeme ontolex:lexicalForm ?masculineImperativeSecondPersonPluralForm . + ?masculineImperativeSecondPersonPluralForm ontolex:representation ?masculineImperativeSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q22716, wd:Q499327 . - FILTER(lang(?impSPPM) = "he") . + FILTER(lang(?masculineImperativeSecondPersonPlural) = "he") } } diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_3.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_3.sparql index f83846d09..7cc0b0421 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_3.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_3.sparql @@ -4,8 +4,16 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?pastFPS ?pastSPSF ?pastSPSM ?pastTPSF ?pastTPSM - ?pastFPP ?pastSPPF ?pastSPPM ?pastTPPF ?pastTPPM + ?pastFirstPersonSingular + ?femininePastSecondPersonSingular + ?masculinePastSecondPersonSingular + ?femininePastThirdPersonSingular + ?masculinePastThirdPersonSingular + ?pastFirstPersonPlural + ?femininePastSecondPersonPlural + ?masculinePastSecondPersonPlural + ?femininePastThirdPersonPlural + ?masculinePastThirdPersonPlural WHERE { ?lexeme dct:language wd:Q9288 ; @@ -13,93 +21,73 @@ WHERE { # MARK: Past - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastTPPForm . - ?pastTPPForm ontolex:representation ?pastTPP ; - wikibase:grammaticalFeature wd:Q21714344 ; - wikibase:grammaticalFeature wd:Q110786, wd:Q1994301 . - FILTER(lang(?pastTPP) = "he") . + ?lexeme ontolex:lexicalForm ?pastFirstPersonSingular . + ?pastFirstPersonSingular ontolex:representation ?pastFirstPersonSingular ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q1994301 . + FILTER(lang(?pastTPP) = "he") } - # SPS Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastSPSFForm . - ?pastSPSFForm ontolex:representation ?pastSPSF ; - wikibase:grammaticalFeature wd:Q51929049 ; - wikibase:grammaticalFeature wd:Q110786, wd:Q1994301, wd:Q1775415 . - FILTER(lang(?pastSPSF) = "he") . + ?lexeme ontolex:lexicalForm ?femininePastSecondPersonSingularForm . + ?femininePastSecondPersonSingularForm ontolex:representation ?femininePastSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1994301, wd:Q1775415 . + FILTER(lang(?femininePastSecondPersonSingular) = "he") } - # SPS Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastSPSMForm . - ?pastSPSMForm ontolex:representation ?pastSPSM ; - wikibase:grammaticalFeature wd:Q51929049 ; - wikibase:grammaticalFeature wd:Q110786, wd:Q1994301, wd:Q499327 . - FILTER(lang(?pastSPSM) = "he") . + ?lexeme ontolex:lexicalForm ?masculinePastSecondPersonSingularForm . + ?masculinePastSecondPersonSingularForm ontolex:representation ?masculinePastSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q1994301, wd:Q499327 . + FILTER(lang(?masculinePastSecondPersonSingular) = "he") } - # TPS Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastTPSFForm . - ?pastTPSFForm ontolex:representation ?pastTPSF ; - wikibase:grammaticalFeature wd:Q51929074 ; - wikibase:grammaticalFeature wd:Q110786, wd:Q1994301, wd:Q1775415 . - FILTER(lang(?pastTPSF) = "he") . + ?lexeme ontolex:lexicalForm ?femininePastThirdPersonSingularForm . + ?femininePastThirdPersonSingularForm ontolex:representation ?femininePastThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q1994301, wd:Q1775415 . + FILTER(lang(?femininePastThirdPersonSingular) = "he") } - # TPS Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastTPSMForm . - ?pastTPSMForm ontolex:representation ?pastTPSM ; - wikibase:grammaticalFeature wd:Q51929074 ; - wikibase:grammaticalFeature wd:Q110786, wd:Q1994301, wd:Q499327 . - FILTER(lang(?pastTPSM) = "he") . + ?lexeme ontolex:lexicalForm ?masculinePastThirdPersonSingularForm . + ?masculinePastThirdPersonSingularForm ontolex:representation ?masculinePastThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q1994301, wd:Q499327 . + FILTER(lang(?masculinePastThirdPersonSingular) = "he") } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastFPPForm . - ?pastFPPForm ontolex:representation ?pastFPP ; - wikibase:grammaticalFeature wd:Q21714344 ; - wikibase:grammaticalFeature wd:Q146786, wd:Q1994301 . - FILTER(lang(?pastFPP) = "he") . + ?lexeme ontolex:lexicalForm ?pastFirstPersonPluralForm . + ?pastFirstPersonPluralForm ontolex:representation ?pastFirstPersonPlural ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q1994301 . + FILTER(lang(?pastFirstPersonPlural) = "he") } - # SPP Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastSPPFForm . - ?pastSPPFForm ontolex:representation ?pastSPPF ; - wikibase:grammaticalFeature wd:Q51929049 ; - wikibase:grammaticalFeature wd:Q146786, wd:Q1994301, wd:Q1775415 . - FILTER(lang(?pastSPPF) = "he") . + ?lexeme ontolex:lexicalForm ?femininePastSecondPersonPluralForm . + ?femininePastSecondPersonPluralForm ontolex:representation ?femininePastSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1994301, wd:Q1775415 . + FILTER(lang(?femininePastSecondPersonPlural) = "he") } - # SPP Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastSPPMForm . - ?pastSPPMForm ontolex:representation ?pastSPPM ; - wikibase:grammaticalFeature wd:Q51929049 ; - wikibase:grammaticalFeature wd:Q146786, wd:Q1994301, wd:Q499327 . - FILTER(lang(?pastSPPM) = "he") . + ?lexeme ontolex:lexicalForm ?masculinePastSecondPersonPluralForm . + ?masculinePastSecondPersonPluralForm ontolex:representation ?masculinePastSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1994301, wd:Q499327 . + FILTER(lang(?masculinePastSecondPersonPlural) = "he") } - # TPP Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastTPPFForm . - ?pastTPPFForm ontolex:representation ?pastTPPF ; - wikibase:grammaticalFeature wd:Q51929074 ; - wikibase:grammaticalFeature wd:Q146786, wd:Q1994301, wd:Q1775415 . - FILTER(lang(?pastTPPF) = "he") . + ?lexeme ontolex:lexicalForm ?femininePastThirdPersonPluralForm . + ?femininePastThirdPersonPluralForm ontolex:representation ?femininePastThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q1994301, wd:Q1775415 . + FILTER(lang(?femininePastThirdPersonPlural) = "he") } - # TPP Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastTPPMForm . - ?pastTPPMForm ontolex:representation ?pastTPPM ; - wikibase:grammaticalFeature wd:Q51929074 ; - wikibase:grammaticalFeature wd:Q146786, wd:Q1994301, wd:Q499327 . - FILTER(lang(?pastTPPM) = "he") . + ?lexeme ontolex:lexicalForm ?masculinePastThirdPersonPluralForm . + ?masculinePastThirdPersonPluralForm ontolex:representation ?masculinePastThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q1994301, wd:Q499327 . + FILTER(lang(?masculinePastThirdPersonPlural) = "he") } } diff --git a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_4.sparql b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_4.sparql index 42da72fd4..d16276b1b 100644 --- a/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_4.sparql +++ b/src/scribe_data/language_data_extraction/Hebrew/verbs/query_verbs_4.sparql @@ -4,8 +4,16 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?futFPS ?futSPSF ?futSPSM ?futTPSF ?futTPSM - ?futFPP ?futSPPF ?futSPPM ?futTPPF ?futTPPM + ?futureFirstPersonSingular + ?feminineFutureSecondPersonSingular + ?masculineFutureSecondPersonSingular + ?feminineFutureThirdPersonSingular + ?masculineFutureThirdPersonSingular + ?futureFirstPersonPlural + ?feminineFutureSecondPersonPlural + ?masculineFutureSecondPersonPlural + ?feminineFutureThirdPersonPlural + ?masculineFutureThirdPersonPlural WHERE { ?lexeme dct:language wd:Q9288 ; @@ -13,83 +21,73 @@ WHERE { # MARK: Future - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?futFPSForm . - ?futFPSForm ontolex:representation ?futFPS ; + ?lexeme ontolex:lexicalForm ?futureFirstPersonSingularForm . + ?futureFirstPersonSingularForm ontolex:representation ?futureFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q501405 . - FILTER(lang(?futFPS) = "he") . + FILTER(lang(?futureFirstPersonSingular) = "he") . } - # SPS Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?futSPSFForm . - ?futSPSFForm ontolex:representation ?futSPSF ; + ?lexeme ontolex:lexicalForm ?feminineFutureSecondPersonSingularForm . + ?feminineFutureSecondPersonSingularForm ontolex:representation ?feminineFutureSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q501405, wd:Q1775415 . - FILTER(lang(?futSPSF) = "he") . + FILTER(lang(?feminineFutureSecondPersonSingular) = "he") . } - # SPS Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?futSPSMForm . - ?futSPSMForm ontolex:representation ?futSPSM ; + ?lexeme ontolex:lexicalForm ?masculineFutureSecondPersonSingularForm . + ?masculineFutureSecondPersonSingularForm ontolex:representation ?masculineFutureSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q501405, wd:Q499327 . - FILTER(lang(?futSPSM) = "he") . + FILTER(lang(?masculineFutureSecondPersonSingular) = "he") . } - # TPS Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?futTPSFForm . - ?futTPSFForm ontolex:representation ?futTPSF ; + ?lexeme ontolex:lexicalForm ?feminineFutureThirdPersonSingularForm . + ?feminineFutureThirdPersonSingularForm ontolex:representation ?feminineFutureThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q501405, wd:Q1775415 . - FILTER(lang(?futTPSF) = "he") . + FILTER(lang(?feminineFutureThirdPersonSingular) = "he") . } - # TPS Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?futTPSMForm . - ?futTPSMForm ontolex:representation ?futTPSM ; + ?lexeme ontolex:lexicalForm ?masculineFutureThirdPersonSingularForm . + ?masculineFutureThirdPersonSingularForm ontolex:representation ?masculineFutureThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q501405, wd:Q499327 . - FILTER(lang(?futTPSM) = "he") . + FILTER(lang(?masculineFutureThirdPersonSingular) = "he") . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?futFPPForm . - ?futFPPForm ontolex:representation ?futFPP ; + ?lexeme ontolex:lexicalForm ?futureFirstPersonPluralForm . + ?futureFirstPersonPluralForm ontolex:representation ?futureFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q501405 . - FILTER(lang(?futFPP) = "he") . + FILTER(lang(?futureFirstPersonPlural) = "he") . } - # SPP Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?futSPPFForm . - ?futSPPFForm ontolex:representation ?futSPPF ; + ?lexeme ontolex:lexicalForm ?feminineFutureSecondPersonPluralForm . + ?feminineFutureSecondPersonPluralForm ontolex:representation ?feminineFutureSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q501405, wd:Q1775415 . - FILTER(lang(?futSPPF) = "he") . + FILTER(lang(?feminineFutureSecondPersonPlural) = "he") . } - # SPP Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?futSPPMForm . - ?futSPPMForm ontolex:representation ?futSPPM ; + ?lexeme ontolex:lexicalForm ?masculineFutureSecondPersonPluralForm . + ?masculineFutureSecondPersonPluralForm ontolex:representation ?masculineFutureSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q501405, wd:Q499327 . - FILTER(lang(?futSPPM) = "he") . + FILTER(lang(?masculineFutureSecondPersonPlural) = "he") . } - # TPP Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?futTPPFForm . - ?futTPPFForm ontolex:representation ?futTPPF ; + ?lexeme ontolex:lexicalForm ?feminineFutureThirdPersonPluralForm . + ?feminineFutureThirdPersonPluralForm ontolex:representation ?feminineFutureThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q501405, wd:Q1775415 . - FILTER(lang(?futTPPF) = "he") . + FILTER(lang(?feminineFutureThirdPersonPlural) = "he") . } - # TPP Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?futTPPMForm . - ?futTPPMForm ontolex:representation ?futTPPM ; + ?lexeme ontolex:lexicalForm ?masculineFutureThirdPersonPluralForm . + ?masculineFutureThirdPersonPluralForm ontolex:representation ?masculineFutureThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q501405, wd:Q499327 . - FILTER(lang(?futTPPM) = "he") . + FILTER(lang(?masculineFutureThirdPersonPlural) = "he") . } } diff --git a/src/scribe_data/language_data_extraction/Hindustani/Hindi/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Hindustani/Hindi/adjectives/query_adjectives.sparql index 88f20249d..1c83b4d13 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Hindi/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Hindi/adjectives/query_adjectives.sparql @@ -7,20 +7,20 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?singulativeNumeral - ?collectiveNumeral - ?femSingularDirect - ?masSingularDirect - ?femPluralDirect - ?masPluralDirect - ?femSingularOblique - ?masSingularOblique - ?femPluralOblique - ?masPluralOblique - ?femSingularVocative - ?masSingularVocative - ?femPluralVocative - ?masPluralVocative + ?singular + ?plural + ?directFeminineSingular + ?directMasculineSingular + ?directFemininePlural + ?directMasculinePlural + ?obliqueFeminineSingular + ?obliqueMasculineSingular + ?obliqueFemininePlural + ?obliqueMasculinePlural + ?vocativeFeminineSingular + ?vocativeMasculineSingular + ?vocativeFemininePlural + ?vocativeMasculinePlural WHERE { ?lexeme dct:language wd:Q11051 ; @@ -31,108 +31,108 @@ WHERE { # MARK: Singulative Numeral OPTIONAL { - ?lexeme ontolex:lexicalForm ?singulativeNumeralForm . - ?singulativeNumeralForm ontolex:representation ?singulativeNumeral ; + ?lexeme ontolex:lexicalForm ?singularForm . + ?singularForm ontolex:representation ?singular ; wikibase:grammaticalFeature wd:Q110786 . - FILTER(LANG(?singulativeNumeral) = "hi") . + FILTER(LANG(?singular) = "hi") } # MARK: Collective Numeral OPTIONAL { - ?lexeme ontolex:lexicalForm ?collectiveNumeralForm . - ?collectiveNumeralForm ontolex:representation ?collectiveNumeral ; + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 . - FILTER(LANG(?collectiveNumeral) = "hi") . + FILTER(LANG(?plural) = "hi") } # MARK: Direct OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularDirectForm . - ?femSingularDirectForm ontolex:representation ?femSingularDirect ; + ?lexeme ontolex:lexicalForm ?directFeminineSingularForm . + ?directFeminineSingularForm ontolex:representation ?directFeminineSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q1751855 . - FILTER(LANG(?femSingularDirect) = "hi") . + FILTER(LANG(?directFeminineSingular) = "hi") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularDirectForm . - ?masSingularDirectForm ontolex:representation ?masSingularDirect ; + ?lexeme ontolex:lexicalForm ?directMasculineSingularForm . + ?directMasculineSingularForm ontolex:representation ?directMasculineSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1751855 . - FILTER(LANG(?masSingularDirect) = "hi") . + FILTER(LANG(?directMasculineSingular) = "hi") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralDirectForm . - ?femPluralDirectForm ontolex:representation ?femPluralDirect ; + ?lexeme ontolex:lexicalForm ?directFemininePluralForm . + ?directFemininePluralForm ontolex:representation ?directFemininePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q1751855 . - FILTER(LANG(?femPluralDirect) = "hi") . + FILTER(LANG(?directFemininePlural) = "hi") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralDirectForm . - ?masPluralDirectForm ontolex:representation ?masPluralDirect ; + ?lexeme ontolex:lexicalForm ?directMasculinePluralForm . + ?directMasculinePluralForm ontolex:representation ?directMasculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q1751855 . - FILTER(LANG(?masPluralDirect) = "hi") . + FILTER(LANG(?directMasculinePlural) = "hi") } # MARK: Oblique OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularObliqueForm . - ?femSingularObliqueForm ontolex:representation ?femSingularOblique ; + ?lexeme ontolex:lexicalForm ?obliqueFeminineSingularForm . + ?obliqueFeminineSingularForm ontolex:representation ?obliqueFeminineSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q1233197 . - FILTER(LANG(?femSingularOblique) = "hi") . + FILTER(LANG(?obliqueFeminineSingular) = "hi") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularObliqueForm . - ?masSingularObliqueForm ontolex:representation ?masSingularOblique ; + ?lexeme ontolex:lexicalForm ?obliqueMasculineSingularForm . + ?obliqueMasculineSingularForm ontolex:representation ?obliqueMasculineSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1233197 . - FILTER(LANG(?masSingularOblique) = "hi") . + FILTER(LANG(?obliqueMasculineSingular) = "hi") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralObliqueForm . - ?femPluralObliqueForm ontolex:representation ?femPluralOblique ; + ?lexeme ontolex:lexicalForm ?obliqueFemininePluralForm . + ?obliqueFemininePluralForm ontolex:representation ?obliqueFemininePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q1233197 . - FILTER(LANG(?femPluralOblique) = "hi") . + FILTER(LANG(?obliqueFemininePlural) = "hi") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralObliqueForm . - ?masPluralObliqueForm ontolex:representation ?masPluralOblique ; + ?lexeme ontolex:lexicalForm ?obliqueMasculinePluralForm . + ?obliqueMasculinePluralForm ontolex:representation ?obliqueMasculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q1233197 . - FILTER(LANG(?masPluralOblique) = "hi") . + FILTER(LANG(?obliqueMasculinePlural) = "hi") } # MARK: Vocative OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularVocativeForm . - ?femSingularVocativeForm ontolex:representation ?femSingularVocative ; + ?lexeme ontolex:lexicalForm ?vocativeFeminineSingularForm . + ?vocativeFeminineSingularForm ontolex:representation ?vocativeFeminineSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q185077 . - FILTER(LANG(?femSingularVocative) = "hi") . + FILTER(LANG(?vocativeFeminineSingular) = "hi") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularVocativeForm . - ?masSingularVocativeForm ontolex:representation ?masSingularVocative ; + ?lexeme ontolex:lexicalForm ?vocativeMasculineSingularForm . + ?vocativeMasculineSingularForm ontolex:representation ?vocativeMasculineSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q185077 . - FILTER(LANG(?masSingularVocative) = "hi") . + FILTER(LANG(?vocativeMasculineSingular) = "hi") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralVocativeForm . - ?femPluralVocativeForm ontolex:representation ?femPluralVocative ; + ?lexeme ontolex:lexicalForm ?vocativeFemininePluralForm . + ?vocativeFemininePluralForm ontolex:representation ?vocativeFemininePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q185077 . - FILTER(LANG(?femPluralVocative) = "hi") . + FILTER(LANG(?vocativeFemininePlural) = "hi") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralVocativeForm . - ?masPluralVocativeForm ontolex:representation ?masPluralVocative ; + ?lexeme ontolex:lexicalForm ?vocativeMasculinePluralForm . + ?vocativeMasculinePluralForm ontolex:representation ?vocativeMasculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q185077 . - FILTER(LANG(?masPluralVocative) = "hi") . + FILTER(LANG(?vocativeMasculinePlural) = "hi") } } diff --git a/src/scribe_data/language_data_extraction/Hindustani/Hindi/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Hindustani/Hindi/nouns/query_nouns.sparql index 527ab94fe..9b1d37a97 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Hindi/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Hindi/nouns/query_nouns.sparql @@ -22,7 +22,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 . - FILTER(lang(?plural) = "hi") . + FILTER(lang(?plural) = "hi") } # MARK: Gender(s) diff --git a/src/scribe_data/language_data_extraction/Hindustani/Hindi/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Hindustani/Hindi/proper_nouns/query_proper_nouns.sparql index aa8d3c33e..d72eed835 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Hindi/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Hindi/proper_nouns/query_proper_nouns.sparql @@ -21,15 +21,15 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q146786 . FILTER(lang(?plural) = "hi") - } . + } # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Hindustani/Hindi/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Hindustani/Hindi/verbs/query_verbs.sparql index 058359fa4..9b24cdd3c 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Hindi/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Hindi/verbs/query_verbs.sparql @@ -7,16 +7,15 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?directCase + ?direct ?gerund ?intransitivePhase ?basicPhase - ?conjParticiple + ?conjunctiveParticiple ?adverbial - ?absConstruction + ?absoluteConstruction ?accusative - ?ergative - ?additivePhase + ?oblique WHERE { # MARK: Infinitive @@ -24,15 +23,15 @@ WHERE { ?lexeme dct:language wd:Q11051 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?infinitive . - FILTER(lang(?infinitive) = "hi") . + FILTER(lang(?infinitive) = "hi") # MARK: Direct Case OPTIONAL { - ?lexeme ontolex:lexicalForm ?directCaseForm . - ?directCaseForm ontolex:representation ?directCase ; + ?lexeme ontolex:lexicalForm ?directForm . + ?directForm ontolex:representation ?direct ; wikibase:grammaticalFeature wd:Q1751855 . - FILTER(LANG(?directCase) = "hi") . + FILTER(LANG(?direct) = "hi") } # MARK: Gerund @@ -41,7 +40,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?gerundForm . ?gerundForm ontolex:representation ?gerund ; wikibase:grammaticalFeature wd:Q1923028 . - FILTER(LANG(?gerund) = "hi") . + FILTER(LANG(?gerund) = "hi") } # MARK: Intransitive Phase @@ -50,7 +49,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?intransitivePhaseForm . ?intransitivePhaseForm ontolex:representation ?intransitivePhase ; wikibase:grammaticalFeature wd:Q113330736 . - FILTER(LANG(?intransitivePhase) = "hi") . + FILTER(LANG(?intransitivePhase) = "hi") } # MARK: Basic Phase @@ -59,16 +58,16 @@ WHERE { ?lexeme ontolex:lexicalForm ?basicPhaseForm . ?basicPhaseForm ontolex:representation ?basicPhase ; wikibase:grammaticalFeature wd:Q113330960 . - FILTER(LANG(?basicPhase) = "hi") . + FILTER(LANG(?basicPhase) = "hi") } # MARK: Conjunctive Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?conjParticipleForm . - ?conjParticipleForm ontolex:representation ?conjParticiple ; + ?lexeme ontolex:lexicalForm ?conjunctiveParticipleForm . + ?conjunctiveParticipleForm ontolex:representation ?conjunctiveParticiple ; wikibase:grammaticalFeature wd:Q113133303 . - FILTER(LANG(?conjParticiple) = "hi") . + FILTER(LANG(?conjunctiveParticiple) = "hi") } # MARK: Adverbial @@ -77,16 +76,16 @@ WHERE { ?lexeme ontolex:lexicalForm ?adverbialForm . ?adverbialForm ontolex:representation ?adverbial ; wikibase:grammaticalFeature wd:Q380012 . - FILTER(LANG(?adverbial) = "hi") . + FILTER(LANG(?adverbial) = "hi") } # MARK: Absolute Construction OPTIONAL { - ?lexeme ontolex:lexicalForm ?absConstructionForm . - ?absConstructionForm ontolex:representation ?absConstruction ; + ?lexeme ontolex:lexicalForm ?absoluteConstructionForm . + ?absoluteConstructionForm ontolex:representation ?absoluteConstruction ; wikibase:grammaticalFeature wd:Q4669807 . - FILTER(LANG(?absConstruction) = "hi") . + FILTER(LANG(?absoluteConstruction) = "hi") } # MARK: Accusative @@ -94,16 +93,16 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?accusativeForm . ?accusativeForm ontolex:representation ?accusative ; - wikibase:grammaticalFeature wd:Q1233197 . - FILTER(LANG(?accusative) = "hi") . + wikibase:grammaticalFeature wd:Q146078 . + FILTER(LANG(?accusative) = "hi") } - # MARK: Ergative + # MARK: Oblique OPTIONAL { - ?lexeme ontolex:lexicalForm ?ergativeForm . - ?ergativeForm ontolex:representation ?ergative ; + ?lexeme ontolex:lexicalForm ?obliqueForm . + ?obliqueForm ontolex:representation ?oblique ; wikibase:grammaticalFeature wd:Q1233197 . - FILTER(LANG(?ergative) = "hi") . + FILTER(LANG(?oblique) = "hi") } } diff --git a/src/scribe_data/language_data_extraction/Hindustani/Urdu/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Hindustani/Urdu/adjectives/query_adjectives.sparql index 110d12812..e4148b310 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Urdu/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Urdu/adjectives/query_adjectives.sparql @@ -7,20 +7,20 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?singulativeNumeral - ?collectiveNumeral - ?femSingularDirect - ?masSingularDirect - ?femPluralDirect - ?masPluralDirect - ?femSingularOblique - ?masSingularOblique - ?femPluralOblique - ?masPluralOblique - ?femSingularVocative - ?masSingularVocative - ?femPluralVocative - ?masPluralVocative + ?singular + ?plural + ?directFeminineSingular + ?directMasculineSingular + ?directFemininePlural + ?directMasculinePlural + ?obliqueFeminineSingular + ?obliqueMasculineSingular + ?obliqueFemininePlural + ?obliqueMasculinePlural + ?vocativeFeminineSingular + ?vocativeMasculineSingular + ?vocativeFemininePlural + ?vocativeMasculinePlural WHERE { ?lexeme dct:language wd:Q11051 ; @@ -31,108 +31,108 @@ WHERE { # MARK: Singulative Numeral OPTIONAL { - ?lexeme ontolex:lexicalForm ?singulativeNumeralForm . - ?singulativeNumeralForm ontolex:representation ?singulativeNumeral ; + ?lexeme ontolex:lexicalForm ?singularForm . + ?singularForm ontolex:representation ?singular ; wikibase:grammaticalFeature wd:Q110786 . - FILTER(LANG(?singulativeNumeral) = "ur") . + FILTER(LANG(?singular) = "ur") } # MARK: Collective Numeral OPTIONAL { - ?lexeme ontolex:lexicalForm ?collectiveNumeralForm . - ?collectiveNumeralForm ontolex:representation ?collectiveNumeral ; + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 . - FILTER(LANG(?collectiveNumeral) = "ur") . + FILTER(LANG(?plural) = "ur") } # MARK: Direct OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularDirectForm . - ?femSingularDirectForm ontolex:representation ?femSingularDirect ; + ?lexeme ontolex:lexicalForm ?directFeminineSingularForm . + ?directFeminineSingularForm ontolex:representation ?directFeminineSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q1751855 . - FILTER(LANG(?femSingularDirect) = "ur") . + FILTER(LANG(?directFeminineSingular) = "ur") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularDirectForm . - ?masSingularDirectForm ontolex:representation ?masSingularDirect ; + ?lexeme ontolex:lexicalForm ?directMasculineSingularForm . + ?directMasculineSingularForm ontolex:representation ?directMasculineSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1751855 . - FILTER(LANG(?masSingularDirect) = "ur") . + FILTER(LANG(?directMasculineSingular) = "ur") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralDirectForm . - ?femPluralDirectForm ontolex:representation ?femPluralDirect ; + ?lexeme ontolex:lexicalForm ?directFemininePluralForm . + ?directFemininePluralForm ontolex:representation ?directFemininePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q1751855 . - FILTER(LANG(?femPluralDirect) = "ur") . + FILTER(LANG(?directFemininePlural) = "ur") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralDirectForm . - ?masPluralDirectForm ontolex:representation ?masPluralDirect ; + ?lexeme ontolex:lexicalForm ?directMasculinePluralForm . + ?directMasculinePluralForm ontolex:representation ?directMasculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q1751855 . - FILTER(LANG(?masPluralDirect) = "ur") . + FILTER(LANG(?directMasculinePlural) = "ur") } # MARK: Oblique OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularObliqueForm . - ?femSingularObliqueForm ontolex:representation ?femSingularOblique ; + ?lexeme ontolex:lexicalForm ?obliqueFeminineSingularForm . + ?obliqueFeminineSingularForm ontolex:representation ?obliqueFeminineSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q1233197 . - FILTER(LANG(?femSingularOblique) = "ur") . + FILTER(LANG(?obliqueFeminineSingular) = "ur") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularObliqueForm . - ?masSingularObliqueForm ontolex:representation ?masSingularOblique ; + ?lexeme ontolex:lexicalForm ?obliqueMasculineSingularForm . + ?obliqueMasculineSingularForm ontolex:representation ?obliqueMasculineSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1233197 . - FILTER(LANG(?masSingularOblique) = "ur") . + FILTER(LANG(?obliqueMasculineSingular) = "ur") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralObliqueForm . - ?femPluralObliqueForm ontolex:representation ?femPluralOblique ; + ?lexeme ontolex:lexicalForm ?obliqueFemininePluralForm . + ?obliqueFemininePluralForm ontolex:representation ?obliqueFemininePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q1233197 . - FILTER(LANG(?femPluralOblique) = "ur") . + FILTER(LANG(?obliqueFemininePlural) = "ur") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralObliqueForm . - ?masPluralObliqueForm ontolex:representation ?masPluralOblique ; + ?lexeme ontolex:lexicalForm ?obliqueMasculinePluralForm . + ?obliqueMasculinePluralForm ontolex:representation ?obliqueMasculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q1233197 . - FILTER(LANG(?masPluralOblique) = "ur") . + FILTER(LANG(?obliqueMasculinePlural) = "ur") } # MARK: Vocative OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularVocativeForm . - ?femSingularVocativeForm ontolex:representation ?femSingularVocative ; + ?lexeme ontolex:lexicalForm ?vocativeFeminineSingularForm . + ?vocativeFeminineSingularForm ontolex:representation ?vocativeFeminineSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q185077 . - FILTER(LANG(?femSingularVocative) = "ur") . + FILTER(LANG(?vocativeFeminineSingular) = "ur") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularVocativeForm . - ?masSingularVocativeForm ontolex:representation ?masSingularVocative ; + ?lexeme ontolex:lexicalForm ?vocativeMasculineSingularForm . + ?vocativeMasculineSingularForm ontolex:representation ?vocativeMasculineSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q185077 . - FILTER(LANG(?masSingularVocative) = "ur") . + FILTER(LANG(?vocativeMasculineSingular) = "ur") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralVocativeForm . - ?femPluralVocativeForm ontolex:representation ?femPluralVocative ; + ?lexeme ontolex:lexicalForm ?vocativeFemininePluralForm . + ?vocativeFemininePluralForm ontolex:representation ?vocativeFemininePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q185077 . - FILTER(LANG(?femPluralVocative) = "ur") . + FILTER(LANG(?vocativeFemininePlural) = "ur") } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralVocativeForm . - ?masPluralVocativeForm ontolex:representation ?masPluralVocative ; + ?lexeme ontolex:lexicalForm ?vocativeMasculinePluralForm . + ?vocativeMasculinePluralForm ontolex:representation ?vocativeMasculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q185077 . - FILTER(LANG(?masPluralVocative) = "ur") . + FILTER(LANG(?vocativeMasculinePlural) = "ur") } } diff --git a/src/scribe_data/language_data_extraction/Hindustani/Urdu/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Hindustani/Urdu/nouns/query_nouns.sparql index ebfa7a646..9d25abb70 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Urdu/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Urdu/nouns/query_nouns.sparql @@ -22,7 +22,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 . - FILTER(lang(?plural) = "ur") . + FILTER(lang(?plural) = "ur") } # MARK: Gender(s) diff --git a/src/scribe_data/language_data_extraction/Hindustani/Urdu/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Hindustani/Urdu/proper_nouns/query_proper_nouns.sparql index fd751fb3c..e9a0443fa 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Urdu/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Urdu/proper_nouns/query_proper_nouns.sparql @@ -21,15 +21,15 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q146786 . FILTER(lang(?plural) = "ur") - } . + } # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Hindustani/Urdu/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Hindustani/Urdu/verbs/query_verbs.sparql index 233b1b3a4..fd6b9403b 100644 --- a/src/scribe_data/language_data_extraction/Hindustani/Urdu/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Hindustani/Urdu/verbs/query_verbs.sparql @@ -7,7 +7,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?directCase + ?direct ?gerund ?intransitivePhase ?basicPhase @@ -23,11 +23,11 @@ WHERE { # MARK: Direct Case OPTIONAL { - ?lexeme ontolex:lexicalForm ?directCaseForm . - ?directCaseForm ontolex:representation ?directCase ; + ?lexeme ontolex:lexicalForm ?directForm . + ?directForm ontolex:representation ?direct ; wikibase:grammaticalFeature wd:Q1751855 . - FILTER(LANG(?directCase) = "ur") . - } + FILTER(LANG(?direct) = "ur") + } # MARK: Gerund @@ -35,8 +35,8 @@ WHERE { ?lexeme ontolex:lexicalForm ?gerundForm . ?gerundForm ontolex:representation ?gerund ; wikibase:grammaticalFeature wd:Q1923028 . - FILTER(LANG(?gerund) = "ur") . - } + FILTER(LANG(?gerund) = "ur") + } # MARK: Intransitive Phase @@ -44,8 +44,8 @@ WHERE { ?lexeme ontolex:lexicalForm ?intransitivePhaseForm . ?intransitivePhaseForm ontolex:representation ?intransitivePhase ; wikibase:grammaticalFeature wd:Q113330736 . - FILTER(LANG(?intransitivePhase) = "ur") . - } + FILTER(LANG(?intransitivePhase) = "ur") + } # MARK: Basic Phase @@ -53,6 +53,6 @@ WHERE { ?lexeme ontolex:lexicalForm ?basicPhaseForm . ?basicPhaseForm ontolex:representation ?basicPhase ; wikibase:grammaticalFeature wd:Q113330960 . - FILTER(LANG(?basicPhase) = "ur") . - } + FILTER(LANG(?basicPhase) = "ur") + } } diff --git a/src/scribe_data/language_data_extraction/Italian/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Italian/proper_nouns/query_proper_nouns.sparql index faeb1f90d..f6f3518ab 100644 --- a/src/scribe_data/language_data_extraction/Italian/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Italian/proper_nouns/query_proper_nouns.sparql @@ -17,7 +17,7 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_1.sparql index c2ed07420..cec1a21a2 100644 --- a/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_1.sparql @@ -5,9 +5,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?presFPS ?presSPS ?presTPS - ?presFPP ?presSPP ?presTPP - + ?presentIndicativeFirstPersonSingular + ?presentIndicativeSecondPersonSingular + ?presentIndicativeThirdPersonSingular + ?presentIndicativeFirstPersonPlural + ?presentIndicativeSecondPersonPlural + ?presentIndicativeThirdPersonPlural WHERE { ?lexeme dct:language wd:Q652 ; @@ -16,89 +19,39 @@ WHERE { # MARK: Present - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPSForm . - ?presFPSForm ontolex:representation ?presFPS ; + ?lexeme ontolex:lexicalForm ?presentIndicativeFirstPersonSingularForm . + ?presentIndicativeFirstPersonSingularForm ontolex:representation ?presentIndicativeFirstPersonSingular ; wikibase:grammaticalFeature wd:Q56682909, wd:Q21714344, wd:Q110786 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPSForm . - ?presSPSForm ontolex:representation ?presSPS ; + ?lexeme ontolex:lexicalForm ?presentIndicativeSecondPersonSingularForm . + ?presentIndicativeSecondPersonSingularForm ontolex:representation ?presentIndicativeSecondPersonSingular ; wikibase:grammaticalFeature wd:Q56682909, wd:Q51929049, wd:Q110786 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPSForm . - ?presTPSForm ontolex:representation ?presTPS ; + ?lexeme ontolex:lexicalForm ?presentIndicativeThirdPersonSingularForm . + ?presentIndicativeThirdPersonSingularForm ontolex:representation ?presentIndicativeThirdPersonSingular ; wikibase:grammaticalFeature wd:Q56682909, wd:Q51929074, wd:Q110786 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPPForm . - ?presFPPForm ontolex:representation ?presFPP ; + ?lexeme ontolex:lexicalForm ?presentIndicativeFirstPersonPluralForm . + ?presentIndicativeFirstPersonPluralForm ontolex:representation ?presentIndicativeFirstPersonPlural ; wikibase:grammaticalFeature wd:Q56682909, wd:Q21714344, wd:Q146786 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPPForm . - ?presSPPForm ontolex:representation ?presSPP ; + ?lexeme ontolex:lexicalForm ?presentIndicativeSecondPersonPluralForm . + ?presentIndicativeSecondPersonPluralForm ontolex:representation ?presentIndicativeSecondPersonPlural ; wikibase:grammaticalFeature wd:Q56682909, wd:Q51929049, wd:Q146786 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPPForm . - ?presTPPForm ontolex:representation ?presTPP ; + ?lexeme ontolex:lexicalForm ?presentIndicativeThirdPersonPluralForm . + ?presentIndicativeThirdPersonPluralForm ontolex:representation ?presentIndicativeThirdPersonPlural ; wikibase:grammaticalFeature wd:Q56682909, wd:Q51929074, wd:Q146786 . } - - # MARK: Preterite - - # FPS - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPSForm . - ?pretFPSForm ontolex:representation ?pretFPS ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929218 . - } - - # SPS - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPSForm . - ?pretSPSForm ontolex:representation ?pretSPS ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929369 . - } - - # TPS - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPSForm . - ?pretTPSForm ontolex:representation ?pretTPS ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929447 . - } - - # FPP - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPPForm . - ?pretFPPForm ontolex:representation ?pretFPP ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929290 . - } - - # SPP - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPPForm . - ?pretSPPForm ontolex:representation ?pretSPP ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929403 . - } - - # TPP - OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPPForm . - ?pretTPPForm ontolex:representation ?pretTPP ; - wikibase:grammaticalFeature wd:Q442485, wd:Q51929517 . - } } diff --git a/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_2.sparql index 059b743a0..e9abfb7a4 100644 --- a/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_2.sparql @@ -5,8 +5,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?impFPS ?impSPS ?impTPS - ?impFPP ?impSPP ?impTPP + ?pastImperfectFirstPersonSingular + ?pastImperfectSecondPersonSingular + ?pastImperfectThirdPersonSingular + ?pastImperfectFirstPersonPlural + ?pastImperfectSecondPersonPlural + ?pastImperfectThirdPersonPlural WHERE { ?lexeme dct:language wd:Q652 ; @@ -15,45 +19,39 @@ WHERE { # MARK: Imperfect - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impFPSForm . - ?impFPSForm ontolex:representation ?impFPS ; + ?lexeme ontolex:lexicalForm ?pastImperfectFirstPersonSingularForm . + ?pastImperfectFirstPersonSingularForm ontolex:representation ?pastImperfectFirstPersonSingular ; wikibase:grammaticalFeature wd:Q12547192, wd:Q21714344, wd:Q110786 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPSForm . - ?impSPSForm ontolex:representation ?impSPS ; + ?lexeme ontolex:lexicalForm ?pastImperfectSecondPersonSingularForm . + ?pastImperfectSecondPersonSingularForm ontolex:representation ?pastImperfectSecondPersonSingular ; wikibase:grammaticalFeature wd:Q12547192, wd:Q51929049, wd:Q110786 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impTPSForm . - ?impTPSForm ontolex:representation ?impTPS ; + ?lexeme ontolex:lexicalForm ?pastImperfectThirdPersonSingularForm . + ?pastImperfectThirdPersonSingularForm ontolex:representation ?pastImperfectThirdPersonSingular ; wikibase:grammaticalFeature wd:Q12547192, wd:Q51929074, wd:Q110786 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impFPPForm . - ?impFPPForm ontolex:representation ?impFPP ; + ?lexeme ontolex:lexicalForm ?pastImperfectFirstPersonPluralForm . + ?pastImperfectFirstPersonPluralForm ontolex:representation ?pastImperfectFirstPersonPlural ; wikibase:grammaticalFeature wd:Q12547192, wd:Q21714344, wd:Q146786 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPPForm . - ?impSPPForm ontolex:representation ?impSPP ; + ?lexeme ontolex:lexicalForm ?pastImperfectSecondPersonPluralForm . + ?pastImperfectSecondPersonPluralForm ontolex:representation ?pastImperfectSecondPersonPlural ; wikibase:grammaticalFeature wd:Q12547192, wd:Q51929049, wd:Q146786 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impTPPForm . - ?impTPPForm ontolex:representation ?impTPP ; + ?lexeme ontolex:lexicalForm ?pastImperfectThirdPersonPluralForm . + ?pastImperfectThirdPersonPluralForm ontolex:representation ?pastImperfectThirdPersonPlural ; wikibase:grammaticalFeature wd:Q12547192, wd:Q51929074, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_3.sparql b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_3.sparql index 63f3ce46d..1116452c1 100644 --- a/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_3.sparql +++ b/src/scribe_data/language_data_extraction/Italian/verbs/query_verbs_3.sparql @@ -6,8 +6,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?pretFPS ?pretSPS ?pretTPS - ?pretFPP ?pretSPP ?pretTPP + ?preteriteFirstPersonSingular + ?preteriteSecondPersonSingular + ?preteriteThirdPersonSingular + ?preteriteFirstPersonPlural + ?preteriteSecondPersonPlural + ?preteriteThirdPersonPlural WHERE { ?lexeme dct:language wd:Q652 ; @@ -16,45 +20,39 @@ WHERE { # MARK: Preterite - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPSForm . - ?pretFPSForm ontolex:representation ?pretFPS ; + ?lexeme ontolex:lexicalForm ?preteriteFirstPersonSingularForm . + ?preteriteFirstPersonSingularForm ontolex:representation ?preteriteFirstPersonSingular ; wikibase:grammaticalFeature wd:Q442485, wd:Q21714344, wd:Q110786 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPSForm . - ?pretSPSForm ontolex:representation ?pretSPS ; + ?lexeme ontolex:lexicalForm ?preteriteSecondPersonSingularForm . + ?preteriteSecondPersonSingularForm ontolex:representation ?preteriteSecondPersonSingular ; wikibase:grammaticalFeature wd:Q442485, wd:Q51929049, wd:Q110786 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPSForm . - ?pretTPSForm ontolex:representation ?pretTPS ; + ?lexeme ontolex:lexicalForm ?preteriteThirdPersonSingularForm . + ?preteriteThirdPersonSingularForm ontolex:representation ?preteriteThirdPersonSingular ; wikibase:grammaticalFeature wd:Q442485, wd:Q51929074, wd:Q110786 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPPForm . - ?pretFPPForm ontolex:representation ?pretFPP ; + ?lexeme ontolex:lexicalForm ?preteriteFirstPersonPluralForm . + ?preteriteFirstPersonPluralForm ontolex:representation ?preteriteFirstPersonPlural ; wikibase:grammaticalFeature wd:Q442485, wd:Q21714344, wd:Q146786 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPPForm . - ?pretSPPForm ontolex:representation ?pretSPP ; + ?lexeme ontolex:lexicalForm ?preteriteSecondPersonPluralForm . + ?preteriteSecondPersonPluralForm ontolex:representation ?preteriteSecondPersonPlural ; wikibase:grammaticalFeature wd:Q442485, wd:Q51929049, wd:Q146786 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPPForm . - ?pretTPPForm ontolex:representation ?pretTPP ; + ?lexeme ontolex:lexicalForm ?preteriteThirdPersonPluralForm . + ?preteriteThirdPersonPluralForm ontolex:representation ?preteriteThirdPersonPlural ; wikibase:grammaticalFeature wd:Q442485, wd:Q51929074, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Japanese/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Japanese/verbs/query_verbs.sparql index 2188603d8..326a37441 100644 --- a/src/scribe_data/language_data_extraction/Japanese/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Japanese/verbs/query_verbs.sparql @@ -8,7 +8,7 @@ SELECT ?negative ?conjunctive ?imperfective - ?atrributive + ?attributive ?hypothetical WHERE { @@ -23,7 +23,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?negativeForm . ?negativeForm ontolex:representation ?negative ; wikibase:grammaticalFeature wd:Q15737187 . - FILTER(LANG(?negative) = "ja-hira") . + FILTER(LANG(?negative) = "ja-hira") } # MARK: Conjunctive @@ -32,7 +32,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?conjunctiveForm . ?conjunctiveForm ontolex:representation ?conjunctive ; wikibase:grammaticalFeature wd:Q2888577 . - FILTER(LANG(?conjunctive) = "ja-hira") . + FILTER(LANG(?conjunctive) = "ja-hira") } # MARK: Imperfective @@ -41,16 +41,16 @@ WHERE { ?lexeme ontolex:lexicalForm ?imperfectiveForm . ?imperfectiveForm ontolex:representation ?imperfective ; wikibase:grammaticalFeature wd:Q2898727 . - FILTER(LANG(?imperfective) = "ja-hira") . + FILTER(LANG(?imperfective) = "ja-hira") } # MARK: Attributive OPTIONAL { - ?lexeme ontolex:lexicalForm ?atrributiveForm . - ?atrributiveForm ontolex:representation ?atrributive ; + ?lexeme ontolex:lexicalForm ?attributiveForm . + ?attributiveForm ontolex:representation ?attributive ; wikibase:grammaticalFeature wd:Q53608953 . - FILTER(LANG(?atrributive) = "ja-hira") . + FILTER(LANG(?attributive) = "ja-hira") } # MARK: Hypothetical @@ -59,6 +59,6 @@ WHERE { ?lexeme ontolex:lexicalForm ?hypotheticalForm . ?hypotheticalForm ontolex:representation ?hypothetical ; wikibase:grammaticalFeature wd:Q53609593 . - FILTER(LANG(?hypothetical) = "ja-hira") . + FILTER(LANG(?hypothetical) = "ja-hira") } } diff --git a/src/scribe_data/language_data_extraction/Korean/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Korean/nouns/query_nouns.sparql new file mode 100644 index 000000000..9515d6958 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Korean/nouns/query_nouns.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Korean (Q9176) nouns (Q1084) and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?noun + +WHERE { + ?lexeme dct:language wd:Q9176 ; + wikibase:lexicalCategory wd:Q1084 ; + wikibase:lemma ?noun . +} diff --git a/src/scribe_data/language_data_extraction/Kurmanji/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Kurmanji/adjectives/query_adjectives.sparql index c93999c2a..c1d681b5c 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/adjectives/query_adjectives.sparql @@ -10,5 +10,5 @@ WHERE { ?lexeme dct:language wd:Q36163 ; wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . - FILTER(lang(?adjective) = "ku") . + FILTER(lang(?adjective) = "ku") } diff --git a/src/scribe_data/language_data_extraction/Kurmanji/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Kurmanji/adverbs/query_adverbs.sparql index 78def3dd2..b192b3f61 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/adverbs/query_adverbs.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/adverbs/query_adverbs.sparql @@ -10,5 +10,5 @@ WHERE { ?lexeme dct:language wd:Q36163 ; wikibase:lexicalCategory wd:Q380057 ; wikibase:lemma ?adverb . - FILTER(lang(?adverb) = "ku") . + FILTER(lang(?adverb) = "ku") } diff --git a/src/scribe_data/language_data_extraction/Kurmanji/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Kurmanji/prepositions/query_prepositions.sparql index cc2af29f2..934b79c4a 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/prepositions/query_prepositions.sparql @@ -10,5 +10,5 @@ WHERE { ?lexeme dct:language wd:Q36163 ; wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?preposition . - FILTER(lang(?preposition) = "ku") . + FILTER(lang(?preposition) = "ku") } diff --git a/src/scribe_data/language_data_extraction/Kurmanji/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Kurmanji/proper_nouns/query_proper_nouns.sparql index abf8b5055..13f6609ae 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/proper_nouns/query_proper_nouns.sparql @@ -16,7 +16,7 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql index be698e246..63267846a 100644 --- a/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Kurmanji/verbs/query_verbs.sparql @@ -10,5 +10,5 @@ WHERE { ?lexeme dct:language wd:Q36163 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?verb . - FILTER(lang(?verb) = "ku") . + FILTER(lang(?verb) = "ku") } diff --git a/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_1.sparql b/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_1.sparql index d0f0c0ed6..3dd06a5b7 100644 --- a/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_1.sparql +++ b/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_1.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural WHERE { ?lexeme dct:language wd:Q397 ; @@ -16,14 +16,14 @@ WHERE { # MARK: Nominative OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomSingularForm . - ?nomSingularForm ontolex:representation ?nomSingular ; + ?lexeme ontolex:lexicalForm ?nominativeSingularForm . + ?nominativeSingularForm ontolex:representation ?nominativeSingular ; wikibase:grammaticalFeature wd:Q131105, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_2.sparql b/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_2.sparql index c93f03951..96c179a6a 100644 --- a/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/language_data_extraction/Latin/adjectives/query_adjectives_2.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?genSingular - ?genPlural + ?genitiveSingular + ?genitivePlural WHERE { ?lexeme dct:language wd:Q397 ; @@ -16,14 +16,14 @@ WHERE { # MARK: Genitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?genSingularForm . - ?genSingularForm ontolex:representation ?genSingular ; + ?lexeme ontolex:lexicalForm ?genitiveSingularForm . + ?genitiveSingularForm ontolex:representation ?genitiveSingular ; wikibase:grammaticalFeature wd:Q146233, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?genPluralForm . - ?genPluralForm ontolex:representation ?genPlural ; + ?lexeme ontolex:lexicalForm ?genitivePluralForm . + ?genitivePluralForm ontolex:representation ?genitivePlural ; wikibase:grammaticalFeature wd:Q146233, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_1.sparql b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_1.sparql index 8c3362747..aabc09a75 100644 --- a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_1.sparql +++ b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_1.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?noun - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural WHERE { ?lexeme dct:language wd:Q397 ; @@ -16,14 +16,14 @@ WHERE { # MARK: Nominative OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomSingularForm . - ?nomSingularForm ontolex:representation ?nomSingular ; + ?lexeme ontolex:lexicalForm ?nominativeSingularForm . + ?nominativeSingularForm ontolex:representation ?nominativeSingular ; wikibase:grammaticalFeature wd:Q131105, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_2.sparql b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_2.sparql index b4108afa8..d1d9757bd 100644 --- a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_2.sparql +++ b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_2.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?noun - ?genSingular - ?genPlural + ?genitiveSingular + ?genitivePlural WHERE { ?lexeme dct:language wd:Q397 ; @@ -16,14 +16,14 @@ WHERE { # MARK: Genitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?genSingularForm . - ?genSingularForm ontolex:representation ?genSingular ; + ?lexeme ontolex:lexicalForm ?genitiveSingularForm . + ?genitiveSingularForm ontolex:representation ?genitiveSingular ; wikibase:grammaticalFeature wd:Q146233, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?genPluralForm . - ?genPluralForm ontolex:representation ?genPlural ; + ?lexeme ontolex:lexicalForm ?genitivePluralForm . + ?genitivePluralForm ontolex:representation ?genitivePlural ; wikibase:grammaticalFeature wd:Q146233, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_3.sparql b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_3.sparql index 2c8071ad5..e93bd6163 100644 --- a/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_3.sparql +++ b/src/scribe_data/language_data_extraction/Latin/nouns/query_nouns_3.sparql @@ -5,8 +5,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?noun - ?ablSingular - ?ablPlural + ?ablativeSingular + ?ablativePlural WHERE { ?lexeme dct:language wd:Q397 ; @@ -16,14 +16,14 @@ WHERE { # MARK: Ablative OPTIONAL { - ?lexeme ontolex:lexicalForm ?ablSingularForm . - ?ablSingularForm ontolex:representation ?ablSingular ; + ?lexeme ontolex:lexicalForm ?ablativeSingularForm . + ?ablativeSingularForm ontolex:representation ?ablativeSingular ; wikibase:grammaticalFeature wd:Q156986, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?ablPluralForm . - ?ablPluralForm ontolex:representation ?ablPlural ; + ?lexeme ontolex:lexicalForm ?ablativePluralForm . + ?ablativePluralForm ontolex:representation ?ablativePlural ; wikibase:grammaticalFeature wd:Q156986, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Latin/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Latin/verbs/query_verbs.sparql index bbb08838f..c996c6f16 100644 --- a/src/scribe_data/language_data_extraction/Latin/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Latin/verbs/query_verbs.sparql @@ -3,7 +3,6 @@ # Enter this query at https://query.wikidata.org/. SELECT - ?lexeme (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?verb diff --git a/src/scribe_data/language_data_extraction/Latvian/nouns/nouns_query.sparql b/src/scribe_data/language_data_extraction/Latvian/nouns/nouns_query.sparql index 6d8fed194..5ab1ed1d0 100644 --- a/src/scribe_data/language_data_extraction/Latvian/nouns/nouns_query.sparql +++ b/src/scribe_data/language_data_extraction/Latvian/nouns/nouns_query.sparql @@ -126,7 +126,7 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Malayalam/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Malayalam/nouns/query_nouns.sparql index 1a01c1313..bb00a51ca 100644 --- a/src/scribe_data/language_data_extraction/Malayalam/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Malayalam/nouns/query_nouns.sparql @@ -4,13 +4,13 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular + ?nominativeSingular ?gender WHERE { ?lexeme dct:language wd:Q36236 ; wikibase:lexicalCategory wd:Q1084 ; - wikibase:lemma ?nomSingular . + wikibase:lemma ?nominativeSingular . # MARK: Gender(s) diff --git a/src/scribe_data/language_data_extraction/Malayalam/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Malayalam/proper_nouns/query_proper_nouns.sparql index acad8158e..b8d830057 100644 --- a/src/scribe_data/language_data_extraction/Malayalam/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Malayalam/proper_nouns/query_proper_nouns.sparql @@ -4,21 +4,21 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular + ?nominativeSingular ?gender WHERE { ?lexeme dct:language wd:Q36236 ; wikibase:lexicalCategory wd:Q147276 ; - wikibase:lemma ?nomSingular . + wikibase:lemma ?nominativeSingular . # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } - SERVICE wikibase:label { + SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". ?nounGender rdfs:label ?gender . } diff --git a/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql index 8fc6ac004..9a49e67a0 100644 --- a/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Malayalam/verbs/query_verbs.sparql @@ -18,10 +18,10 @@ WHERE { # MARK: Present Infinitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentInfForm . - ?presentInfForm ontolex:representation ?presentInfinitive ; + ?lexeme ontolex:lexicalForm ?presentInfinitiveForm . + ?presentInfinitiveForm ontolex:representation ?presentInfinitive ; wikibase:grammaticalFeature wd:Q52434245 . - FILTER(LANG(?presentInfinitive) = "ml") . + FILTER(LANG(?presentInfinitive) = "ml") } # MARK: Simple Present @@ -30,7 +30,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?simplePresentForm . ?simplePresentForm ontolex:representation ?simplePresent ; wikibase:grammaticalFeature wd:Q3910936 . - FILTER(LANG(?simplePresent) = "ml") . + FILTER(LANG(?simplePresent) = "ml") } # MARK: Simple Past @@ -39,7 +39,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?simplePastForm . ?simplePastForm ontolex:representation ?simplePast ; wikibase:grammaticalFeature wd:Q1392475 . - FILTER(LANG(?simplePast) = "ml") . + FILTER(LANG(?simplePast) = "ml") } # MARK: Simple Future @@ -48,6 +48,6 @@ WHERE { ?lexeme ontolex:lexicalForm ?simpleFutureForm . ?simpleFutureForm ontolex:representation ?simpleFuture ; wikibase:grammaticalFeature wd:Q1475560 . - FILTER(LANG(?simpleFuture) = "ml") . + FILTER(LANG(?simpleFuture) = "ml") } } diff --git "a/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/nouns/query_nouns.sparql" "b/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/nouns/query_nouns.sparql" index e915167dc..751e9f3ef 100644 --- "a/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/nouns/query_nouns.sparql" +++ "b/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/nouns/query_nouns.sparql" @@ -6,38 +6,38 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?indefSingular - ?defSingular - ?indefPlural - ?defPlural + ?indefiniteSingular + ?definiteSingular + ?indefinitePlural + ?definitePlural ?gender WHERE { ?lexeme dct:language wd:Q25167 ; wikibase:lexicalCategory wd:Q1084 ; - wikibase:lemma ?indefSingular . + wikibase:lemma ?indefiniteSingular . # MARK: Definite Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?defSingularForm . - ?defSingularForm ontolex:representation ?defSingular ; + ?lexeme ontolex:lexicalForm ?definiteSingularForm . + ?definiteSingularForm ontolex:representation ?definiteSingular ; wikibase:grammaticalFeature wd:Q110786, wd:Q53997851 . } # MARK: Indefinite Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?indefPluralForm . - ?indefPluralForm ontolex:representation ?indefPlural ; + ?lexeme ontolex:lexicalForm ?indefinitePluralForm . + ?indefinitePluralForm ontolex:representation ?indefinitePlural ; wikibase:grammaticalFeature wd:Q146786, wd:Q53997857 . } # MARK: Definite Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?defPluralForm . - ?defPluralForm ontolex:representation ?defPlural ; + ?lexeme ontolex:lexicalForm ?definitePluralForm . + ?definitePluralForm ontolex:representation ?definitePlural ; wikibase:grammaticalFeature wd:Q146786, wd:Q53997851 . } diff --git "a/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/verbs/query_verbs.sparql" "b/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/verbs/query_verbs.sparql" index 2ea0cad4e..ab75cdb42 100644 --- "a/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/verbs/query_verbs.sparql" +++ "b/src/scribe_data/language_data_extraction/Norwegian/Bokm\303\245l/verbs/query_verbs.sparql" @@ -7,7 +7,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?present + ?activePresent WHERE { ?lexeme dct:language wd:Q25167 ; @@ -17,14 +17,13 @@ WHERE { ?lexeme ontolex:lexicalForm ?infinitiveForm . ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 ; - wikibase:grammaticalFeature wd:Q1317831 . + wikibase:grammaticalFeature wd:Q179230, wd:Q1317831 . # MARK: Active Present OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentForm . - ?presentForm ontolex:representation ?present ; + ?lexeme ontolex:lexicalForm ?activePresentForm . + ?activePresentForm ontolex:representation ?activePresent ; wikibase:grammaticalFeature wd:Q192613, wd:Q1317831 . } } diff --git a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/adjectives/query_adjectives.sparql index 1b72d7048..906c7c8be 100644 --- a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/adjectives/query_adjectives.sparql @@ -7,9 +7,9 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?commonSingularIndefinite - ?neuterSingularIndefinite - ?singularDefinite + ?feminineMasculineIndefiniteSingular + ?neuterIndefiniteSingular + ?definiteSingular ?plural @@ -21,24 +21,24 @@ WHERE { # MARK: Common Indefinite OPTIONAL { - ?lexeme ontolex:lexicalForm ?commonSingularIndefiniteForm . - ?commonSingularIndefiniteForm ontolex:representation ?commonSingularIndefinite ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q499327, wd:Q110786, wd:Q53997857. + ?lexeme ontolex:lexicalForm ?feminineMasculineIndefiniteSingularForm . + ?feminineMasculineIndefiniteSingularForm ontolex:representation ?feminineMasculineIndefiniteSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q499327, wd:Q110786, wd:Q53997857 . } # MARK: Neuter Indefinite OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterSingularIndefiniteForm . - ?neuterSingularIndefiniteForm ontolex:representation ?neuterSingularIndefinite ; + ?lexeme ontolex:lexicalForm ?neuterIndefiniteSingularForm . + ?neuterIndefiniteSingularForm ontolex:representation ?neuterIndefiniteSingular ; wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q53997857 . } # MARK: Definite OPTIONAL { - ?lexeme ontolex:lexicalForm ?singularDefiniteForm . - ?singularDefiniteForm ontolex:representation ?singularDefinite ; + ?lexeme ontolex:lexicalForm ?definiteSingularForm . + ?definiteSingularForm ontolex:representation ?definiteSingular ; wikibase:grammaticalFeature wd:Q110786, wd:Q53997851 . } diff --git a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/nouns/query_nouns.sparql index 412453f01..beeb5d364 100644 --- a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/nouns/query_nouns.sparql @@ -6,38 +6,38 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?indefSingular - ?defSingular - ?indefPlural - ?defPlural + ?indefiniteSingular + ?definiteSingular + ?indefinitePlural + ?definitePlural ?gender WHERE { ?lexeme dct:language wd:Q25164 ; wikibase:lexicalCategory wd:Q1084 ; - wikibase:lemma ?indefSingular . + wikibase:lemma ?indefiniteSingular . # MARK: Definite Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?defSingularForm . - ?defSingularForm ontolex:representation ?defSingular ; + ?lexeme ontolex:lexicalForm ?definiteSingularForm . + ?definiteSingularForm ontolex:representation ?definiteSingular ; wikibase:grammaticalFeature wd:Q110786, wd:Q53997851 . } # MARK: Indefinite Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?indefPluralForm . - ?indefPluralForm ontolex:representation ?indefPlural ; + ?lexeme ontolex:lexicalForm ?indefinitePluralForm . + ?indefinitePluralForm ontolex:representation ?indefinitePlural ; wikibase:grammaticalFeature wd:Q146786, wd:Q53997857 . } # MARK: Definite Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?defPluralForm . - ?defPluralForm ontolex:representation ?defPlural ; + ?lexeme ontolex:lexicalForm ?definitePluralForm . + ?definitePluralForm ontolex:representation ?definitePlural ; wikibase:grammaticalFeature wd:Q146786, wd:Q53997851 . } diff --git a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/proper_nouns/query_proper_nouns.sparql index baf40d131..b8f61e4bf 100644 --- a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/proper_nouns/query_proper_nouns.sparql @@ -6,49 +6,46 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?indefSingular - ?defSingular - ?indefPlural - ?defPlural + ?indefiniteSingular + ?definiteSingular + ?indefinitePlural + ?definitePlural ?gender WHERE { ?lexeme dct:language wd:Q25164 ; wikibase:lexicalCategory wd:Q147276; - wikibase:lemma ?indefSingular . + wikibase:lemma ?indefiniteSingular . # MARK: Definite Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ? ?defSingularForm . - ?defSingularForm ontolex:representation ?defSingular ; - wikibase:grammaticalFeature wd:Q110786 ; - wikibase:grammaticalFeature wd:Q53997851 ; - } . + ?lexeme ontolex:lexicalForm ? ?definiteSingularForm . + ?definiteSingularForm ontolex:representation ?definiteSingular ; + wikibase:grammaticalFeature wd:Q110786, wd:Q53997851 . + } # MARK: Indefinite Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?indefPluralForm . - ?indefPluralForm ontolex:representation ?indefPlural ; - wikibase:grammaticalFeature wd:Q146786 ; - wikibase:grammaticalFeature wd:Q53997857 ; - } . + ?lexeme ontolex:lexicalForm ?indefinitePluralForm . + ?indefinitePluralForm ontolex:representation ?indefinitePlural ; + wikibase:grammaticalFeature wd:Q146786, wd:Q53997857 . + } # MARK: Definite Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?defPluralForm . - ?defPluralForm ontolex:representation ?defPlural ; - wikibase:grammaticalFeature wd:Q146786 ; - wikibase:grammaticalFeature wd:Q53997851 ; - } . + ?lexeme ontolex:lexicalForm ?definitePluralForm . + ?definitePluralForm ontolex:representation ?definitePlural ; + wikibase:grammaticalFeature wd:Q146786, wd:Q53997851 . + } # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/verbs/query_verbs.sparql index 56dab2efb..60c40afaa 100644 --- a/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Norwegian/Nynorsk/verbs/query_verbs.sparql @@ -7,19 +7,19 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?aInfinitiveActive - ?eInfinitiveActive - ?presentActive + ?activeAInfinitive + ?activeEInfinitive + ?activePresent ?preterite ?presentPreteritePerfect ?imperative - ?genderedSingularIndefinitePastParticiple - ?neuterSingularIndefinitePastParticiple - ?singularDefinitePastParticiple + ?feminineMasculineIndefiniteSingularPastParticiple + ?neuterIndefiniteSingularPastParticiple + ?definiteSingularPastParticiple ?pluralPastParticiple ?presentParticiple - ?infinitivePassive - ?presentPassive + ?passiveInfinitive + ?passivePresent WHERE { # MARK: Infinitive @@ -27,33 +27,33 @@ WHERE { ?lexeme dct:language wd:Q25164 ; wikibase:lexicalCategory wd:Q24905 ; wikibase:lemma ?infinitive . - FILTER(LANG(?infinitive) = "nn") . + FILTER(LANG(?infinitive) = "nn") # MARK: Active A Infinitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?aInfinitiveActiveForm . - ?aInfinitiveActiveForm ontolex:representation ?aInfinitiveActive ; - wikibase:grammaticalFeature wd:Q179230, wd:Q1317831, wd:Q115223950 . - FILTER(LANG(?aInfinitiveActive) = "nn") . + ?lexeme ontolex:lexicalForm ?activeAInfinitiveForm . + ?activeAInfinitiveForm ontolex:representation ?activeAInfinitive ; + wikibase:grammaticalFeature wd:Q1317831, wd:Q115223950 . + FILTER(LANG(?activeAInfinitive) = "nn") } # MARK: Active E Infinitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?eInfinitiveActiveForm . - ?eInfinitiveActiveForm ontolex:representation ?eInfinitiveActive ; - wikibase:grammaticalFeature wd:Q179230, wd:Q1317831, wd:Q115223951 . - FILTER(LANG(?eInfinitiveActive) = "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 ?presentActiveForm . - ?presentActiveForm ontolex:representation ?presentActive ; + ?lexeme ontolex:lexicalForm ?activePresentForm . + ?activePresentForm ontolex:representation ?activePresent ; wikibase:grammaticalFeature wd:Q192613, wd:Q1317831 . - FILTER(LANG(?presentActive) = "nn") . + FILTER(LANG(?activePresent) = "nn") } # MARK: Preterite @@ -62,7 +62,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?preteriteForm . ?preteriteForm ontolex:representation ?preterite ; wikibase:grammaticalFeature wd:Q442485 . - FILTER(LANG(?preterite) = "nn") . + FILTER(LANG(?preterite) = "nn") FILTER NOT EXISTS { ?preteriteForm wikibase:grammaticalFeature wd:Q192613 . # Present tense @@ -76,7 +76,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?presentPreteritePerfectForm . ?presentPreteritePerfectForm ontolex:representation ?presentPreteritePerfect ; wikibase:grammaticalFeature wd:Q192613, wd:Q442485, wd:Q625420 . - FILTER(LANG(?presentPreteritePerfect) = "nn") . + FILTER(LANG(?presentPreteritePerfect) = "nn") } # MARK: Imperative @@ -85,34 +85,34 @@ WHERE { ?lexeme ontolex:lexicalForm ?imperativeForm . ?imperativeForm ontolex:representation ?imperative ; wikibase:grammaticalFeature wd:Q22716 . - FILTER(LANG(?imperative) = "nn") . + FILTER(LANG(?imperative) = "nn") } # MARK: Masculine/Feminine Singular Indefinite Past Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?genderedSingularIndefinitePastParticipleForm . - ?genderedSingularIndefinitePastParticipleForm ontolex:representation ?genderedSingularIndefinitePastParticiple ; + ?lexeme ontolex:lexicalForm ?feminineMasculineIndefiniteSingularPastParticipleForm . + ?feminineMasculineIndefiniteSingularPastParticipleForm ontolex:representation ?feminineMasculineIndefiniteSingularPastParticiple ; wikibase:grammaticalFeature wd:Q499327, wd:Q1775415, wd:Q110786, wd:Q53997857, wd:Q12717679 . - FILTER(LANG(?genderedSingularIndefinitePastParticiple) = "nn") . + FILTER(LANG(?feminineMasculineIndefiniteSingularPastParticiple) = "nn") } # MARK: Neuter Singular Indefinite Past Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterSingularIndefinitePastParticipleForm . - ?neuterSingularIndefinitePastParticipleForm ontolex:representation ?neuterSingularIndefinitePastParticiple ; + ?lexeme ontolex:lexicalForm ?neuterIndefiniteSingularPastParticipleForm . + ?neuterIndefiniteSingularPastParticipleForm ontolex:representation ?neuterIndefiniteSingularPastParticiple ; wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q53997857, wd:Q12717679 . - FILTER(LANG(?neuterSingularIndefinitePastParticiple) = "nn") . + FILTER(LANG(?neuterIndefiniteSingularPastParticiple) = "nn") } # MARK: Singular Definitive Past Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?singularDefinitePastParticipleForm . - ?singularDefinitePastParticipleForm ontolex:representation ?singularDefinitePastParticiple ; + ?lexeme ontolex:lexicalForm ?definiteSingularPastParticipleForm . + ?definiteSingularPastParticipleForm ontolex:representation ?definiteSingularPastParticiple ; wikibase:grammaticalFeature wd:Q110786, wd:Q53997851, wd:Q12717679 . - FILTER(LANG(?singularDefinitePastParticiple) = "nn") . + FILTER(LANG(?definiteSingularPastParticiple) = "nn") } # MARK: Plural Past Participle @@ -121,7 +121,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?pluralPastParticipleForm . ?pluralPastParticipleForm ontolex:representation ?pluralPastParticiple ; wikibase:grammaticalFeature wd:Q146786, wd:Q12717679 . - FILTER(LANG(?pluralPastParticiple) = "nn") . + FILTER(LANG(?pluralPastParticiple) = "nn") } # MARK: Present Participle @@ -130,24 +130,24 @@ WHERE { ?lexeme ontolex:lexicalForm ?presentParticipleForm . ?presentParticipleForm ontolex:representation ?presentParticiple ; wikibase:grammaticalFeature wd:Q10345583 . - FILTER(LANG(?presentParticiple) = "nn") . + FILTER(LANG(?presentParticiple) = "nn") } # MARK: Infinitive Passive OPTIONAL { - ?lexeme ontolex:lexicalForm ?infinitivePassiveForm . - ?infinitivePassiveForm ontolex:representation ?infinitivePassive ; + ?lexeme ontolex:lexicalForm ?passiveInfinitiveForm . + ?passiveInfinitiveForm ontolex:representation ?passiveInfinitive ; wikibase:grammaticalFeature wd:Q179230, wd:Q1194697 . - FILTER(LANG(?infinitivePassive) = "nn") . + FILTER(LANG(?passiveInfinitive) = "nn") } # MARK: Present Passive OPTIONAL { - ?lexeme ontolex:lexicalForm ?presentPassiveForm . - ?presentPassiveForm ontolex:representation ?presentPassive ; + ?lexeme ontolex:lexicalForm ?passivePresentForm . + ?passivePresentForm ontolex:representation ?passivePresent ; wikibase:grammaticalFeature wd:Q192613, wd:Q1194697 . - FILTER(LANG(?presentPassive) = "nn") . + FILTER(LANG(?passivePresent) = "nn") } } diff --git a/src/scribe_data/language_data_extraction/Persian/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Persian/adjectives/query_adjectives.sparql new file mode 100644 index 000000000..e0e26a6c4 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Persian/adjectives/query_adjectives.sparql @@ -0,0 +1,32 @@ +# tool: scribe-data +# All Persian (Q9168) 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 + ?singular + ?plural + +WHERE { + ?lexeme dct:language wd:Q9168 ; + wikibase:lexicalCategory wd:Q34698 ; + wikibase:lemma ?adjective . + FILTER(lang(?adjective) = "fa") + + # MARK: Singular + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?singularForm . + ?singularForm ontolex:representation ?singular ; + wikibase:grammaticalFeature wd:Q110786 . + } + + # MARK: Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 . + } +} diff --git a/src/scribe_data/language_data_extraction/Persian/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Persian/adverbs/query_adverbs.sparql new file mode 100644 index 000000000..d7aa2fd3a --- /dev/null +++ b/src/scribe_data/language_data_extraction/Persian/adverbs/query_adverbs.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Persian (Q9168) adverbs (Q380057) and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?adverb + +WHERE { + ?lexeme dct:language wd:Q9168; + wikibase:lexicalCategory wd:Q380057 ; + wikibase:lemma ?adverb . +} diff --git a/src/scribe_data/language_data_extraction/Persian/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Persian/nouns/query_nouns.sparql new file mode 100644 index 000000000..1d405f718 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Persian/nouns/query_nouns.sparql @@ -0,0 +1,22 @@ +# tool: scribe-data +# All Persian (Q9168) nouns (Q1084) and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?singular + ?plural + +WHERE { + ?lexeme dct:language wd:Q9168 ; + wikibase:lexicalCategory wd:Q1084 ; + wikibase:lemma ?singular . + + # MARK: Plural + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pluralForm . + ?pluralForm ontolex:representation ?plural ; + wikibase:grammaticalFeature wd:Q146786 . + } +} diff --git a/src/scribe_data/language_data_extraction/Persian/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Persian/prepositions/query_prepositions.sparql new file mode 100644 index 000000000..d93687702 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Persian/prepositions/query_prepositions.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All persian (Q9168) prepositions and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?prepositions + +WHERE { + ?lexeme dct:language wd:Q9168 ; + wikibase:lexicalCategory wd:Q4833830 ; + wikibase:lemma ?prepositions . +} diff --git a/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_1.sparql new file mode 100644 index 000000000..f2d6841ec --- /dev/null +++ b/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_1.sparql @@ -0,0 +1,49 @@ +# tool: scribe-data +# All Persian (Q9168) 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) + ?infinitive + ?presentParticiple + ?pastParticiple + ?presentWordStem + ?pastWordStem + +WHERE { + ?lexeme dct:language wd:Q9168; + wikibase:lexicalCategory wd:Q24905; + wikibase:lemma ?infinitive. + + #MARK: Past Participle + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentParticipleForm . + ?presentParticipleForm ontolex:representation ?presentParticiple ; + wikibase:grammaticalFeature wd:Q192613, wd:Q814722 . + FILTER(lang(?presentParticiple) = "fa"). + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastParticipleForm . + ?pastParticipleForm ontolex:representation ?pastParticiple ; + wikibase:grammaticalFeature wd:Q814722, wd:Q1994301 . + FILTER(lang(?pastParticiple) = "fa"). + } + + #MARK: Word Stem + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentWordStemForm . + ?presentWordStemForm ontolex:representation ?presentWordStem ; + wikibase:grammaticalFeature wd:Q192613, wd:Q210523 . + FILTER(lang(?presentWordStem) = "fa"). + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?pastWordStemForm . + ?pastWordStemForm ontolex:representation ?pastWordStem ; + wikibase:grammaticalFeature wd:Q1994301, wd:Q210523 . + FILTER(lang(?pastWordStem) = "fa"). + } +} diff --git a/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_2.sparql new file mode 100644 index 000000000..f729d67c1 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_2.sparql @@ -0,0 +1,63 @@ +# tool: scribe-data +# All Persian (Q9168) verbs (Q24905) and their indicative aorist forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?infinitive + ?indicativeFirstPersonAoristSingular + ?indicativeSecondPersonAoristSingular + ?indicativeThirdPersonAoristSingular + ?indicativeFirstPersonAoristPlural + ?indicativeSecondPersonAoristPlural + ?indicativeThirdPersonAoristPlural + +WHERE { + ?lexeme dct:language wd:Q9168; + wikibase:lexicalCategory wd:Q24905; + wikibase:lemma ?infinitive. + + #MARK: Indicative Aorist + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativeFirstPersonAoristSingularForm . + ?indicativeFirstPersonAoristSingularForm ontolex:representation ?indicativeFirstPersonAoristSingular ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q216497 . + 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 ; + wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q216497 . + FILTER(lang(?indicativeFirstPersonAoristPlural) = "fa"). + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativeSecondPersonAoristPluralForm . + ?indicativeSecondPersonAoristPluralForm ontolex:representation ?indicativeSecondPersonAoristPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q216497 . + FILTER(lang(?indicativeSecondPersonAoristPlural) = "fa"). + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativeThirdPersonAoristPluralForm . + ?indicativeThirdPersonAoristPluralForm ontolex:representation ?indicativeThirdPersonAoristPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q216497 . + FILTER(lang(?indicativeThirdPersonAoristPlural) = "fa"). + } +} diff --git a/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_3.sparql b/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_3.sparql new file mode 100644 index 000000000..93d4476f5 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_3.sparql @@ -0,0 +1,57 @@ +# tool: scribe-data +# All Persian (Q9168) verbs (Q24905) and the given forms, including past tense. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?infinitive + ?indicativePastFirstPersonSingular + ?indicativePastSecondPersonSingular + ?indicativePastThirdPersonSingular + ?indicativePastFirstPersonPlural + ?indicativePastSecondPersonPlural + ?indicativePastThirdPersonPlural + +WHERE { + ?lexeme dct:language wd:Q9168; + wikibase:lexicalCategory wd:Q24905; + wikibase:lemma ?infinitive. + + # MARK: Past and Present Indicative + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePastFirstPersonSingularForm . + ?indicativePastFirstPersonSingularForm ontolex:representation ?indicativePastFirstPersonSingular ; + 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 ?indicativePastSecondPersonPluralForm . + ?indicativePastSecondPersonPluralForm ontolex:representation ?indicativePastSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q1994301, wd:Q682111 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?indicativePastThirdPersonPluralForm . + ?indicativePastThirdPersonPluralForm ontolex:representation ?indicativePastThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q1994301, wd:Q682111 . + } +} diff --git a/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_4.sparql b/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_4.sparql new file mode 100644 index 000000000..cd7229879 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_4.sparql @@ -0,0 +1,57 @@ +# tool: scribe-data +# All Persian (Q9168) verbs and the given present perfect tense forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?infinitive + ?presentPerfectFirstPersonSingular + ?presentPerfectSecondPersonSingular + ?presentPerfectThirdPersonSingular + ?presentPerfectFirstPersonPlural + ?presentPerfectSecondPersonPlural + ?presentPerfectThirdPersonPlural + +WHERE { + ?lexeme dct:language wd:Q9168; + wikibase:lexicalCategory wd:Q24905; + wikibase:lemma ?infinitive. + + # MARK: Present Perfect + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentPerfectFirstPersonSingularForm . + ?presentPerfectFirstPersonSingularForm ontolex:representation ?presentPerfectFirstPersonSingular ; + wikibase:grammaticalFeature wd:Q625420, wd:Q21714344, wd:Q192613, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentPerfectSecondPersonSingularForm . + ?presentPerfectSecondPersonSingularForm ontolex:representation ?presentPerfectSecondPersonSingular ; + wikibase:grammaticalFeature wd:Q625420, wd:Q51929049, wd:Q192613, wd:Q110786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentPerfectThirdPersonSingularForm . + ?presentPerfectThirdPersonSingularForm ontolex:representation ?presentPerfectThirdPersonSingular ; + wikibase:grammaticalFeature wd:Q625420, wd:Q51929074, 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 . + ?presentPerfectSecondPersonPluralForm ontolex:representation ?presentPerfectSecondPersonPlural ; + wikibase:grammaticalFeature wd:Q625420, wd:Q51929049, wd:Q192613, wd:Q146786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentPerfectThirdPersonPluralForm . + ?presentPerfectThirdPersonPluralForm ontolex:representation ?presentPerfectThirdPersonPlural ; + wikibase:grammaticalFeature wd:Q625420, wd:Q51929074, wd:Q192613, wd:Q146786 . + } +} diff --git a/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_5.sparql b/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_5.sparql new file mode 100644 index 000000000..bf5c61fb5 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Persian/verbs/query_verbs_5.sparql @@ -0,0 +1,57 @@ +# tool: scribe-data +# All Persian (Q9168) verbs (Q24905) and the given forms, including present subjunctive. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?infinitive + ?presentFirstPersonSingularSubjunctive + ?presentSecondPersonSingularSubjunctive + ?presentThirdPersonSingularSubjunctive + ?presentFirstPersonPluralSubjunctive + ?presentSecondPersonPluralSubjunctive + ?presentThirdPersonPluralSubjunctive + +WHERE { + ?lexeme dct:language wd:Q9168 ; + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?infinitive . + + # MARK: Subjunctive Present and Past + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentFirstPersonSingularSubjunctiveForm . + ?presentFirstPersonSingularSubjunctiveForm ontolex:representation ?presentFirstPersonSingularSubjunctive ; + 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 ?presentSecondPersonPluralSubjunctiveForm . + ?presentSecondPersonPluralSubjunctiveForm ontolex:representation ?presentSecondPersonPluralSubjunctive ; + wikibase:grammaticalFeature wd:Q473746, wd:Q51929049, wd:Q192613, wd:Q146786 . + } + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?presentThirdPersonPluralSubjunctiveForm . + ?presentThirdPersonPluralSubjunctiveForm ontolex:representation ?presentThirdPersonPluralSubjunctive ; + wikibase:grammaticalFeature wd:Q473746, wd:Q51929074, wd:Q192613, wd:Q146786 . + } +} diff --git a/src/scribe_data/language_data_extraction/Polish/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Polish/nouns/query_nouns.sparql index 918035596..ecbd945d3 100644 --- a/src/scribe_data/language_data_extraction/Polish/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Polish/nouns/query_nouns.sparql @@ -4,8 +4,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural ?gender WHERE { @@ -15,16 +15,16 @@ WHERE { # MARK: Nominative Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomSingularForm . - ?nomSingularForm ontolex:representation ?nomSingular ; + ?lexeme ontolex:lexicalForm ?nominativeSingularForm . + ?nominativeSingularForm ontolex:representation ?nominativeSingular ; wikibase:grammaticalFeature wd:Q131105, wd:Q110786 . } # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } diff --git a/src/scribe_data/language_data_extraction/Polish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Polish/proper_nouns/query_proper_nouns.sparql index d8736839b..1c0091615 100644 --- a/src/scribe_data/language_data_extraction/Polish/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Polish/proper_nouns/query_proper_nouns.sparql @@ -4,8 +4,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural ?gender WHERE { @@ -15,26 +15,24 @@ WHERE { # MARK: Nominative Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomSingularForm . - ?nomSingularForm ontolex:representation ?nomSingular ; - wikibase:grammaticalFeature wd:Q131105 ; - wikibase:grammaticalFeature wd:Q110786 ; - } . + ?lexeme ontolex:lexicalForm ?nominativeSingularForm . + ?nominativeSingularForm ontolex:representation ?nominativeSingular ; + wikibase:grammaticalFeature wd:Q131105, wd:Q110786 . + } # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; - wikibase:grammaticalFeature wd:Q131105 ; - wikibase:grammaticalFeature wd:Q146786 ; - } . + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; + wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . + } # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Polish/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Polish/verbs/query_verbs.sparql index b92a782b8..60749242f 100644 --- a/src/scribe_data/language_data_extraction/Polish/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Polish/verbs/query_verbs.sparql @@ -5,28 +5,28 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?presFPS - ?presSPS - ?presTPS - ?presFPP - ?presSPP - ?presTPP - ?femSingActivePart - ?masAnimateSingActivePart - ?masInanimateSingActivePart - ?neutSingActivePart - ?femPluralActivePart - ?masAnimatePluralActivePart - ?masInanimatePluralActivePart - ?neutPluralActivePart - ?femSingPassivePart - ?masAnimateSingPassivePart - ?masInanimateSingPassivePart - ?neutSingPassivePart - ?femPluralPassivePart - ?masAnimatePluralPassivePart - ?masInanimatePluralPassivePart - ?neutPluralPassivePart + ?indicativePresentFirstPersonSingular + ?indicativePresentSecondPersonSingular + ?indicativePresentThirdPersonSingular + ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonPlural + ?feminineSingularActiveParticiple + ?masculineAnimateSingularActiveParticiple + ?masculineInanimateSingularActiveParticiple + ?neuterSingularActiveParticiple + ?femininePluralActiveParticiple + ?masculineAnimatePluralActiveParticiple + ?masculineInanimatePluralActiveParticiple + ?neuterPluralActiveParticiple + ?feminineSingularPassiveParticiple + ?masculineAnimateSingularPassiveParticiple + ?masculineInanimateSingularPassiveParticiple + ?neuterSingularPassiveParticiple + ?femininePluralPassiveParticiple + ?masculineAnimatePluralPassiveParticiple + ?masculineInanimatePluralPassiveParticiple + ?neuterPluralPassiveParticiple WHERE { ?lexeme dct:language wd:Q809 ; @@ -36,138 +36,138 @@ WHERE { # MARK: Present OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPSForm . - ?presFPSForm ontolex:representation ?presFPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . + ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q192613, wd:Q682111 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPSForm . - ?presSPSForm ontolex:representation ?presSPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q192613, wd:Q682111 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPSForm . - ?presTPSForm ontolex:representation ?presTPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q192613, wd:Q682111 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPPForm . - ?presFPPForm ontolex:representation ?presFPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . + ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q192613, wd:Q682111 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPPForm . - ?presSPPForm ontolex:representation ?presSPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . + ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q192613, wd:Q682111 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPPForm . - ?presTPPForm ontolex:representation ?presTPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . + ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q192613, wd:Q682111 . } # MARK: Active Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingActivePartForm . - ?femSingActivePartForm ontolex:representation ?femSingActivePart ; + ?lexeme ontolex:lexicalForm ?feminineSingularActiveParticipleForm . + ?feminineSingularActiveParticipleForm ontolex:representation ?feminineSingularActiveParticiple ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masAnimateSingActivePartForm . - ?masAnimateSingActivePartForm ontolex:representation ?masAnimateSingActivePart ; + ?lexeme ontolex:lexicalForm ?masculineAnimateSingularActiveParticipleForm . + ?masculineAnimateSingularActiveParticipleForm ontolex:representation ?masculineAnimateSingularActiveParticiple ; wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masInanimateSingActivePartForm . - ?masInanimateSingActivePartForm ontolex:representation ?masInanimateSingActivePart ; + ?lexeme ontolex:lexicalForm ?masculineInanimateSingularActiveParticipleForm . + ?masculineInanimateSingularActiveParticipleForm ontolex:representation ?masculineInanimateSingularActiveParticiple ; wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neutSingActivePartForm . - ?neutSingActivePartForm ontolex:representation ?neutSingActivePart ; + ?lexeme ontolex:lexicalForm ?neuterSingularActiveParticipleForm . + ?neuterSingularActiveParticipleForm ontolex:representation ?neuterSingularActiveParticiple ; wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralActivePartForm . - ?femPluralActivePartForm ontolex:representation ?femPluralActivePart ; + ?lexeme ontolex:lexicalForm ?femininePluralActiveParticipleForm . + ?femininePluralActiveParticipleForm ontolex:representation ?femininePluralActiveParticiple ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masAnimatePluralActivePartForm . - ?masAnimatePluralActivePartForm ontolex:representation ?masAnimatePluralActivePart ; + ?lexeme ontolex:lexicalForm ?masculineAnimatePluralActiveParticipleForm . + ?masculineAnimatePluralActiveParticipleForm ontolex:representation ?masculineAnimatePluralActiveParticiple ; wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masInanimatePluralActivePartForm . - ?masInanimatePluralActivePartForm ontolex:representation ?masInanimatePluralActivePart ; + ?lexeme ontolex:lexicalForm ?masculineInanimatePluralActiveParticipleForm . + ?masculineInanimatePluralActiveParticipleForm ontolex:representation ?masculineInanimatePluralActiveParticiple ; wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q72249355 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neutPluralActivePartForm . - ?neutPluralActivePartForm ontolex:representation ?neutPluralActivePart ; + ?lexeme ontolex:lexicalForm ?neuterPluralActiveParticipleForm . + ?neuterPluralActiveParticipleForm ontolex:representation ?neuterPluralActiveParticiple ; wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249355 . } # MARK: Passive Participle OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingPassivePartForm . - ?femSingPassivePartForm ontolex:representation ?femSingPassivePart ; + ?lexeme ontolex:lexicalForm ?feminineSingularPassiveParticipleForm . + ?feminineSingularPassiveParticipleForm ontolex:representation ?feminineSingularPassiveParticiple ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masAnimateSingPassivePartForm . - ?masAnimateSingPassivePartForm ontolex:representation ?masAnimateSingPassivePart ; + ?lexeme ontolex:lexicalForm ?masculineAnimateSingularPassiveParticipleForm . + ?masculineAnimateSingularPassiveParticipleForm ontolex:representation ?masculineAnimateSingularPassiveParticiple ; wikibase:grammaticalFeature wd:Q54020116, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masInanimateSingPassivePartForm . - ?masInanimateSingPassivePartForm ontolex:representation ?masInanimateSingPassivePart ; + ?lexeme ontolex:lexicalForm ?masculineInanimateSingularPassiveParticipleForm . + ?masculineInanimateSingularPassiveParticipleForm ontolex:representation ?masculineInanimateSingularPassiveParticiple ; wikibase:grammaticalFeature wd:Q52943434, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neutSingPassivePartForm . - ?neutSingPassivePartForm ontolex:representation ?neutSingPassivePart ; + ?lexeme ontolex:lexicalForm ?neuterSingularPassiveParticipleForm . + ?neuterSingularPassiveParticipleForm ontolex:representation ?neuterSingularPassiveParticiple ; wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralPassivePartForm . - ?femPluralPassivePartForm ontolex:representation ?femPluralPassivePart ; + ?lexeme ontolex:lexicalForm ?femininePluralPassiveParticipleForm . + ?femininePluralPassiveParticipleForm ontolex:representation ?femininePluralPassiveParticiple ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masAnimatePluralPassivePartForm . - ?masAnimatePluralPassivePartForm ontolex:representation ?masAnimatePluralPassivePart ; + ?lexeme ontolex:lexicalForm ?masculineAnimatePluralPassiveParticipleForm . + ?masculineAnimatePluralPassiveParticipleForm ontolex:representation ?masculineAnimatePluralPassiveParticiple ; wikibase:grammaticalFeature wd:Q54020116, wd:Q146786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masInanimatePluralPassivePartForm . - ?masInanimatePluralPassivePartForm ontolex:representation ?masInanimatePluralPassivePart ; + ?lexeme ontolex:lexicalForm ?masculineInanimatePluralPassiveParticipleForm . + ?masculineInanimatePluralPassiveParticipleForm ontolex:representation ?masculineInanimatePluralPassiveParticiple ; wikibase:grammaticalFeature wd:Q52943434, wd:Q146786, wd:Q72249544 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neutPluralPassivePartForm . - ?neutPluralPassivePartForm ontolex:representation ?neutPluralPassivePart ; + ?lexeme ontolex:lexicalForm ?neuterPluralPassiveParticipleForm . + ?neuterPluralPassiveParticipleForm ontolex:representation ?neuterPluralPassiveParticiple ; wikibase:grammaticalFeature wd:Q1775461, wd:Q146786, wd:Q72249544 . } } diff --git a/src/scribe_data/language_data_extraction/Portuguese/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Portuguese/adjectives/query_adjectives.sparql new file mode 100644 index 000000000..aa7efc5ba --- /dev/null +++ b/src/scribe_data/language_data_extraction/Portuguese/adjectives/query_adjectives.sparql @@ -0,0 +1,41 @@ +# tool: scribe-data +# All Portugese (Q5146) 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 + ?femininePlural + ?masculineSingular + ?femininePlural + ?masculinePlural + +WHERE { + ?lexeme dct:language wd:Q5146 ; + wikibase:lexicalCategory wd:Q34698 ; + wikibase:lemma ?adjective . + + OPTIONAL { + ?lexeme ontolex:lexicalForm ?feminineSingularForm . + ?feminineSingularForm ontolex:representation ?feminineSingular ; + 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 ?masculinePluralForm . + ?masculinePluralForm ontolex:representation ?masculinePlural ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146786 . + } +} diff --git a/src/scribe_data/language_data_extraction/Portuguese/adverbs/query_adverbs.sparql b/src/scribe_data/language_data_extraction/Portuguese/adverbs/query_adverbs.sparql new file mode 100644 index 000000000..3828aceee --- /dev/null +++ b/src/scribe_data/language_data_extraction/Portuguese/adverbs/query_adverbs.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Portugese (Q5146) adverbs (Q380057) and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?adverb + +WHERE { + ?lexeme dct:language wd:Q5146 ; + wikibase:lexicalCategory wd:Q380057 ; + wikibase:lemma ?adverb . +} diff --git a/src/scribe_data/language_data_extraction/Portuguese/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Portuguese/proper_nouns/query_proper_nouns.sparql index 3aa98f917..602bbdfde 100644 --- a/src/scribe_data/language_data_extraction/Portuguese/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Portuguese/proper_nouns/query_proper_nouns.sparql @@ -18,14 +18,14 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q146786 ; - } . + wikibase:grammaticalFeature wd:Q146786 . + } # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Portuguese/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Portuguese/verbs/query_verbs.sparql index 229bb52ce..c66688f71 100644 --- a/src/scribe_data/language_data_extraction/Portuguese/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Portuguese/verbs/query_verbs.sparql @@ -5,14 +5,30 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?presFPS ?presSPS ?presTPS - ?presFPP ?presSPP ?presTPP - ?perfFPS ?perfSPS ?perfTPS - ?perfFPP ?perfSPP ?perfTPP - ?impFPS ?impSPS ?impTPS - ?impFPP ?impSPP ?impTPP - ?fSimpFPS ?fSimpSPS ?fSimpTPS - ?fSimpFPP ?fSimpSPP ?fSimpTPP + ?indicativePresentFirstPersonSingular + ?indicativePresentSecondPersonSingular + ?indicativePresentThirdPersonSingular + ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonPlural + ?indicativePastPerfectFirstPersonSingular + ?indicativePastPerfectSecondPersonSingular + ?indicativePastPerfectThirdPersonSingular + ?indicativePastPerfectFirstPersonPlural + ?indicativePastPerfectSecondPersonPlural + ?indicativePastPerfectThirdPersonPlural + ?indicativePastImperfectFirstPersonSingular + ?indicativePastImperfectSecondPersonSingular + ?indicativePastImperfectThirdPersonSingular + ?indicativePastImperfectFirstPersonPlural + ?indicativePastImperfectSecondPersonPlural + ?indicativePastImperfectThirdPersonPlural + ?indicativePluperfectFirstPersonSingular + ?indicativePluperfectSecondPersonSingular + ?indicativePluperfectThirdPersonSingular + ?indicativePluperfectFirstPersonPlural + ?indicativePluperfectSecondPersonPlural + ?indicativePluperfectThirdPersonPlural WHERE { ?lexeme dct:language wd:Q5146 ; @@ -30,177 +46,153 @@ WHERE { # MARK: Present - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPSForm . - ?presFPSForm ontolex:representation ?presFPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . + ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPSForm . - ?presSPSForm ontolex:representation ?presSPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPSForm . - ?presTPSForm ontolex:representation ?presTPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPPForm . - ?presFPPForm ontolex:representation ?presFPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . + ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPPForm . - ?presSPPForm ontolex:representation ?presSPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . + ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPPForm . - ?presTPPForm ontolex:representation ?presTPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . + ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . } # MARK: Past Perfect - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?perfFPSForm . - ?perfFPSForm ontolex:representation ?perfFPS ; + ?lexeme ontolex:lexicalForm ?indicativePastPerfectFirstPersonSingularForm . + ?indicativePastPerfectFirstPersonSingularForm ontolex:representation ?indicativePastPerfectFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q64005357 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?perfSPSForm . - ?perfSPSForm ontolex:representation ?perfSPS ; + ?lexeme ontolex:lexicalForm ?indicativePastPerfectSecondPersonSingularForm . + ?indicativePastPerfectSecondPersonSingularForm ontolex:representation ?indicativePastPerfectSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q64005357 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?perfTPSForm . - ?perfTPSForm ontolex:representation ?perfTPS ; + ?lexeme ontolex:lexicalForm ?indicativePastPerfectThirdPersonSingularForm . + ?indicativePastPerfectThirdPersonSingularForm ontolex:representation ?indicativePastPerfectThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q64005357 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?perfFPPForm . - ?perfFPPForm ontolex:representation ?perfFPP ; + ?lexeme ontolex:lexicalForm ?indicativePastPerfectFirstPersonPluralForm . + ?indicativePastPerfectFirstPersonPluralForm ontolex:representation ?indicativePastPerfectFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q64005357 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?perfSPPForm . - ?perfSPPForm ontolex:representation ?perfSPP ; + ?lexeme ontolex:lexicalForm ?indicativePastPerfectSecondPersonPluralForm . + ?indicativePastPerfectSecondPersonPluralForm ontolex:representation ?indicativePastPerfectSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q64005357 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?perfTPPForm . - ?perfTPPForm ontolex:representation ?perfTPP ; + ?lexeme ontolex:lexicalForm ?indicativePastPerfectThirdPersonPluralForm . + ?indicativePastPerfectThirdPersonPluralForm ontolex:representation ?indicativePastPerfectThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q64005357 . } # MARK: Past Imperfect - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impFPSForm . - ?impFPSForm ontolex:representation ?impFPS ; + ?lexeme ontolex:lexicalForm ?indicativePastImperfectFirstPersonSingularForm . + ?indicativePastImperfectFirstPersonSingularForm ontolex:representation ?indicativePastImperfectFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q12547192 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPSForm . - ?impSPSForm ontolex:representation ?impSPS ; + ?lexeme ontolex:lexicalForm ?indicativePastImperfectSecondPersonSingularForm . + ?indicativePastImperfectSecondPersonSingularForm ontolex:representation ?indicativePastImperfectSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q12547192 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impTPSForm . - ?impTPSForm ontolex:representation ?impTPS ; + ?lexeme ontolex:lexicalForm ?indicativePastImperfectThirdPersonSingularForm . + ?indicativePastImperfectThirdPersonSingularForm ontolex:representation ?indicativePastImperfectThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q12547192 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impFPPForm . - ?impFPPForm ontolex:representation ?impFPP ; + ?lexeme ontolex:lexicalForm ?indicativePastImperfectFirstPersonPluralForm . + ?indicativePastImperfectFirstPersonPluralForm ontolex:representation ?indicativePastImperfectFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q12547192 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPPForm . - ?impSPPForm ontolex:representation ?impSPP ; + ?lexeme ontolex:lexicalForm ?indicativePastImperfectSecondPersonPluralForm . + ?indicativePastImperfectSecondPersonPluralForm ontolex:representation ?indicativePastImperfectSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q12547192 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impTPPForm . - ?impTPPForm ontolex:representation ?impTPP ; + ?lexeme ontolex:lexicalForm ?indicativePastImperfectThirdPersonPluralForm . + ?indicativePastImperfectThirdPersonPluralForm ontolex:representation ?indicativePastImperfectThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q12547192 . } # MARK: Future Simple - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?fSimpFPSForm . - ?fSimpFPSForm ontolex:representation ?fSimpFPS ; + ?lexeme ontolex:lexicalForm ?indicativePluperfectFirstPersonSingularForm . + ?indicativePluperfectFirstPersonSingularForm ontolex:representation ?indicativePluperfectFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q623742, wd:Q682111 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?fSimpSPSForm . - ?fSimpSPSForm ontolex:representation ?fSimpSPS ; + ?lexeme ontolex:lexicalForm ?indicativePluperfectSecondPersonSingularForm . + ?indicativePluperfectSecondPersonSingularForm ontolex:representation ?indicativePluperfectSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q623742, wd:Q682111 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?fSimpTPSForm . - ?fSimpTPSForm ontolex:representation ?fSimpTPS ; + ?lexeme ontolex:lexicalForm ?indicativePluperfectThirdPersonSingularForm . + ?indicativePluperfectThirdPersonSingularForm ontolex:representation ?indicativePluperfectThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q623742, wd:Q682111 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?fSimpFPPForm . - ?fSimpFPPForm ontolex:representation ?fSimpFPP ; + ?lexeme ontolex:lexicalForm ?indicativePluperfectFirstPersonPluralForm . + ?indicativePluperfectFirstPersonPluralForm ontolex:representation ?indicativePluperfectFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q623742, wd:Q682111 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?fSimpSPPForm . - ?fSimpSPPForm ontolex:representation ?fSimpSPP ; + ?lexeme ontolex:lexicalForm ?indicativePluperfectSecondPersonPluralForm . + ?indicativePluperfectSecondPersonPluralForm ontolex:representation ?indicativePluperfectSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q623742, wd:Q682111 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?fSimpTPPForm . - ?fSimpTPPForm ontolex:representation ?fSimpTPP ; + ?lexeme ontolex:lexicalForm ?indicativePluperfectThirdPersonPluralForm . + ?indicativePluperfectThirdPersonPluralForm ontolex:representation ?indicativePluperfectThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q623742, wd:Q682111 . } } diff --git a/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/nouns/query_nouns.sparql index 0f0cd85b5..dcdad92af 100644 --- a/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/nouns/query_nouns.sparql @@ -12,9 +12,9 @@ SELECT WHERE { ?lexeme dct:language wd:Q58635 ; - wikibase:lexicalCategory wd:Q1084 ; - wikibase:lemma ?singular . - FILTER(lang(?singular) = "pa") + wikibase:lexicalCategory wd:Q1084 ; + wikibase:lemma ?singular . + FILTER(lang(?singular) = "pa") # MARK: Plural @@ -22,7 +22,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 . - FILTER(lang(?plural) = "pa") . + FILTER(lang(?plural) = "pa") } # MARK: Gender(s) diff --git a/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/proper_nouns/query_proper_nouns.sparql index b5d908ade..3027ba33b 100644 --- a/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Punjabi/Gurmukhi/proper_nouns/query_proper_nouns.sparql @@ -12,24 +12,24 @@ SELECT WHERE { ?lexeme dct:language wd:Q58635 ; - wikibase:lexicalCategory wd:Q147276; - wikibase:lemma ?singular . - FILTER(lang(?singular) = "pa") + wikibase:lexicalCategory wd:Q147276; + wikibase:lemma ?singular . + FILTER(lang(?singular) = "pa") # MARK: Plural OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q146786 . FILTER(lang(?plural) = "pa") - } . + } # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/nouns/query_nouns.sparql index d0958df96..107d7e513 100644 --- a/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/nouns/query_nouns.sparql @@ -23,7 +23,7 @@ WHERE { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 . - FILTER(lang(?plural) = "pnb") . + FILTER(lang(?plural) = "pnb") } # MARK: Gender(s) diff --git a/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/proper_nouns/query_proper_nouns.sparql index 97b3b4d33..aef337511 100644 --- a/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Punjabi/Shahmukhi/proper_nouns/query_proper_nouns.sparql @@ -22,15 +22,15 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q146786 ; + wikibase:grammaticalFeature wd:Q146786 . FILTER(lang(?plural) = "pnb") - } . + } # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Russian/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Russian/adjectives/query_adjectives.sparql index c78e38832..d5bd7994c 100644 --- a/src/scribe_data/language_data_extraction/Russian/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Russian/adjectives/query_adjectives.sparql @@ -5,35 +5,41 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?masculineNominativeSingular - ?neuterNominativeSingular - ?feminineNominativeSingular + ?nominativeFeminineSingular + ?nominativeMasculineSingular + ?nominativeNeuterSingular ?nominativePlural - ?masculineGenitiveSingular - ?neuterGenitiveSingular - ?feminineGenitiveSingular + + ?genitiveFeminineSingular + ?genitiveMasculineSingular + ?genitiveNeuterSingular ?genitivePlural - ?masculineDativeSingular - ?neuterDativeSingular - ?feminineDativeSingular + + ?dativeFeminineSingular + ?dativeMasculineSingular + ?dativeNeuterSingular ?dativePlural - ?masculineAnimateAccusativeSingular - ?neuterAnimateAccusativeSingular - ?feminineAnimateAccusativeSingular - ?animateAccusativePlural - ?masculineInstrumentalSingular - ?neuterInstrumentalSingular - ?feminineInstrumentalSingular + + ?accusativeFeminineAnimateSingular + ?accusativeMasculineAnimateSingular + ?accusativeAnimateNeuterSingular + ?accusativeAnimatePlural + ?accusativeInanimateSingular + ?accusativeInanimatePlural + + ?instrumentalFeminineSingular + ?instrumentalMasculineSingular + ?instrumentalNeuterSingular ?instrumentalPlural - ?masculinePrepositionalSingular - ?neuterPrepositionalSingular - ?femininePrepositionalSingular + + ?prepositionalFeminineSingular + ?prepositionalMasculineSingular + ?prepositionalNeuterSingular ?prepositionalPlural - ?inanimateAccusativeSingular - ?inanimateAccusativePlural - ?masculineShortSingular - ?neuterShortSingular - ?feminineShortSingular + + ?feminineSingularShort + ?masculineSingularShort + ?neuterSingularShort ?pluralShort WHERE { @@ -44,21 +50,21 @@ WHERE { # MARK: Nominative OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineNominativeSingularForm . - ?masculineNominativeSingularForm ontolex:representation ?masculineNominativeSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q131105, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?nominativeFeminineSingularForm . + ?nominativeFeminineSingularForm ontolex:representation ?nominativeFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q131105, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterNominativeSingularForm . - ?neuterNominativeSingularForm ontolex:representation ?neuterNominativeSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q131105, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?nominativeMasculineSingularForm . + ?nominativeMasculineSingularForm ontolex:representation ?nominativeMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q131105, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineNominativeSingularForm . - ?feminineNominativeSingularForm ontolex:representation ?feminineNominativeSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q131105, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?nominativeNeuterSingularForm . + ?nominativeNeuterSingularForm ontolex:representation ?nominativeNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q131105, wd:Q110786 . } OPTIONAL { @@ -70,21 +76,21 @@ WHERE { # MARK: Genitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineGenitiveSingularForm . - ?masculineGenitiveSingularForm ontolex:representation ?masculineGenitiveSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146233, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?genitiveFeminineSingularForm . + ?genitiveFeminineSingularForm ontolex:representation ?genitiveFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146233, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterGenitiveSingularForm . - ?neuterGenitiveSingularForm ontolex:representation ?neuterGenitiveSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q146233, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?genitiveMasculineSingularForm . + ?genitiveMasculineSingularForm ontolex:representation ?genitiveMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146233, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineGenitiveSingularForm . - ?feminineGenitiveSingularForm ontolex:representation ?feminineGenitiveSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146233, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?genitiveNeuterSingularForm . + ?genitiveNeuterSingularForm ontolex:representation ?genitiveNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q146233, wd:Q110786 . } OPTIONAL { @@ -96,21 +102,21 @@ WHERE { # MARK: Dative OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineDativeSingularForm . - ?masculineDativeSingularForm ontolex:representation ?masculineDativeSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q145599, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?dativeFeminineSingularForm . + ?dativeFeminineSingularForm ontolex:representation ?dativeFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q145599, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterDativeSingularForm . - ?neuterDativeSingularForm ontolex:representation ?neuterDativeSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q145599, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?dativeMasculineSingularForm . + ?dativeMasculineSingularForm ontolex:representation ?dativeMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q145599, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineDativeSingularForm . - ?feminineDativeSingularForm ontolex:representation ?feminineDativeSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q145599, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?dativeNeuterSingularForm . + ?dativeNeuterSingularForm ontolex:representation ?dativeNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q145599, wd:Q110786 . } OPTIONAL { @@ -122,59 +128,59 @@ WHERE { # MARK: Accusative OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAnimateAccusativeSingularForm . - ?masculineAnimateAccusativeSingularForm ontolex:representation ?masculineAnimateAccusativeSingular ; - wikibase:grammaticalFeature wd:Q499327,wd:Q51927507, wd:Q146078, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?accusativeFeminineAnimateSingularForm . + ?accusativeFeminineAnimateSingularForm ontolex:representation ?accusativeFeminineAnimateSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q51927507, wd:Q146078, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterAnimateAccusativeSingularForm . - ?neuterAnimateAccusativeSingularForm ontolex:representation ?neuterAnimateAccusativeSingular ; - wikibase:grammaticalFeature wd:Q1775461,wd:Q51927507, wd:Q146078, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?accusativeMasculineAnimateSingularForm . + ?accusativeMasculineAnimateSingularForm ontolex:representation ?accusativeMasculineAnimateSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q51927507, wd:Q146078, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineAnimateAccusativeSingularForm . - ?feminineAnimateAccusativeSingularForm ontolex:representation ?feminineAnimateAccusativeSingular ; - wikibase:grammaticalFeature wd:Q1775415,wd:Q51927507 ,wd:Q146078, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?accusativeAnimateNeuterSingularForm . + ?accusativeAnimateNeuterSingularForm ontolex:representation ?accusativeAnimateNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q51927507, wd:Q146078, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?animateAccusativePluralForm . - ?animateAccusativePluralForm ontolex:representation ?animateAccusativePlural ; + ?lexeme ontolex:lexicalForm ?accusativeAnimatePluralForm . + ?accusativeAnimatePluralForm ontolex:representation ?accusativeAnimatePlural ; wikibase:grammaticalFeature wd:Q51927507, wd:Q146078, wd:Q146786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?inanimateAccusativeSingularForm . - ?inanimateAccusativeSingularForm ontolex:representation ?inanimateAccusativeSingular ; + ?lexeme ontolex:lexicalForm ?accusativeInanimateSingularForm . + ?accusativeInanimateSingularForm ontolex:representation ?accusativeInanimateSingular ; wikibase:grammaticalFeature wd:Q51927539, wd:Q146078, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?inanimateAccusativePluralForm . - ?inanimateAccusativePluralForm ontolex:representation ?inanimateAccusativePlural ; + ?lexeme ontolex:lexicalForm ?accusativeInanimatePluralForm . + ?accusativeInanimatePluralForm ontolex:representation ?accusativeInanimatePlural ; wikibase:grammaticalFeature wd:Q51927539, wd:Q146078, wd:Q146786 . } # MARK: Instrumental OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineInstrumentalSingularForm . - ?masculineInstrumentalSingularForm ontolex:representation ?masculineInstrumentalSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q192997, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?instrumentalFeminineSingularForm . + ?instrumentalFeminineSingularForm ontolex:representation ?instrumentalFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q192997, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterInstrumentalSingularForm . - ?neuterInstrumentalSingularForm ontolex:representation ?neuterInstrumentalSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q192997, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?instrumentalMasculineSingularForm . + ?instrumentalMasculineSingularForm ontolex:representation ?instrumentalMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q192997, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineInstrumentalSingularForm . - ?feminineInstrumentalSingularForm ontolex:representation ?feminineInstrumentalSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q192997, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?instrumentalNeuterSingularForm . + ?instrumentalNeuterSingularForm ontolex:representation ?instrumentalNeuterSingular ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q192997, wd:Q110786 . } OPTIONAL { @@ -186,47 +192,47 @@ WHERE { # MARK: Prepositional OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculinePrepositionalSingularForm . - ?masculinePrepositionalSingularForm ontolex:representation ?masculinePrepositionalSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q2114906, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?prepositionalFeminineSingularForm . + ?prepositionalFeminineSingularForm ontolex:representation ?prepositionalFeminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q2114906, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterPrepositionalSingularForm . - ?neuterPrepositionalSingularForm ontolex:representation ?neuterPrepositionalSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q2114906, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?prepositionalMasculineSingularForm . + ?prepositionalMasculineSingularForm ontolex:representation ?prepositionalMasculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q2114906, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femininePrepositionalSingularForm . - ?femininePrepositionalSingularForm ontolex:representation ?femininePrepositionalSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q2114906, wd:Q110786 . + ?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 . + wikibase:grammaticalFeature wd:Q2114906, wd:Q146786 . } # MARK: Short OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineShortSingularForm . - ?masculineShortSingularForm ontolex:representation ?masculineShortSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q4239848, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?feminineSingularShortForm . + ?feminineSingularShortForm ontolex:representation ?feminineSingularShort ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q4239848, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterShortSingularForm . - ?neuterShortSingularForm ontolex:representation ?neuterShortSingular ; - wikibase:grammaticalFeature wd:Q1775461, wd:Q4239848, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?masculineSingularShortForm . + ?masculineSingularShortForm ontolex:representation ?masculineSingularShort ; + wikibase:grammaticalFeature wd:Q499327, wd:Q4239848, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineShortSingularForm . - ?feminineShortSingularForm ontolex:representation ?feminineShortSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q4239848, wd:Q110786 . + ?lexeme ontolex:lexicalForm ?neuterSingularShortForm . + ?neuterSingularShortForm ontolex:representation ?neuterSingularShort ; + wikibase:grammaticalFeature wd:Q1775461, wd:Q4239848, wd:Q110786 . } OPTIONAL { diff --git a/src/scribe_data/language_data_extraction/Russian/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Russian/nouns/query_nouns.sparql index fbb3f655d..d79ced8c1 100644 --- a/src/scribe_data/language_data_extraction/Russian/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Russian/nouns/query_nouns.sparql @@ -4,8 +4,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural ?gender WHERE { @@ -15,16 +15,16 @@ WHERE { # MARK: Nominative Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomSingularForm . - ?nomSingularForm ontolex:representation ?nomSingular ; + ?lexeme ontolex:lexicalForm ?nominativeSingularForm . + ?nominativeSingularForm ontolex:representation ?nominativeSingular ; wikibase:grammaticalFeature wd:Q131105, wd:Q110786 . } # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } diff --git a/src/scribe_data/language_data_extraction/Russian/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Russian/proper_nouns/query_proper_nouns.sparql index e20d10333..2f0e79f82 100644 --- a/src/scribe_data/language_data_extraction/Russian/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Russian/proper_nouns/query_proper_nouns.sparql @@ -4,8 +4,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural ?gender WHERE { @@ -15,26 +15,24 @@ WHERE { # MARK: Nominative Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomSingularForm . - ?nomSingularForm ontolex:representation ?nomSingular ; - wikibase:grammaticalFeature wd:Q131105 ; - wikibase:grammaticalFeature wd:Q110786 ; - } . + ?lexeme ontolex:lexicalForm ?nominativeSingularForm . + ?nominativeSingularForm ontolex:representation ?nominativeSingular ; + wikibase:grammaticalFeature wd:Q131105, wd:Q110786 . + } # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; - wikibase:grammaticalFeature wd:Q131105 ; - wikibase:grammaticalFeature wd:Q146786 ; - } . + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; + wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . + } # MARK: Gender(s) OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Russian/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Russian/verbs/query_verbs.sparql index 2875e4dd5..76edcb08d 100644 --- a/src/scribe_data/language_data_extraction/Russian/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Russian/verbs/query_verbs.sparql @@ -5,9 +5,16 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?presFPS ?presSPS ?presTPS - ?presFPP ?presSPP ?presTPP - ?pastFeminine ?pastMasculine ?pastNeutral ?pastPlural + ?indicativePresentFirstPersonSingular + ?indicativePresentSecondPersonSingular + ?indicativePresentThirdPersonSingular + ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonPlural + ?feminineIndicativePast + ?masculineIndicativePast + ?neuterIndicativePast + ?indicativePastPlural WHERE { ?lexeme dct:language wd:Q7737 ; @@ -21,77 +28,71 @@ WHERE { # MARK: Present - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPSForm . - ?presFPSForm ontolex:representation ?presFPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . + ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPSForm . - ?presSPSForm ontolex:representation ?presSPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPSForm . - ?presTPSForm ontolex:representation ?presTPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPPForm . - ?presFPPForm ontolex:representation ?presFPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . + ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPPForm . - ?presSPPForm ontolex:representation ?presSPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . + ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPPForm . - ?presTPPForm ontolex:representation ?presTPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . + ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . } # MARK: Past Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastFeminineForm . - ?pastFeminineForm ontolex:representation ?pastFeminine ; + ?lexeme ontolex:lexicalForm ?feminineIndicativePastForm . + ?feminineIndicativePastForm ontolex:representation ?feminineIndicativePast ; wikibase:grammaticalFeature wd:Q682111, wd:Q1994301, wd:Q1775415 . } # MARK: Past Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastMasculineForm . - ?pastMasculineForm ontolex:representation ?pastMasculine ; + ?lexeme ontolex:lexicalForm ?masculineIndicativePastForm . + ?masculineIndicativePastForm ontolex:representation ?masculineIndicativePast ; wikibase:grammaticalFeature wd:Q682111, wd:Q1994301, wd:Q499327 . } # MARK: Past Neutral OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastNeutralForm . - ?pastNeutralForm ontolex:representation ?pastNeutral ; + ?lexeme ontolex:lexicalForm ?neuterIndicativePastForm . + ?neuterIndicativePastForm ontolex:representation ?neuterIndicativePast ; wikibase:grammaticalFeature wd:Q682111, wd:Q1994301, wd:Q1775461 . } # MARK: Past Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?pastPluralForm . - ?pastPluralForm ontolex:representation ?pastPlural ; + ?lexeme ontolex:lexicalForm ?indicativePastPluralForm . + ?indicativePastPluralForm ontolex:representation ?indicativePastPlural ; wikibase:grammaticalFeature wd:Q146786, wd:Q682111, wd:Q1994301 . } } diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_1.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_1.sparql index 6cb45f067..07e33cf6c 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_1.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_1.sparql @@ -5,11 +5,11 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?feminineNominativeSingular - ?masculineNominativeSingular - ?neuterNominativeSingular - ?masculinePersonalNominativePlural - ?notMasculinePersonalNominativePlural + ?nominativeFeminineSingularPositive + ?nominativeMasculineSingularPositive + ?nominativeNeuterSingularPositive + ?nominativeMasculinePersonalPluralPositive + ?nominativeNotMasculinePersonalPluralPositive WHERE { ?lexeme dct:language wd:Q9058; @@ -19,32 +19,32 @@ WHERE { # MARK: Nominative OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineNominativeSingularForm . - ?feminineNominativeSingularForm ontolex:representation ?feminineNominativeSingular ; + ?lexeme ontolex:lexicalForm ?nominativeFeminineSingularPositiveForm . + ?nominativeFeminineSingularPositiveForm ontolex:representation ?nominativeFeminineSingularPositive ; wikibase:grammaticalFeature wd:Q1775415, wd:Q131105, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineNominativeSingularForm . - ?masculineNominativeSingularForm ontolex:representation ?masculineNominativeSingular ; + ?lexeme ontolex:lexicalForm ?nominativeMasculineSingularPositiveForm . + ?nominativeMasculineSingularPositiveForm ontolex:representation ?nominativeMasculineSingularPositive ; wikibase:grammaticalFeature wd:Q499327, wd:Q131105, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterNominativeSingularForm . - ?neuterNominativeSingularForm ontolex:representation ?neuterNominativeSingular ; + ?lexeme ontolex:lexicalForm ?nominativeNeuterSingularPositiveForm . + ?nominativeNeuterSingularPositiveForm ontolex:representation ?nominativeNeuterSingularPositive ; wikibase:grammaticalFeature wd:Q1775461, wd:Q131105, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculinePersonalNominativePluralForm . - ?masculinePersonalNominativePluralForm ontolex:representation ?masculinePersonalNominativePlural ; + ?lexeme ontolex:lexicalForm ?nominativeMasculinePersonalPluralPositiveForm . + ?nominativeMasculinePersonalPluralPositiveForm ontolex:representation ?nominativeMasculinePersonalPluralPositive ; wikibase:grammaticalFeature wd:Q27918551, wd:Q131105, wd:Q146786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?notMasculinePersonalNominativePluralForm . - ?notMasculinePersonalNominativePluralForm ontolex:representation ?notMasculinePersonalNominativePlural ; + ?lexeme ontolex:lexicalForm ?nominativeNotMasculinePersonalPluralPositiveForm . + ?nominativeNotMasculinePersonalPluralPositiveForm ontolex:representation ?nominativeNotMasculinePersonalPluralPositive ; wikibase:grammaticalFeature wd:Q54152717, wd:Q131105, wd:Q146786, wd:Q3482678 . } } diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_2.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_2.sparql index f7c5f01ae..abbc667cd 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_2.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_2.sparql @@ -5,10 +5,10 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?feminineGenitiveSingular - ?masculineGenitiveSingular - ?neuterGenitiveSingular - ?genitivePlural + ?genitiveFeminineSingularPositive + ?genitiveMasculineSingularPositive + ?genitiveNeuterSingularPositive + ?genitivePluralPositive WHERE { ?lexeme dct:language wd:Q9058; @@ -18,26 +18,26 @@ WHERE { # MARK: Genitive OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineGenitiveSingularForm . - ?feminineGenitiveSingularForm ontolex:representation ?feminineGenitiveSingular ; + ?lexeme ontolex:lexicalForm ?genitiveFeminineSingularPositiveForm . + ?genitiveFeminineSingularPositiveForm ontolex:representation ?genitiveFeminineSingularPositive ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146233, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineGenitiveSingularForm . - ?masculineGenitiveSingularForm ontolex:representation ?masculineGenitiveSingular ; + ?lexeme ontolex:lexicalForm ?genitiveMasculineSingularPositiveForm . + ?genitiveMasculineSingularPositiveForm ontolex:representation ?genitiveMasculineSingularPositive ; wikibase:grammaticalFeature wd:Q499327, wd:Q146233, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterGenitiveSingularForm . - ?neuterGenitiveSingularForm ontolex:representation ?neuterGenitiveSingular ; + ?lexeme ontolex:lexicalForm ?genitiveNeuterSingularPositiveForm . + ?genitiveNeuterSingularPositiveForm ontolex:representation ?genitiveNeuterSingularPositive ; wikibase:grammaticalFeature wd:Q1775461, wd:Q146233, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?genitivePluralForm . - ?genitivePluralForm ontolex:representation ?genitivePlural ; + ?lexeme ontolex:lexicalForm ?genitivePluralPositiveForm . + ?genitivePluralPositiveForm ontolex:representation ?genitivePluralPositive ; wikibase:grammaticalFeature wd:Q146233, wd:Q146786, wd:Q3482678 . } } diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_3.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_3.sparql index aab76cd3e..a1b8e1dc3 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_3.sparql +++ b/src/scribe_data/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 - ?feminineDativeSingular - ?masculineDativeSingular - ?neuterDativeSingular - ?dativePlural + ?dativeFeminineSingularPositive + ?dativeMasculineSingularPositive + ?dativeNeuterSingularPositive + ?dativePluralPositive WHERE { ?lexeme dct:language wd:Q9058; @@ -18,26 +18,26 @@ WHERE { # MARK: Dative OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineDativeSingularForm . - ?feminineDativeSingularForm ontolex:representation ?feminineDativeSingular ; + ?lexeme ontolex:lexicalForm ?dativeFeminineSingularPositiveForm . + ?dativeFeminineSingularPositiveForm ontolex:representation ?dativeFeminineSingularPositive ; wikibase:grammaticalFeature wd:Q1775415, wd:Q145599, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineDativeSingularForm . - ?masculineDativeSingularForm ontolex:representation ?masculineDativeSingular ; + ?lexeme ontolex:lexicalForm ?dativeMasculineSingularPositiveForm . + ?dativeMasculineSingularPositiveForm ontolex:representation ?dativeMasculineSingularPositive ; wikibase:grammaticalFeature wd:Q499327, wd:Q145599, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterDativeSingularForm . - ?neuterDativeSingularForm ontolex:representation ?neuterDativeSingular ; + ?lexeme ontolex:lexicalForm ?dativeNeuterSingularPositiveForm . + ?dativeNeuterSingularPositiveForm ontolex:representation ?dativeNeuterSingularPositive ; wikibase:grammaticalFeature wd:Q1775461, wd:Q145599, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?DativePluralForm . - ?DativePluralForm ontolex:representation ?dativePlural ; + ?lexeme ontolex:lexicalForm ?dativePluralPositiveForm . + ?dativePluralPositiveForm ontolex:representation ?dativePluralPositive ; wikibase:grammaticalFeature wd:Q145599, wd:Q146786, wd:Q3482678 . } } diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_4.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_4.sparql index 6a0cf8edc..91ea51b0c 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_4.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_4.sparql @@ -5,12 +5,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?feminineAccusativeSingular - ?masculineAnimateAccusativeSingular - ?masculineInanimateAccusativeSingular - ?neuterAccusativeSingular - ?masculinePersonalAccusativePlural - ?notMasculinePersonalAccusativePlural + ?accusativeFeminineSingularPositive + ?accusativeMasculineAnimateSingularPositive + ?accusativeMasculineInanimateSingularPositive + ?accusativeNeuterSingularPositive + ?accusativeMasculinePersonalPluralPositive + ?accusativeNotMasculinePersonalPluralPositive WHERE { ?lexeme dct:language wd:Q9058; @@ -20,38 +20,38 @@ WHERE { # MARK: Accustive OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineAccusativeSingularForm . - ?feminineAccusativeSingularForm ontolex:representation ?feminineAccusativeSingular ; + ?lexeme ontolex:lexicalForm ?accusativeFeminineSingularPositiveForm . + ?accusativeFeminineSingularPositiveForm ontolex:representation ?accusativeFeminineSingularPositive ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146078, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAccusativeSingularForm . - ?masculineAccusativeSingularForm ontolex:representation ?masculineAnimateAccusativeSingular ; + ?lexeme ontolex:lexicalForm ?accusativeMasculineAnimateSingularPositiveForm . + ?accusativeMasculineAnimateSingularPositiveForm ontolex:representation ?accusativeMasculineAnimateSingularPositive ; wikibase:grammaticalFeature wd:Q54020116, wd:Q146078, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineAccusativeSingularForm . - ?masculineAccusativeSingularForm ontolex:representation ?masculineInanimateAccusativeSingular ; + ?lexeme ontolex:lexicalForm ?accusativeMasculineInanimateSingularPositiveForm . + ?accusativeMasculineInanimateSingularPositiveForm ontolex:representation ?accusativeMasculineInanimateSingularPositive ; wikibase:grammaticalFeature wd:Q52943434, wd:Q146078, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterAccusativeSingularForm . - ?neuterAccusativeSingularForm ontolex:representation ?neuterAccusativeSingular ; + ?lexeme ontolex:lexicalForm ?accusativeNeuterSingularPositiveForm . + ?accusativeNeuterSingularPositiveForm ontolex:representation ?accusativeNeuterSingularPositive ; wikibase:grammaticalFeature wd:Q1775461, wd:Q146078, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculinePersonalAccusativePluralForm . - ?masculinePersonalAccusativePluralForm ontolex:representation ?masculinePersonalAccusativePlural ; + ?lexeme ontolex:lexicalForm ?accusativeMasculinePersonalPluralPositiveForm . + ?accusativeMasculinePersonalPluralPositiveForm ontolex:representation ?accusativeMasculinePersonalPluralPositive ; wikibase:grammaticalFeature wd:Q27918551, wd:Q146078, wd:Q146786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?notMasculinePersonalAccusativePluralForm . - ?notMasculinePersonalAccusativePluralForm ontolex:representation ?notMasculinePersonalAccusativePlural ; + ?lexeme ontolex:lexicalForm ?accusativeNotMasculinePersonalPluralPositiveForm . + ?accusativeNotMasculinePersonalPluralPositiveForm ontolex:representation ?accusativeNotMasculinePersonalPluralPositive ; wikibase:grammaticalFeature wd:Q54152717, wd:Q146078, wd:Q146786, wd:Q3482678 . } } diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_5.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_5.sparql index 88d76cb95..d404c2185 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_5.sparql +++ b/src/scribe_data/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 - ?feminineLocativeSingular - ?masculineLocativeSingular - ?neuterLocativeSingular - ?locativePlural + ?locativeFeminineSingularPositive + ?locativeMasculineSingularPositive + ?locativeNeuterSingularPositive + ?locativePluralPositive WHERE { ?lexeme dct:language wd:Q9058; @@ -18,26 +18,26 @@ WHERE { # MARK: Locative OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineLocativeSingularForm . - ?feminineLocativeSingularForm ontolex:representation ?feminineLocativeSingular ; + ?lexeme ontolex:lexicalForm ?locativeFeminineSingularPositiveForm . + ?locativeFeminineSingularPositiveForm ontolex:representation ?locativeFeminineSingularPositive ; wikibase:grammaticalFeature wd:Q1775415, wd:Q202142, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineLocativeSingularForm . - ?masculineLocativeSingularForm ontolex:representation ?masculineLocativeSingular ; + ?lexeme ontolex:lexicalForm ?locativeMasculineSingularPositiveForm . + ?locativeMasculineSingularPositiveForm ontolex:representation ?locativeMasculineSingularPositive ; wikibase:grammaticalFeature wd:Q499327, wd:Q202142, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterLocativeSingularForm . - ?neuterLocativeSingularForm ontolex:representation ?neuterLocativeSingular ; + ?lexeme ontolex:lexicalForm ?locativeNeuterSingularPositiveForm . + ?locativeNeuterSingularPositiveForm ontolex:representation ?locativeNeuterSingularPositive ; wikibase:grammaticalFeature wd:Q1775461, wd:Q202142, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?locativePluralForm . - ?locativePluralForm ontolex:representation ?locativePlural ; + ?lexeme ontolex:lexicalForm ?locativePluralPositiveForm . + ?locativePluralPositiveForm ontolex:representation ?locativePluralPositive ; wikibase:grammaticalFeature wd:Q202142, wd:Q146786, wd:Q3482678 . } } diff --git a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_6.sparql b/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_6.sparql index 4c4f471d1..f7d029f39 100644 --- a/src/scribe_data/language_data_extraction/Slovak/adjectives/query_adjectives_6.sparql +++ b/src/scribe_data/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 - ?feminineInstrumentalSingular - ?masculineInstrumentalSingular - ?neuterInstrumentalSingular - ?instrumentalPlural + ?instrumentalFeminineSingularPositive + ?instrumentalMasculineSingularPositive + ?instrumentalNeuterSingularPositive + ?instrumentalPluralPositive WHERE { ?lexeme dct:language wd:Q9058; @@ -18,26 +18,26 @@ WHERE { # MARK: Instrumental OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineInstrumentalSingularForm . - ?feminineInstrumentalSingularForm ontolex:representation ?feminineInstrumentalSingular ; + ?lexeme ontolex:lexicalForm ?instrumentalFeminineSingularPositiveForm . + ?instrumentalFeminineSingularPositiveForm ontolex:representation ?instrumentalFeminineSingularPositive ; wikibase:grammaticalFeature wd:Q1775415, wd:Q192997, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineInstrumentalSingularForm . - ?masculineInstrumentalSingularForm ontolex:representation ?masculineInstrumentalSingular ; + ?lexeme ontolex:lexicalForm ?instrumentalMasculineSingularPositiveForm . + ?instrumentalMasculineSingularPositiveForm ontolex:representation ?instrumentalMasculineSingularPositive ; wikibase:grammaticalFeature wd:Q499327, wd:Q192997, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterInstrumentalSingularForm . - ?neuterInstrumentalSingularForm ontolex:representation ?neuterInstrumentalSingular ; + ?lexeme ontolex:lexicalForm ?instrumentalNeuterSingularPositiveForm . + ?instrumentalNeuterSingularPositiveForm ontolex:representation ?instrumentalNeuterSingularPositive ; wikibase:grammaticalFeature wd:Q1775461, wd:Q192997, wd:Q110786, wd:Q3482678 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?instrumentalPluralForm . - ?instrumentalPluralForm ontolex:representation ?instrumentalPlural ; + ?lexeme ontolex:lexicalForm ?instrumentalPluralPositiveForm . + ?instrumentalPluralPositiveForm ontolex:representation ?instrumentalPluralPositive ; wikibase:grammaticalFeature wd:Q192997, wd:Q146786, wd:Q3482678 . } } diff --git a/src/scribe_data/language_data_extraction/Slovak/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Slovak/nouns/query_nouns.sparql index c731ce729..2b7f5bd6b 100644 --- a/src/scribe_data/language_data_extraction/Slovak/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/nouns/query_nouns.sparql @@ -4,20 +4,20 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural ?gender WHERE { ?lexeme dct:language wd:Q9058 ; wikibase:lexicalCategory wd:Q1084 ; - wikibase:lemma ?nomSingular . + wikibase:lemma ?nominativeSingular . # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } diff --git a/src/scribe_data/language_data_extraction/Slovak/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Slovak/proper_nouns/query_proper_nouns.sparql index d3f89951c..7e313d90f 100644 --- a/src/scribe_data/language_data_extraction/Slovak/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/proper_nouns/query_proper_nouns.sparql @@ -5,7 +5,6 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?properNoun - ?nomPlural ?gender WHERE { @@ -17,7 +16,7 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Slovak/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Slovak/verbs/query_verbs.sparql index 68a5a7df2..616552b35 100644 --- a/src/scribe_data/language_data_extraction/Slovak/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Slovak/verbs/query_verbs.sparql @@ -4,15 +4,11 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?infinitive + ?verb WHERE { - ?lexeme dct:language wd:Q9058 ; - wikibase:lexicalCategory wd:Q24905 . - - # MARK: Infinitive - ?lexeme ontolex:lexicalForm ?infinitiveForm . - ?infinitiveForm ontolex:representation ?infinitive ; - wikibase:grammaticalFeature wd:Q179230 ; + ?lexeme dct:language wd:Q9058 ; + wikibase:lexicalCategory wd:Q24905 ; + wikibase:lemma ?verb . } diff --git a/src/scribe_data/language_data_extraction/Spanish/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Spanish/adjectives/query_adjectives.sparql index 1609e95eb..72a035d5e 100644 --- a/src/scribe_data/language_data_extraction/Spanish/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/adjectives/query_adjectives.sparql @@ -5,14 +5,14 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?adjective - ?femSingular - ?femSingularSuperlative - ?femPlural - ?femPluralSuperlative - ?masSingular - ?masSingularSuperlative - ?masPlural - ?masPluralSuperlative + ?feminineSingular + ?feminineSingularSuperlative + ?femininePlural + ?femininePluralSuperlative + ?masculineSingular + ?masculineSingularSuperlative + ?masculinePlural + ?masculinePluralSuperlative WHERE { ?lexeme dct:language wd:Q1321 ; @@ -22,64 +22,64 @@ WHERE { # MARK: Feminine OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularForm . - ?femSingularForm ontolex:representation ?femSingular ; + ?lexeme ontolex:lexicalForm ?feminineSingularForm . + ?feminineSingularForm ontolex:representation ?feminineSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 . FILTER NOT EXISTS { - ?femSingularForm wikibase:grammaticalFeature wd:Q1817208 . + ?feminineSingularForm wikibase:grammaticalFeature wd:Q1817208 . } } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularSuperlativeForm . - ?femSingularSuperlativeForm ontolex:representation ?femSingularSuperlative ; + ?lexeme ontolex:lexicalForm ?feminineSingularSuperlativeForm . + ?feminineSingularSuperlativeForm ontolex:representation ?feminineSingularSuperlative ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q1817208 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralForm . - ?femPluralForm ontolex:representation ?femPlural ; + ?lexeme ontolex:lexicalForm ?femininePluralForm . + ?femininePluralForm ontolex:representation ?femininePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . FILTER NOT EXISTS { - ?femPluralForm wikibase:grammaticalFeature wd:Q1817208 . + ?femininePluralForm wikibase:grammaticalFeature wd:Q1817208 . } } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralSuperlativeForm . - ?femPluralSuperlativeForm ontolex:representation ?femPluralSuperlative ; + ?lexeme ontolex:lexicalForm ?femininePluralSuperlativeForm . + ?femininePluralSuperlativeForm ontolex:representation ?femininePluralSuperlative ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786, wd:Q1817208 . } # MARK: Masculine OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularForm . - ?masSingularForm ontolex:representation ?masSingular ; + ?lexeme ontolex:lexicalForm ?masculineSingularForm . + ?masculineSingularForm ontolex:representation ?masculineSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786 . FILTER NOT EXISTS { - ?masSingularForm wikibase:grammaticalFeature wd:Q1817208 . + ?masculineSingularForm wikibase:grammaticalFeature wd:Q1817208 . } } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularSuperlativeForm . - ?masSingularSuperlativeForm ontolex:representation ?masSingularSuperlative ; + ?lexeme ontolex:lexicalForm ?masculineSingularSuperlativeForm . + ?masculineSingularSuperlativeForm ontolex:representation ?masculineSingularSuperlative ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q1817208 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralForm . - ?masPluralForm ontolex:representation ?masPlural ; + ?lexeme ontolex:lexicalForm ?masculinePluralForm . + ?masculinePluralForm ontolex:representation ?masculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786 . FILTER NOT EXISTS { - ?masPluralForm wikibase:grammaticalFeature wd:Q1817208 . + ?masculinePluralForm wikibase:grammaticalFeature wd:Q1817208 . } } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralSuperlativeForm . - ?masPluralSuperlativeForm ontolex:representation ?masPluralSuperlative ; + ?lexeme ontolex:lexicalForm ?masculinePluralSuperlativeForm . + ?masculinePluralSuperlativeForm ontolex:representation ?masculinePluralSuperlative ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786, wd:Q1817208 . } } diff --git a/src/scribe_data/language_data_extraction/Spanish/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Spanish/nouns/query_nouns.sparql index 257ba4665..ec40746f6 100644 --- a/src/scribe_data/language_data_extraction/Spanish/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/nouns/query_nouns.sparql @@ -7,10 +7,10 @@ SELECT ?singular ?plural ?gender - ?masSingular - ?masPlural - ?femSingular - ?femPlural + ?masculineSingular + ?masculinePlural + ?feminineSingular + ?femininePlural WHERE { ?lexeme dct:language wd:Q1321 ; @@ -35,27 +35,27 @@ WHERE { # MARK: masculine singular and plural forms. OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularForm . - ?masSingularForm ontolex:representation ?masSingular ; + ?lexeme ontolex:lexicalForm ?masculineSingularForm . + ?masculineSingularForm ontolex:representation ?masculineSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralForm . - ?masPluralForm ontolex:representation ?masPlural ; + ?lexeme ontolex:lexicalForm ?masculinePluralForm . + ?masculinePluralForm ontolex:representation ?masculinePlural ; wikibase:grammaticalFeature wd:Q499327, wd:Q146786 . } # MARK: feminine singular and plural forms. OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularForm . - ?femSingularForm ontolex:representation ?femSingular ; + ?lexeme ontolex:lexicalForm ?feminineSingularForm . + ?feminineSingularForm ontolex:representation ?feminineSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralForm . - ?femPluralForm ontolex:representation ?femPlural ; + ?lexeme ontolex:lexicalForm ?femininePluralForm . + ?femininePluralForm ontolex:representation ?femininePlural ; wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . } diff --git a/src/scribe_data/language_data_extraction/Spanish/prepositions/query_prepositions.sparql b/src/scribe_data/language_data_extraction/Spanish/prepositions/query_prepositions.sparql index af98f940f..e1a33a4ba 100644 --- a/src/scribe_data/language_data_extraction/Spanish/prepositions/query_prepositions.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/prepositions/query_prepositions.sparql @@ -10,5 +10,5 @@ WHERE { ?lexeme dct:language wd:Q1321 ; wikibase:lexicalCategory wd:Q4833830 ; wikibase:lemma ?preposition ; - FILTER(lang(?preposition) = "es") . + FILTER(lang(?preposition) = "es") } diff --git a/src/scribe_data/language_data_extraction/Spanish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Spanish/proper_nouns/query_proper_nouns.sparql index e3966e4b7..3197d13b7 100644 --- a/src/scribe_data/language_data_extraction/Spanish/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/proper_nouns/query_proper_nouns.sparql @@ -7,10 +7,10 @@ SELECT ?singular ?plural ?gender - ?masSingular - ?masPlural - ?femSingular - ?femPlural + ?masculineSingular + ?masculinePlural + ?feminineSingular + ?femininePlural WHERE { ?lexeme dct:language wd:Q1321 ; @@ -22,42 +22,42 @@ WHERE { OPTIONAL { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; - wikibase:grammaticalFeature wd:Q146786 ; - } . + wikibase:grammaticalFeature 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. OPTIONAL { - ?lexeme ontolex:lexicalForm ?masSingularForm . - ?masSingularForm ontolex:representation ?masSingular ; - wikibase:grammaticalFeature wd:Q499327, wd:Q110786 ; - } . + ?lexeme ontolex:lexicalForm ?masculineSingularForm . + ?masculineSingularForm ontolex:representation ?masculineSingular ; + wikibase:grammaticalFeature wd:Q499327, wd:Q110786 . + } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masPluralForm . - ?masPluralForm ontolex:representation ?masPlural ; - wikibase:grammaticalFeature wd:Q499327, wd:Q146786 ; - } . + ?lexeme ontolex:lexicalForm ?masculinePluralForm . + ?masculinePluralForm ontolex:representation ?masculinePlural ; + wikibase:grammaticalFeature wd:Q499327, wd:Q146786 . + } # MARK: feminine singular and plural forms. OPTIONAL { - ?lexeme ontolex:lexicalForm ?femSingularForm . - ?femSingularForm ontolex:representation ?femSingular ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 ; - } . + ?lexeme ontolex:lexicalForm ?feminineSingularForm . + ?feminineSingularForm ontolex:representation ?feminineSingular ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q110786 . + } OPTIONAL { - ?lexeme ontolex:lexicalForm ?femPluralForm . - ?femPluralForm ontolex:representation ?femPlural ; - wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 ; - } . + ?lexeme ontolex:lexicalForm ?femininePluralForm . + ?femininePluralForm ontolex:representation ?femininePlural ; + wikibase:grammaticalFeature wd:Q1775415, wd:Q146786 . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_1.sparql b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_1.sparql index fddea289e..6898dbd2f 100644 --- a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_1.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_1.sparql @@ -5,8 +5,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?presFPS ?presSPS ?presTPS - ?presFPP ?presSPP ?presTPP + ?indicativePresentFirstPersonSingular + ?indicativePresentSecondPersonSingular + ?indicativePresentThirdPersonSingular + ?indicativePresentFirstPersonPlural + ?indicativePresentSecondPersonPlural + ?indicativePresentThirdPersonPlural WHERE { @@ -20,45 +24,39 @@ WHERE { # MARK: Present - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPSForm . - ?presFPSForm ontolex:representation ?presFPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonSingularForm . + ?indicativePresentFirstPersonSingularForm ontolex:representation ?indicativePresentFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q682111, wd:Q192613 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPSForm . - ?presSPSForm ontolex:representation ?presSPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonSingularForm . + ?indicativePresentSecondPersonSingularForm ontolex:representation ?indicativePresentSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q682111, wd:Q192613 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPSForm . - ?presTPSForm ontolex:representation ?presTPS ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonSingularForm . + ?indicativePresentThirdPersonSingularForm ontolex:representation ?indicativePresentThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q682111, wd:Q192613 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presFPPForm . - ?presFPPForm ontolex:representation ?presFPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentFirstPersonPluralForm . + ?indicativePresentFirstPersonPluralForm ontolex:representation ?indicativePresentFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q682111, wd:Q192613 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presSPPForm . - ?presSPPForm ontolex:representation ?presSPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentSecondPersonPluralForm . + ?indicativePresentSecondPersonPluralForm ontolex:representation ?indicativePresentSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q682111, wd:Q192613 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?presTPPForm . - ?presTPPForm ontolex:representation ?presTPP ; + ?lexeme ontolex:lexicalForm ?indicativePresentThirdPersonPluralForm . + ?indicativePresentThirdPersonPluralForm ontolex:representation ?indicativePresentThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q682111, wd:Q192613 . } } diff --git a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_2.sparql b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_2.sparql index 9fe523a28..15ef7a1c5 100644 --- a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_2.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_2.sparql @@ -5,8 +5,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?pretFPS ?pretSPS ?pretTPS - ?pretFPP ?pretSPP ?pretTPP + ?preteriteFirstPersonSingular + ?preteriteSecondPersonSingular + ?preteriteThirdPersonSingular + ?preteriteFirstPersonPlural + ?preteriteSecondPersonPlural + ?preteriteThirdPersonPlural WHERE { ?lexeme dct:language wd:Q1321 ; @@ -19,45 +23,39 @@ WHERE { # MARK: Preterite - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPSForm . - ?pretFPSForm ontolex:representation ?pretFPS ; + ?lexeme ontolex:lexicalForm ?preteriteFirstPersonSingularForm . + ?preteriteFirstPersonSingularForm ontolex:representation ?preteriteFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q442485 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPSForm . - ?pretSPSForm ontolex:representation ?pretSPS ; + ?lexeme ontolex:lexicalForm ?preteriteSecondPersonSingularForm . + ?preteriteSecondPersonSingularForm ontolex:representation ?preteriteSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q442485 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPSForm . - ?pretTPSForm ontolex:representation ?pretTPS ; + ?lexeme ontolex:lexicalForm ?preteriteThirdPersonSingularForm . + ?preteriteThirdPersonSingularForm ontolex:representation ?preteriteThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q442485 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretFPPForm . - ?pretFPPForm ontolex:representation ?pretFPP ; + ?lexeme ontolex:lexicalForm ?preteriteFirstPersonPluralForm . + ?preteriteFirstPersonPluralForm ontolex:representation ?preteriteFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q442485 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretSPPForm . - ?pretSPPForm ontolex:representation ?pretSPP ; + ?lexeme ontolex:lexicalForm ?preteriteSecondPersonPluralForm . + ?preteriteSecondPersonPluralForm ontolex:representation ?preteriteSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q442485 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?pretTPPForm . - ?pretTPPForm ontolex:representation ?pretTPP ; + ?lexeme ontolex:lexicalForm ?preteriteThirdPersonPluralForm . + ?preteriteThirdPersonPluralForm ontolex:representation ?preteriteThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q442485 . } } diff --git a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_3.sparql b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_3.sparql index 92c91960c..514841b7b 100644 --- a/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_3.sparql +++ b/src/scribe_data/language_data_extraction/Spanish/verbs/query_verbs_3.sparql @@ -5,8 +5,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?infinitive - ?impFPS ?impSPS ?impTPS - ?impFPP ?impSPP ?impTPP + ?pastImperfectFirstPersonSingular + ?pastImperfectSecondPersonSingular + ?pastImperfectThirdPersonSingular + ?pastImperfectFirstPersonPlural + ?pastImperfectSecondPersonPlural + ?pastImperfectThirdPersonPlural WHERE { ?lexeme dct:language wd:Q1321 ; @@ -19,45 +23,39 @@ WHERE { # MARK: Imperfect - # FPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impFPSForm . - ?impFPSForm ontolex:representation ?impFPS ; + ?lexeme ontolex:lexicalForm ?pastImperfectFirstPersonSingularForm . + ?pastImperfectFirstPersonSingularForm ontolex:representation ?pastImperfectFirstPersonSingular ; wikibase:grammaticalFeature wd:Q21714344, wd:Q110786, wd:Q12547192 . } - # SPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPSForm . - ?impSPSForm ontolex:representation ?impSPS ; + ?lexeme ontolex:lexicalForm ?pastImperfectSecondPersonSingularForm . + ?pastImperfectSecondPersonSingularForm ontolex:representation ?pastImperfectSecondPersonSingular ; wikibase:grammaticalFeature wd:Q51929049, wd:Q110786, wd:Q12547192 . } - # TPS OPTIONAL { - ?lexeme ontolex:lexicalForm ?impTPSForm . - ?impTPSForm ontolex:representation ?impTPS ; + ?lexeme ontolex:lexicalForm ?pastImperfectThirdPersonSingularForm . + ?pastImperfectThirdPersonSingularForm ontolex:representation ?pastImperfectThirdPersonSingular ; wikibase:grammaticalFeature wd:Q51929074, wd:Q110786, wd:Q12547192 . } - # FPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impFPPForm . - ?impFPPForm ontolex:representation ?impFPP ; + ?lexeme ontolex:lexicalForm ?pastImperfectFirstPersonPluralForm . + ?pastImperfectFirstPersonPluralForm ontolex:representation ?pastImperfectFirstPersonPlural ; wikibase:grammaticalFeature wd:Q21714344, wd:Q146786, wd:Q12547192 . } - # SPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impSPPForm . - ?impSPPForm ontolex:representation ?impSPP ; + ?lexeme ontolex:lexicalForm ?pastImperfectSecondPersonPluralForm . + ?pastImperfectSecondPersonPluralForm ontolex:representation ?pastImperfectSecondPersonPlural ; wikibase:grammaticalFeature wd:Q51929049, wd:Q146786, wd:Q12547192 . } - # TPP OPTIONAL { - ?lexeme ontolex:lexicalForm ?impTPPForm . - ?impTPPForm ontolex:representation ?impTPP ; + ?lexeme ontolex:lexicalForm ?pastImperfectThirdPersonPluralForm . + ?pastImperfectThirdPersonPluralForm ontolex:representation ?pastImperfectThirdPersonPlural ; wikibase:grammaticalFeature wd:Q51929074, wd:Q146786, wd:Q12547192 . } } diff --git a/src/scribe_data/language_data_extraction/Swahili/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Swahili/nouns/query_nouns.sparql index 8846fdb51..6a86a7517 100644 --- a/src/scribe_data/language_data_extraction/Swahili/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Swahili/nouns/query_nouns.sparql @@ -19,6 +19,6 @@ WHERE { ?lexeme ontolex:lexicalForm ?pluralForm . ?pluralForm ontolex:representation ?plural ; wikibase:grammaticalFeature wd:Q146786 . - FILTER(lang(?plural) = "sw") . + FILTER(lang(?plural) = "sw") } } diff --git a/src/scribe_data/language_data_extraction/Swedish/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Swedish/nouns/query_nouns.sparql index 0af103c0b..d49206311 100644 --- a/src/scribe_data/language_data_extraction/Swedish/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Swedish/nouns/query_nouns.sparql @@ -4,14 +4,14 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomIndefSingular - ?nomIndefPlural - ?genIndefSingular - ?genIndefPlural - ?nomDefSingular - ?nomDefPlural - ?genDefSingular - ?genDefPlural + ?nominativeIndefiniteSingular + ?nominativeIndefinitePlural + ?genitiveIndefiniteSingular + ?genitiveIndefinitePlural + ?nominativeDefiniteSingular + ?nominativeDefinitePlural + ?genitiveDefiniteSingular + ?genitiveDefinitePlural ?gender WHERE { @@ -21,48 +21,52 @@ WHERE { # MARK: Indefinite OPTIONAL { - # Nominative Singular - ?lexeme ontolex:lexicalForm ?nomIndefSingularForm . - ?nomIndefSingularForm ontolex:representation ?nomIndefSingular ; + ?lexeme ontolex:lexicalForm ?nominativeIndefiniteSingularForm . + ?nominativeIndefiniteSingularForm ontolex:representation ?nominativeIndefiniteSingular ; wikibase:grammaticalFeature wd:Q53997857, wd:Q131105, wd:Q110786 . + } - # Nominative Plural - ?lexeme ontolex:lexicalForm ?nomIndefPluralForm . - ?nomIndefPluralForm ontolex:representation ?nomIndefPlural ; + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeIndefinitePluralForm . + ?nominativeIndefinitePluralForm ontolex:representation ?nominativeIndefinitePlural ; wikibase:grammaticalFeature wd:Q53997857, wd:Q131105, wd:Q146786 . + } - # Genitive Singular - ?lexeme ontolex:lexicalForm ?genIndefSingularForm . - ?genIndefSingularForm ontolex:representation ?genIndefSingular ; + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveIndefiniteSingularForm . + ?genitiveIndefiniteSingularForm ontolex:representation ?genitiveIndefiniteSingular ; wikibase:grammaticalFeature wd:Q53997857, wd:Q146233, wd:Q110786 . + } - # Genitive Plural - ?lexeme ontolex:lexicalForm ?genIndefPluralForm . - ?genIndefPluralForm ontolex:representation ?genIndefPlural ; + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveIndefinitePluralForm . + ?genitiveIndefinitePluralForm ontolex:representation ?genitiveIndefinitePlural ; wikibase:grammaticalFeature wd:Q53997857, wd:Q146233, wd:Q146786 . } # MARK: Definite OPTIONAL { - # Nominative Singular - ?lexeme ontolex:lexicalForm ?nomDefSingularForm . - ?nomDefSingularForm ontolex:representation ?nomDefSingular ; + ?lexeme ontolex:lexicalForm ?nominativeDefiniteSingularForm . + ?nominativeDefiniteSingularForm ontolex:representation ?nominativeDefiniteSingular ; wikibase:grammaticalFeature wd:Q53997851, wd:Q131105, wd:Q110786 . + } - # Nominative Plural - ?lexeme ontolex:lexicalForm ?nomDefPluralForm . - ?nomDefPluralForm ontolex:representation ?nomDefPlural ; + OPTIONAL { + ?lexeme ontolex:lexicalForm ?nominativeDefinitePluralForm . + ?nominativeDefinitePluralForm ontolex:representation ?nominativeDefinitePlural ; wikibase:grammaticalFeature wd:Q53997851, wd:Q131105, wd:Q146786 . + } - # Genitive Singular - ?lexeme ontolex:lexicalForm ?genDefSingularForm . - ?genDefSingularForm ontolex:representation ?genDefSingular ; + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveDefiniteSingularForm . + ?genitiveDefiniteSingularForm ontolex:representation ?genitiveDefiniteSingular ; wikibase:grammaticalFeature wd:Q53997851, wd:Q146233, wd:Q110786 . + } - # Genitive Plural - ?lexeme ontolex:lexicalForm ?genDefPluralForm . - ?genDefPluralForm ontolex:representation ?genDefPlural ; + OPTIONAL { + ?lexeme ontolex:lexicalForm ?genitiveDefinitePluralForm . + ?genitiveDefinitePluralForm ontolex:representation ?genitiveDefinitePlural ; wikibase:grammaticalFeature wd:Q53997851, wd:Q146233, wd:Q146786 . } diff --git a/src/scribe_data/language_data_extraction/Swedish/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Swedish/proper_nouns/query_proper_nouns.sparql index 399f09d09..de285e243 100644 --- a/src/scribe_data/language_data_extraction/Swedish/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Swedish/proper_nouns/query_proper_nouns.sparql @@ -16,7 +16,7 @@ WHERE { OPTIONAL { ?lexeme wdt:P5185 ?nounGender . - } . + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". diff --git a/src/scribe_data/language_data_extraction/Swedish/verbs/query_verbs.sparql b/src/scribe_data/language_data_extraction/Swedish/verbs/query_verbs.sparql index b06a131ff..f65f45b98 100644 --- a/src/scribe_data/language_data_extraction/Swedish/verbs/query_verbs.sparql +++ b/src/scribe_data/language_data_extraction/Swedish/verbs/query_verbs.sparql @@ -18,8 +18,7 @@ WHERE { # Infinitive ?lexeme ontolex:lexicalForm ?activeInfinitiveForm . ?activeInfinitiveForm ontolex:representation ?activeInfinitive ; - wikibase:grammaticalFeature wd:Q1317831 ; - wikibase:grammaticalFeature wd:Q179230 . + wikibase:grammaticalFeature wd:Q1317831, wd:Q179230 . # Imperative OPTIONAL { diff --git a/src/scribe_data/language_data_extraction/Tajik/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Tajik/adjectives/query_adjectives.sparql new file mode 100644 index 000000000..fe64a1935 --- /dev/null +++ b/src/scribe_data/language_data_extraction/Tajik/adjectives/query_adjectives.sparql @@ -0,0 +1,13 @@ +# tool: scribe-data +# All Tajik (Q9260) adjectives (Q34698) and the given forms. +# Enter this query at https://query.wikidata.org/. + +SELECT DISTINCT + (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) + ?adjective + +WHERE { + ?lexeme dct:language wd:Q9260 ; + wikibase:lexicalCategory wd:Q34698 ; + wikibase:lemma ?adjective . +} diff --git a/src/scribe_data/language_data_extraction/Tamil/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Tamil/adjectives/query_adjectives.sparql index fe2c97309..d5bb42538 100644 --- a/src/scribe_data/language_data_extraction/Tamil/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Tamil/adjectives/query_adjectives.sparql @@ -10,6 +10,5 @@ WHERE { ?lexeme dct:language wd:Q5885 ; wikibase:lexicalCategory wd:Q34698 ; wikibase:lemma ?adjective . - - FILTER(lang(?adjective) = "ta") + FILTER(lang(?adjective) = "ta") } diff --git a/src/scribe_data/language_data_extraction/Tamil/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Tamil/nouns/query_nouns.sparql index 763389549..e186f8c6a 100644 --- a/src/scribe_data/language_data_extraction/Tamil/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Tamil/nouns/query_nouns.sparql @@ -4,8 +4,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural WHERE { ?lexeme dct:language wd:Q5885 ; @@ -14,16 +14,16 @@ WHERE { # MARK: Nominative Singular OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomSingularForm . - ?nomSingularForm ontolex:representation ?nomSingular ; + ?lexeme ontolex:lexicalForm ?nominativeSingularForm . + ?nominativeSingularForm ontolex:representation ?nominativeSingular ; wikibase:grammaticalFeature wd:Q131105, wd:Q110786 . } # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } } diff --git a/src/scribe_data/language_data_extraction/Tamil/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Tamil/proper_nouns/query_proper_nouns.sparql index eea181e84..9d225f60c 100644 --- a/src/scribe_data/language_data_extraction/Tamil/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Tamil/proper_nouns/query_proper_nouns.sparql @@ -5,7 +5,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?properNoun - ?nomPlural + ?nominativePlural WHERE { ?lexeme dct:language wd:Q5885 ; @@ -15,9 +15,8 @@ WHERE { # MARK: Nominative Plural OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; - wikibase:grammaticalFeature wd:Q131105 ; - wikibase:grammaticalFeature wd:Q146786 ; - } . + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; + wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . + } } diff --git a/src/scribe_data/language_data_extraction/Ukrainian/adjectives/query_adjectives.sparql b/src/scribe_data/language_data_extraction/Ukrainian/adjectives/query_adjectives.sparql index 62f5dde64..ce6fe0d84 100644 --- a/src/scribe_data/language_data_extraction/Ukrainian/adjectives/query_adjectives.sparql +++ b/src/scribe_data/language_data_extraction/Ukrainian/adjectives/query_adjectives.sparql @@ -5,12 +5,12 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) ?lemma - ?feminineSingularNominative - ?masculineSingularNominative - ?neuterSingularNominative - ?pluralNominative - ?comparativeForm - ?superlativeForm + ?nominativeFeminineSingular + ?nominativeMasculineSingular + ?nominativeNeuterSingular + ?nominativePlural + ?comparative + ?superlative WHERE { ?lexeme dct:language wd:Q8798 ; @@ -18,38 +18,38 @@ WHERE { wikibase:lemma ?lemma . OPTIONAL { - ?lexeme ontolex:lexicalForm ?feminineSingularNominativeForm . - ?feminineSingularNominativeForm ontolex:representation ?feminineSingularNominative ; + ?lexeme ontolex:lexicalForm ?nominativeFeminineSingularForm . + ?nominativeFeminineSingularForm ontolex:representation ?nominativeFeminineSingular ; wikibase:grammaticalFeature wd:Q1775415, wd:Q110786, wd:Q131105 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?masculineSingularNominativeForm . - ?masculineSingularNominativeForm ontolex:representation ?masculineSingularNominative ; + ?lexeme ontolex:lexicalForm ?nominativeMasculineSingularForm . + ?nominativeMasculineSingularForm ontolex:representation ?nominativeMasculineSingular ; wikibase:grammaticalFeature wd:Q499327, wd:Q110786, wd:Q131105 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?neuterSingularNominativeForm . - ?neuterSingularNominativeForm ontolex:representation ?neuterSingularNominative ; + ?lexeme ontolex:lexicalForm ?nominativeNeuterSingularForm . + ?nominativeNeuterSingularForm ontolex:representation ?nominativeNeuterSingular ; wikibase:grammaticalFeature wd:Q1775461, wd:Q110786, wd:Q131105 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?pluralNominativeForm . - ?pluralNominativeForm ontolex:representation ?pluralNominative ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q146786, wd:Q131105 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?comparativeFormForm . - ?comparativeFormForm ontolex:representation ?comparativeForm ; + ?lexeme ontolex:lexicalForm ?comparativeForm . + ?comparativeForm ontolex:representation ?comparative ; wikibase:grammaticalFeature wd:Q14169499 . } OPTIONAL { - ?lexeme ontolex:lexicalForm ?superlativeFormForm . - ?superlativeFormForm ontolex:representation ?superlativeForm ; + ?lexeme ontolex:lexicalForm ?superlativeForm . + ?superlativeForm ontolex:representation ?superlative ; wikibase:grammaticalFeature wd:Q1817208 . } } diff --git a/src/scribe_data/language_data_extraction/Ukrainian/nouns/query_nouns.sparql b/src/scribe_data/language_data_extraction/Ukrainian/nouns/query_nouns.sparql index 3fa118f0a..a7921bd83 100644 --- a/src/scribe_data/language_data_extraction/Ukrainian/nouns/query_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Ukrainian/nouns/query_nouns.sparql @@ -4,8 +4,8 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular - ?nomPlural + ?nominativeSingular + ?nominativePlural ?genitiveSingular ?dativeSingular ?accusativeSingular @@ -16,13 +16,13 @@ SELECT WHERE { ?lexeme dct:language wd:Q8798 ; wikibase:lexicalCategory wd:Q1084 ; - wikibase:lemma ?nomSingular . + wikibase:lemma ?nominativeSingular . # MARK: Nominative OPTIONAL { - ?lexeme ontolex:lexicalForm ?nomPluralForm . - ?nomPluralForm ontolex:representation ?nomPlural ; + ?lexeme ontolex:lexicalForm ?nominativePluralForm . + ?nominativePluralForm ontolex:representation ?nominativePlural ; wikibase:grammaticalFeature wd:Q131105, wd:Q146786 . } diff --git a/src/scribe_data/language_data_extraction/Ukrainian/proper_nouns/query_proper_nouns.sparql b/src/scribe_data/language_data_extraction/Ukrainian/proper_nouns/query_proper_nouns.sparql index 6685cec3e..bda6fdf67 100644 --- a/src/scribe_data/language_data_extraction/Ukrainian/proper_nouns/query_proper_nouns.sparql +++ b/src/scribe_data/language_data_extraction/Ukrainian/proper_nouns/query_proper_nouns.sparql @@ -4,7 +4,7 @@ SELECT (REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID) - ?nomSingular + ?nominativeSingular ?genitiveSingular ?dativeSingular ?accusativeSingular @@ -16,7 +16,7 @@ SELECT WHERE { ?lexeme dct:language wd:Q8798 ; wikibase:lexicalCategory wd:Q147276 ; - wikibase:lemma ?nomSingular . + wikibase:lemma ?nominativeSingular . # MARK: Genitive diff --git a/src/scribe_data/resources/language_metadata.json b/src/scribe_data/resources/language_metadata.json index 595be8bf3..e81f0165f 100755 --- a/src/scribe_data/resources/language_metadata.json +++ b/src/scribe_data/resources/language_metadata.json @@ -119,11 +119,6 @@ "iso": "ml", "qid": "Q36236" }, - "sami": { - "sub_languages": { - "northern": { "iso": "se", "qid": "Q33947" } - } - }, "norwegian": { "sub_languages": { "bokmål": { @@ -136,6 +131,10 @@ } } }, + "persian": { + "iso": "fa", + "qid": "Q9168" + }, "pidgin": { "sub_languages": { "nigerian": { @@ -168,6 +167,14 @@ "iso": "ru", "qid": "Q7737" }, + "sami": { + "sub_languages": { + "northern": { + "iso": "se", + "qid": "Q33947" + } + } + }, "slovak": { "iso": "sk", "qid": "Q9058" diff --git a/src/scribe_data/resources/lexeme_form_metadata.json b/src/scribe_data/resources/lexeme_form_metadata.json new file mode 100644 index 000000000..5e8786c61 --- /dev/null +++ b/src/scribe_data/resources/lexeme_form_metadata.json @@ -0,0 +1,432 @@ +{ + "01_case": { + "01": { + "label": "Nominative", + "qid": "Q131105" + }, + "02": { + "label": "Genitive", + "qid": "Q146233" + }, + "03": { + "label": "Dative", + "qid": "Q145599" + }, + "04": { + "label": "Accusative", + "qid": "Q146078" + }, + "05": { + "label": "Instrumental", + "qid": "Q192997" + }, + "06": { + "label": "Prepositional", + "qid": "Q2114906" + }, + "07": { + "label": "Locative", + "qid": "Q202142" + }, + "08": { + "label": "Vocative", + "qid": "Q185077" + }, + "09": { + "label": "Absolutive", + "qid": "Q332734" + }, + "10": { + "label": "Pausal", + "qid": "Q117262361" + }, + "11": { + "label": "Direct", + "qid": "Q1751855" + }, + "12": { + "label": "Oblique", + "qid": "Q1233197" + }, + "13": { + "label": "Volitive", + "qid": "Q2532941" + }, + "14": { + "label": "Ablative", + "qid": "Q156986" + }, + "15": { + "label": "Partitive", + "qid": "Q857325" + }, + "16": { + "label": "Illative", + "qid": "Q474668" + }, + "17": { + "label": "Inessive", + "qid": "Q282031" + }, + "18": { + "label": "Elative", + "qid": "Q394253" + }, + "19": { + "label": "Allative", + "qid": "Q655020" + }, + "20": { + "label": "Adessive", + "qid": "Q281954" + }, + "21": { + "label": "Translative", + "qid": "Q950170" + }, + "22": { + "label": "Terminative", + "qid": "Q747019" + }, + "23": { + "label": "Essive", + "qid": "Q148465" + }, + "24": { + "label": "Abessive", + "qid": "Q319822" + }, + "25": { + "label": "Comitative", + "qid": "Q838581" + } + }, + "02_gender": { + "01": { + "label": "Feminine", + "qid": "Q1775415" + }, + "02": { + "label": "Masculine", + "qid": "Q499327" + }, + "03": { + "label": "Inanimate", + "qid": "Q51927539" + }, + "04": { + "label": "Animate", + "qid": "Q51927507" + }, + "05": { + "label": "MasculineInanimate", + "qid": "Q52943434" + }, + "06": { + "label": "MasculineAnimate", + "qid": "Q54020116" + }, + "07": { + "label": "MasculinePersonal", + "qid": "Q27918551" + }, + "08": { + "label": "NotMasculinePersonal", + "qid": "Q54152717" + }, + "09": { + "label": "Common", + "qid": "Q1305037" + }, + "10": { + "label": "Neuter", + "qid": "Q1775461" + } + }, + "03_mood": { + "1": { + "label": "Indicative", + "qid": "Q682111" + }, + "2": { + "label": "Passive", + "qid": "Q1194697" + }, + "3": { + "label": "Active", + "qid": "Q1317831" + }, + "4": { + "label": "Imperative", + "qid": "Q22716" + }, + "5": { + "label": "Performative", + "qid": "Q124351233" + }, + "6": { + "label": "Conditional", + "qid": "Q625581" + } + }, + "04_tense": { + "01": { + "label": "Infinitive", + "qid": "Q179230" + }, + "02": { + "label": "AInfinitive", + "qid": "Q115223950" + }, + "03": { + "label": "EInfinitive", + "qid": "Q115223951" + }, + "04": { + "label": "Present", + "qid": "Q192613" + }, + "05": { + "label": "SimplePresent", + "qid": "Q3910936" + }, + "06": { + "label": "PresentInfinitive", + "qid": "Q52434245" + }, + "07": { + "label": "PresentContinuous", + "qid": "Q7240943" + }, + "08": { + "label": "Past", + "qid": "Q1994301" + }, + "09": { + "label": "SimplePast", + "qid": "Q1392475" + }, + "10": { + "label": "Preterite", + "qid": "Q442485" + }, + "11": { + "label": "Future", + "qid": "Q501405" + }, + "12": { + "label": "SimpleFuture", + "qid": "Q1475560" + }, + "13": { + "label": "Perfect", + "qid": "Q625420" + }, + "14": { + "label": "PresentPerfect", + "qid": "Q1240211" + }, + "15": { + "label": "PresentIndicative", + "qid": "Q56682909" + }, + "16": { + "label": "Imperfect", + "qid": "Q108524486" + }, + "17": { + "label": "PastImperfect", + "qid": "Q12547192" + }, + "18": { + "label": "PastPerfect", + "qid": "Q64005357" + }, + "19": { + "label": "Pluperfect", + "qid": "Q623742" + }, + "20": { + "label": "PastTransgressive", + "qid": "Q12750232" + } + }, + "05_phase": { + "1": { + "label": "IntransitivePhase", + "qid": "Q113330736" + }, + "2": { + "label": "BasicPhase", + "qid": "Q113330960" + } + }, + "06_person": { + "1": { + "label": "FirstPerson", + "qid": "Q21714344" + }, + "2": { + "label": "SecondPerson", + "qid": "Q51929049" + }, + "3": { + "label": "ThirdPerson", + "qid": "Q51929074" + }, + "4": { + "label": "Negative", + "qid": "Q15737187" + }, + "5": { + "label": "Conjunctive", + "qid": "Q2888577" + }, + "6": { + "label": "Imperfective", + "qid": "Q2898727" + }, + "7": { + "label": "Attributive", + "qid": "Q53608953" + }, + "8": { + "label": "Hypothetical", + "qid": "Q53609593" + }, + "9": { + "label": "Aorist", + "qid": "Q216497" + } + }, + "07_definiteness": { + "1": { + "label": "Indefinite", + "qid": "Q53997857" + }, + "2": { + "label": "Definite", + "qid": "Q53997851" + } + }, + "08_number": { + "01": { + "label": "Singular", + "qid": "Q110786" + }, + "02": { + "label": "Plural", + "qid": "Q146786" + }, + "03": { + "label": "Dual", + "qid": "Q110022" + }, + "04": { + "label": "Gerund", + "qid": "Q1923028" + }, + "05": { + "label": "Imperfective", + "qid": "Q54556033" + }, + "06": { + "label": "Nominalized", + "qid": "Q74674960" + }, + "07": { + "label": "Supine", + "qid": "Q548470" + }, + "08": { + "label": "Construct", + "qid": "Q1641446" + }, + "09": { + "label": "Participle", + "qid": "Q814722" + }, + "10": { + "label": "PresentParticiple", + "qid": "Q10345583" + }, + "11": { + "label": "PastParticiple", + "qid": "Q12717679" + }, + "12": { + "label": "PastParticiple", + "qid": "Q1230649" + }, + "13": { + "label": "PassiveParticiple", + "qid": "Q72249544" + }, + "14": { + "label": "ActiveParticiple", + "qid": "Q72249355" + }, + "15": { + "label": "ConjunctiveParticiple", + "qid": "Q113133303" + }, + "16": { + "label": "Adverbial", + "qid": "Q380012" + }, + "17": { + "label": "AdverbialLocation", + "qid": "Q5978303" + }, + "18": { + "label": "AdverbOfManner", + "qid": "Q113320444" + }, + "19": { + "label": "LocativeAdverb", + "qid": "Q1522423" + }, + "20": { + "label": "AbsoluteConstruction", + "qid": "Q4669807" + }, + "21": { + "label": "Phrase", + "qid": "Q187931" + }, + "22": { + "label": "FiilMudari", + "qid": "Q12230930" + }, + "23": { + "label": "Contraction", + "qid": "Q126473" + }, + "24": { + "label": "Short", + "qid": "Q4239848" + }, + "25": { + "label": "WordStem", + "qid": "Q210523" + } + }, + "09_degree": { + "1": { + "label": "Comparative", + "qid": "Q14169499" + }, + "2": { + "label": "Superlative", + "qid": "Q1817208" + }, + "3": { + "label": "Subjunctive", + "qid": "Q473746" + }, + "4": { + "label": "Positive", + "qid": "Q3482678" + } + } +} diff --git a/src/scribe_data/unicode/process_unicode.py b/src/scribe_data/unicode/process_unicode.py index 223a40fec..21f550e5f 100644 --- a/src/scribe_data/unicode/process_unicode.py +++ b/src/scribe_data/unicode/process_unicode.py @@ -2,6 +2,7 @@ Module for processing Unicode based corpuses for autosuggestion and autocompletion generation. .. raw:: html +