Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(queries): Extend SPARQL query to extract additional Latin verb forms (issue #444) #479

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Collins-Webdev
Copy link
Contributor

Contributor checklist


  • Add support for extracting present, future, past imperfect, perfect, and pluperfect forms
  • Include grammatical features (mood, person, number) for each tense
  • Implement OPTIONAL matching to handle incomplete conjugation data
  • Add proper PREFIX declarations for all used namespaces
  • Improve query organization and readability with comments
  • Add ORDER BY clause and reasonable LIMIT for better results handling

Resolves #444

Collins-Webdev and others added 9 commits October 21, 2024 21:11
- Enhanced noun query to include definite and indefinite forms
- Updated proper noun query with definite and vocative forms
- Expanded verb query to cover past simple, present continuous, future tense, and imperative forms
- Added comments and FILTER options for both Latin and Arabic script variants
- Improved overall query structure and readability
This commit integrates the autosuggestions functionality from process_wiki.py
into the get_data function in get.py. Key changes include:

1. Import gen_autosuggestions function from scribe_data.wikipedia.process_wiki
2. Add new conditional block to handle 'autosuggestions' data type
3. Implement autosuggestions generation logic for specified languages
4. Add placeholder load_text_corpus function for future implementation

The autosuggestions block now:
- Iterates through specified languages
- Loads text corpus (placeholder function to be implemented)
- Calls gen_autosuggestions with appropriate parameters
- Sets update_local_data=True to save results
- Uses interactive mode for verbose output

This update allows CLI users to generate autosuggestions directly via
the get command, streamlining the data generation process.

Note: The load_text_corpus function needs to be implemented to load
the actual text corpus for each language before this feature is fully functional.

TODO:
- Implement load_text_corpus function
- Ensure correct file paths and imports across the project
- Add error handling for corpus loading and autosuggestions generation
- Update documentation to reflect new autosuggestions functionality in CLI
…orms

- Add support for extracting present, future, past imperfect, perfect, and pluperfect forms
- Include grammatical features (mood, person, number) for each tense
- Implement OPTIONAL matching to handle incomplete conjugation data
- Add proper PREFIX declarations for all used namespaces
- Improve query organization and readability with comments
- Add ORDER BY clause and reasonable LIMIT for better results handling

Resolves scribe-org#444
Copy link

Thank you for the pull request!

The Scribe team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)

If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and Data rooms once you're in. Also consider joining our bi-weekly Saturday dev syncs. It'd be great to have you!

Maintainer checklist

  • The linting and formatting workflow within the PR checks do not indicate new errors in the files changed

  • The CHANGELOG has been updated with a description of the changes for the upcoming release and the corresponding issue (if necessary)

@Collins-Webdev
Copy link
Contributor Author

Hello @KesharwaniArpita 👋🏼,
I am not allowed to resolve conflicts here, how can I resolve this?

@KesharwaniArpita
Copy link
Contributor

@Collins-Webdev What are the conflicts?

@KesharwaniArpita
Copy link
Contributor

If its about the emoji files: Delete them from you repo
For the langua data extraction folder: Shift them in the Wikidata folder

@andrewtavis
Copy link
Member

You can also bring down the current version of main and start from there again. Might be easier :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend SPARQL Queries to Extract Additional Latin Verb Forms
3 participants