diff --git a/src/scribe_data/check/check_query_identifiers.py b/src/scribe_data/check/check_query_identifiers.py index 4a984be65..14c151267 100644 --- a/src/scribe_data/check/check_query_identifiers.py +++ b/src/scribe_data/check/check_query_identifiers.py @@ -31,10 +31,6 @@ def extract_qid_from_sparql(file_path: Path, pattern: str) -> str: FileNotFoundError If the specified file does not exist. - Example - ------- - > extract_qid_from_sparql(Path("path/to/query.sparql"), r"\?lexeme dct:language wd:Q\d+") - 'Q123456' """ try: with open(file_path, "r", encoding="utf-8") as file: @@ -155,5 +151,5 @@ def is_valid_data_type(query_file: Path, data_type_qid: str) -> bool: return data_type_qid == expected_data_type_qid -if __name__ == "__main__": - check_queries() +# if __name__ == "__main__": +check_queries() diff --git a/src/scribe_data/resources/language_metadata.json b/src/scribe_data/resources/language_metadata.json index 7ab2145bf..7c6840457 100755 --- a/src/scribe_data/resources/language_metadata.json +++ b/src/scribe_data/resources/language_metadata.json @@ -75,6 +75,10 @@ } } }, + "igbo":{ + "iso":"ig", + "qid": "Q33578" + }, "indonesian": { "iso": "id", "qid": "Q9240" @@ -87,6 +91,10 @@ "iso": "ja", "qid": "Q5287" }, + "korean":{ + "iso":"ko", + "qid":"Q9176" + }, "kurmanji": { "iso": "kmr", "qid": "Q36163" diff --git a/tests/cli/test_list.py b/tests/cli/test_list.py index a15ec5c90..fc607dec3 100644 --- a/tests/cli/test_list.py +++ b/tests/cli/test_list.py @@ -58,9 +58,11 @@ def test_list_languages(self, mock_print): call("Hausa ha Q56475 "), call("Hebrew he Q9288 "), call("Hindi hi Q11051 "), + call("Igbo ig Q33578 "), call("Indonesian id Q9240 "), call("Italian it Q652 "), call("Japanese ja Q5287 "), + call("Korean ko Q9176 "), call("Kurmanji kmr Q36163 "), call("Latin la Q397 "), call("Malay ms Q9237 "), @@ -200,9 +202,11 @@ def test_list_languages_for_data_type_valid(self, mock_print): call("Hebrew he Q9288 "), call("Hindustani/hindi hi Q11051 "), call("Hindustani/urdu ur Q11051 "), + call("Igbo ig Q33578 "), call("Indonesian id Q9240 "), call("Italian it Q652 "), call("Japanese ja Q5287 "), + call("Korean ko Q9176 "), call("Kurmanji kmr Q36163 "), call("Latin la Q397 "), call("Malay ms Q9237 "),