Giter Site home page Giter Site logo

openmindat's People

Contributors

chubl avatar corylc avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

quexiang corylc

openmindat's Issues

Data queries involving multiple pages might return an Internal Server Error.

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.

Mineral Occurence Endpoint

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?

Data License

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).

FEATURE REQUEST: Retrieval without writing to file

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.

Freezing URL Query for locgeoregion2

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.

GeoJSON Location Information

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,

0 used as missing data placeholder

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.