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

fix issue #51 #70

Merged
merged 4 commits into from
Oct 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/update_static_data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Actualização da static-data

on:
schedule:
# Every day at 1:00 (AM) UTC
- cron: '0 1 * * *'

jobs:
run-validation-scripts:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: Run update script(s)
run: |
python "${GITHUB_WORKSPACE}/scripts/update_static_data.py"

- name: Commit file(s)
run: |
git config --local user.email "<>"
git config --local user.name "GitHub Actions"
git add static-data/
git commit -m "Update de $(date +"%Y-%m-%d")"

- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
16 changes: 16 additions & 0 deletions static-data/bibliotecas.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@
"value": "Q85726964"
}
},
{
"geo": {
"datatype": "http://www.opengis.net/ont/geosparql#wktLiteral",
"type": "literal",
"value": "Point(-8.672761 37.102272)"
},
"item": {
"type": "uri",
"value": "http://www.wikidata.org/entity/Q106542515"
},
"itemLabel": {
"type": "literal",
"value": "Antigo Posto de Turismo de Lagos",
"xml:lang": "pt"
}
},
{
"geo": {
"datatype": "http://www.opengis.net/ont/geosparql#wktLiteral",
Expand Down
32 changes: 32 additions & 0 deletions static-data/cinemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,22 @@
"xml:lang": "en"
}
},
{
"geo": {
"datatype": "http://www.opengis.net/ont/geosparql#wktLiteral",
"type": "literal",
"value": "Point(-8.396486402 41.39023659)"
},
"item": {
"type": "uri",
"value": "http://www.wikidata.org/entity/Q108909559"
},
"itemLabel": {
"type": "literal",
"value": "Teatro Narciso Ferreira",
"xml:lang": "en"
}
},
{
"geo": {
"datatype": "http://www.opengis.net/ont/geosparql#wktLiteral",
Expand Down Expand Up @@ -392,6 +408,22 @@
"xml:lang": "pt"
}
},
{
"geo": {
"datatype": "http://www.opengis.net/ont/geosparql#wktLiteral",
"type": "literal",
"value": "Point(-8.93313 39.749323)"
},
"item": {
"type": "uri",
"value": "http://www.wikidata.org/entity/Q108528250"
},
"itemLabel": {
"type": "literal",
"value": "Cine-Teatro Stephens",
"xml:lang": "pt"
}
},
{
"geo": {
"datatype": "http://www.opengis.net/ont/geosparql#wktLiteral",
Expand Down
32 changes: 32 additions & 0 deletions static-data/galerias.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,38 @@
"xml:lang": "pt"
}
},
{
"geo": {
"datatype": "http://www.opengis.net/ont/geosparql#wktLiteral",
"type": "literal",
"value": "Point(-8.672761 37.102272)"
},
"item": {
"type": "uri",
"value": "http://www.wikidata.org/entity/Q106542515"
},
"itemLabel": {
"type": "literal",
"value": "Antigo Posto de Turismo de Lagos",
"xml:lang": "pt"
}
},
{
"geo": {
"datatype": "http://www.opengis.net/ont/geosparql#wktLiteral",
"type": "literal",
"value": "Point(-8.591305 39.642579)"
},
"item": {
"type": "uri",
"value": "http://www.wikidata.org/entity/Q108438889"
},
"itemLabel": {
"type": "literal",
"value": "Cadeia de Our\u00e9m",
"xml:lang": "pt"
}
},
{
"geo": {
"datatype": "http://www.opengis.net/ont/geosparql#wktLiteral",
Expand Down