chubl / openmindat Goto Github PK
View Code? Open in Web Editor NEWA Python package for the OpenMindat API.
Home Page: https://pypi.org/project/openmindat/
License: Apache License 2.0
A Python package for the OpenMindat API.
Home Page: https://pypi.org/project/openmindat/
License: Apache License 2.0
Bug Report
Bug Type: Server
Observation:
Once the quantity of the queried item is less than the page size, the server will return a Server Error (500).
Case Study:
url1 = โhttps://api.mindat.org/geomaterials/?id__in=&lustretype=Adamantine&page_size=200โ
The query of url1 involves no more than 600 items; hence, page_size=200
is functional for the first two pages. However, the third page(https://api.mindat.org/geomaterials/?id__in=&lustretype=Adamantine&page=3&page_size=200) is not accessible.
If we increase the page_size
to exceed the total item quantity, say 800, the query (https://api.mindat.org/geomaterials/?id__in=&lustretype=Adamantine&page_size=800) will fail directly.
Hazard:
The queries involving multiple pages will fail, e.g., the geomaterials endpoint is somehow experiencing an outage.
Hello!
Thanks for the awesome work opening up this great data. The OpenMindat paper shows Mineral Occurrence records linking Mineral Species to Localities. Can end points for accessing that data be added to the API?
Hello!
The only license I currently see associated with the data under the API is the Apache license for the API access code. The OpenMindat paper suggests, however, that "We are creating a forked copy of the CC-BY-NC-SA 4.0 licence tailored specifically for these needs.". Is a copy of that license* available anywhere.
An AUP with any quota and rate guidelines would also be helpful.
*As a side note, I really do hope this licensing policy is reconsidered. It adds significant friction and limits the openness of the data significantly (see, e.g. https://ben.balter.com/2016/08/01/why-you-shouldnt-write-your-own-open-source-license/ and http://esr.ibiblio.org/?p=4559).
So far as I can tell, the library requires any requests to be saved to a file in order to retrieve the data. It would be much more helpful if results could be retrieved as a function result or, ideally, an iterable list of model objects or dicts.
api.mindat.org/locgeoregion2/
The above URL seems to be causing a heavy data query with too many items at the same time, which causes the webpage to freeze.
My use case for this API is extracting Mindat information into a GIS consumable format (probably Spatialite). The OpenMindat paper suggests that locations have "[b]oundary polygons recorded in GeoJSON." Can that be added to the API?
Best,
I've noticed that, for many fields, 0 is being used as a missing data representation. For latitude and longitude, however, this is particularly problematic, since 0N0E is a real place! (https://en.wikipedia.org/wiki/Null_Island). Testing for zero equality is also troublesome, since equality is ill-defined over floating point values (such as latitude and longitude).
Can the API return None or some other marker for these missing values instead of 0, or does the underlying data have the same ambiguity?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.