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

citation-generator #39

Open
zoometh opened this issue Nov 13, 2023 · 4 comments
Open

citation-generator #39

zoometh opened this issue Nov 13, 2023 · 4 comments

Comments

@zoometh
Copy link
Member

zoometh commented Nov 13, 2023

Information relative to the automatic deposit of EAMENA dataset in Zenodo

Reference string

image

Dates

image

Contributor

image

Award

image

@zoometh
Copy link
Member Author

zoometh commented Feb 15, 2024

Issues

Current issues with the citation-generator workflow (Jupyter NB) see: https://github.com/eamena-project/eamena-arches-dev/tree/main/data/bibref#zenodo:

  • Family Name and Given name aren't separated (results: John Doe instead of Doe, John)

TODO

  • add the ORCID ref for the contributors
  • add Language of the deposit

@zoometh
Copy link
Member Author

zoometh commented Apr 16, 2024

Errors running the citation generator plugin

Examples

On EAtraining, for Churches in Palestine

image

ValueError at /citations/
list.remove(x): x not in list
Request Method: POST
Request URL:  http://52.50.27.140/citations/
Django Version: 3.2.15
Exception Type: ValueError
Exception Value:  
list.remove(x): x not in list
Exception Location: /opt/arches/eamena/citations/zenodo_calculate.py, line 59, in zenodo_keywords
Python Executable:  /opt/arches/ENV/bin/python
Python Version: 3.10.12
Python Path:  
['/opt/arches',
 '/opt/arches/eamena',
 '/usr/lib/python310.zip',
 '/usr/lib/python3.10',
 '/usr/lib/python3.10/lib-dynload',
 '/opt/arches/ENV/lib/python3.10/site-packages',
 '/opt/arches/eamena/eamena']
Server time:  Tue, 16 Apr 2024 03:58:20 -0500

A try/catch error has fixed this error

@zoometh
Copy link
Member Author

zoometh commented Apr 25, 2024

With https://database.eamena.org/api/search/export_results?paging-filter=1&tiles=true&format=geojson&reportlink=false&precision=6&total=4&map-filter=%7B%22type%22%3A%22FeatureCollection%22%2C%22features%22%3A%5B%7B%22id%22%3A%22a64f6ad595c820ca90ce33f0a93dfe96%22%2C%22type%22%3A%22Feature%22%2C%22properties%22%3A%7B%22buffer%22%3A%7B%22width%22%3A10%2C%22unit%22%3A%22m%22%7D%2C%22inverted%22%3Afalse%7D%2C%22geometry%22%3A%7B%22coordinates%22%3A%5B%5B%5B36.657985028948474%2C30.843280429857245%5D%2C%5B36.620431433081166%2C30.733213597527282%5D%2C%5B37.6211243112098%2C30.535537396105028%5D%2C%5B37.996660269882994%2C30.47844043283655%5D%2C%5B38.00991448018945%2C30.552659945723107%5D%2C%5B36.657985028948474%2C30.843280429857245%5D%5D%5D%2C%22type%22%3A%22Polygon%22%7D%7D%5D%7D&advanced-search=%5B%7B%22op%22%3A%22and%22%2C%2234cfea58-c2c0-11ea-9026-02e7594ce0a0%22%3A%7B%22op%22%3A%22%22%2C%22val%22%3A%223f6fc20d-c2a8-4291-b536-046a034e0be9%22%7D%2C%2234cfea44-c2c0-11ea-9026-02e7594ce0a0%22%3A%7B%22op%22%3A%22%22%2C%22val%22%3A%22%22%7D%7D%5D&resource-type-filter=%5B%7B%22graphid%22%3A%2234cfe98e-c2c0-11ea-9026-02e7594ce0a0%22%2C%22name%22%3A%22Heritage%20Place%22%2C%22inverted%22%3Afalse%7D%5D
(A lost campaign - Mickael Fradley paper dataset)

Plugin

image

JSONDecodeError at /citations/
Expecting value: line 2 column 1 (char 1)
Request Method: POST
Request URL:  http://52.50.27.140/citations/
Django Version: 3.2.15
Exception Type: JSONDecodeError
Exception Value:  
Expecting value: line 2 column 1 (char 1)
Exception Location: /opt/arches/ENV/lib/python3.10/site-packages/requests/models.py, line 975, in json
Python Executable:  /opt/arches/ENV/bin/python
Python Version: 3.10.12
Python Path:  
['/opt/arches',
 '/opt/arches/eamena',
 '/usr/lib/python310.zip',
 '/usr/lib/python3.10',
 '/usr/lib/python3.10/lib-dynload',
 '/opt/arches/ENV/lib/python3.10/site-packages',
 '/opt/arches/eamena/eamena']
Server time:  Thu, 25 Apr 2024 07:19:45 -0500]

Jupyter NB

ValueError: list.remove(x): x not in list

image
image

✔️ try/catch

@zoometh
Copy link
Member Author

zoometh commented Jun 11, 2024

Qanats - Khorasan

Server Error

Search URL

https://database.eamena.org/api/search/export_results?paging-filter=1&tiles=true&format=geojson&reportlink=false&precision=6&total=1043&term-filter=%5B%7B%22context%22%3A%22%22%2C%22context_label%22%3A%22Heritage%20Place%20-%20Resource%20Name%22%2C%22id%22%3A1%2C%22text%22%3A%22Qanat%22%2C%22type%22%3A%22term%22%2C%22value%22%3A%22Qanat%22%2C%22inverted%22%3Afalse%7D%5D&language=*&map-filter=%7B%22type%22%3A%22FeatureCollection%22%2C%22features%22%3A%5B%7B%22id%22%3A%22dac84bbc779ba46ceaa1867684b782fd%22%2C%22type%22%3A%22Feature%22%2C%22properties%22%3A%7B%22buffer%22%3A%7B%22width%22%3A10%2C%22unit%22%3A%22m%22%7D%2C%22inverted%22%3Afalse%7D%2C%22geometry%22%3A%7B%22coordinates%22%3A%5B%5B%5B40.61167046504056%2C41.58674434604106%5D%2C%5B40.83420196970704%2C21.8201701079996%5D%2C%5B66.20279350168977%2C21.8201701079996%5D%2C%5B64.71925013724564%2C41.97394223524526%5D%2C%5B40.61167046504056%2C41.58674434604106%5D%5D%5D%2C%22type%22%3A%22Polygon%22%7D%7D%5D%7D&resource-type-filter=%5B%7B%22graphid%22%3A%2234cfe98e-c2c0-11ea-9026-02e7594ce0a0%22%2C%22name%22%3A%22Heritage%20Place%22%2C%22inverted%22%3Afalse%7D%5D

GeoJSON URL

https://database.eamena.org/api/search/export_results?paging-filter=1&tiles=true&format=geojson&reportlink=false&precision=6&total=1043&term-filter=%5B%7B%22context%22%3A%22%22%2C%22context_label%22%3A%22Heritage%20Place%20-%20Resource%20Name%22%2C%22id%22%3A1%2C%22text%22%3A%22Qanat%22%2C%22type%22%3A%22term%22%2C%22value%22%3A%22Qanat%22%2C%22inverted%22%3Afalse%7D%5D&language=*&map-filter=%7B%22type%22%3A%22FeatureCollection%22%2C%22features%22%3A%5B%7B%22id%22%3A%22dac84bbc779ba46ceaa1867684b782fd%22%2C%22type%22%3A%22Feature%22%2C%22properties%22%3A%7B%22buffer%22%3A%7B%22width%22%3A10%2C%22unit%22%3A%22m%22%7D%2C%22inverted%22%3Afalse%7D%2C%22geometry%22%3A%7B%22coordinates%22%3A%5B%5B%5B40.61167046504056%2C41.58674434604106%5D%2C%5B40.83420196970704%2C21.8201701079996%5D%2C%5B66.20279350168977%2C21.8201701079996%5D%2C%5B64.71925013724564%2C41.97394223524526%5D%2C%5B40.61167046504056%2C41.58674434604106%5D%5D%5D%2C%22type%22%3A%22Polygon%22%7D%7D%5D%7D&resource-type-filter=%5B%7B%22graphid%22%3A%2234cfe98e-c2c0-11ea-9026-02e7594ce0a0%22%2C%22name%22%3A%22Heritage%20Place%22%2C%22inverted%22%3Afalse%7D%5D

image

image

⬇️

Server Error (500)

✔️ there's a 1,000 character limit in the plugin URL box, the GeoJSON URL is truncated (in green)
image

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

No branches or pull requests

1 participant