Skip to content

Commit

Permalink
Create prepositions.sparql (#512)
Browse files Browse the repository at this point in the history
* Create prepositions.sparql

* Put Danish prepositions query into a directory

* Change path and pkg_config_path for macOS CI build

* Set path for macOS ci build

* Set path and path_config_path as done in PyICU docs

* Try overwriting pkgconf in macOS CI build

* Trying overwriting pkgconf before installing new one

* Try just installing icu4u with assumption that pkg-conf is set

---------

Co-authored-by: Andrew Tavis McAllister <[email protected]>
  • Loading branch information
Otom-obhazi and andrewtavis authored Nov 24, 2024
1 parent 210bc6b commit 2808ae0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/python_package_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ jobs:
- name: Install PyICU dependencies
if: matrix.os == 'macos-latest'
run: |
brew bundle install --file=Brewfile
# configure PATH & PKG_CONFIG_PATH as per
# https://gitlab.pyicu.org/main/pyicu
echo "/opt/homebrew/opt/icu4c/bin:/opt/homebrew/opt/icu4c/sbin:$PATH" >> $GITHUB_PATH
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/homebrew/opt/icu4c/lib/pkgconfig" >> $GITHUB_ENV
brew install icu4c
# Configure PATH & PKG_CONFIG_PATH as in https://gitlab.pyicu.org/main/pyicu.
export PATH="$(brew --prefix)/opt/icu4c/bin:$(brew --prefix)/opt/icu4c/sbin:$PATH"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix)/opt/icu4c/lib/pkgconfig"
- name: Install Python Dependencies
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# tool: scribe-data
# All Danish (Q9035) prepositions (Q4833830) and the given forms.
# Enter this query at https://query.wikidata.org/.

SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") AS ?lexemeID)
?preposition
?case

WHERE {
?lexeme dct:language wd:Q9035 ;
wikibase:lexicalCategory wd:Q4833830 ;
wikibase:lemma ?preposition .
}

0 comments on commit 2808ae0

Please sign in to comment.