Git Product home page Git Product logo

Comments (3)

ChuBL avatar ChuBL commented on August 13, 2024

This is a good point. The 0 values are rooted in the databases, and I have passed this issue on to the developing teams. Hopefully, we can eliminate these annoying 0s in future versions.

from openmindat.

ChromiteExabyte avatar ChromiteExabyte commented on August 13, 2024

For placeholders in the MySQL database, it is appropriate to replace 0 with the special datatype null or with an empty string ''. The choice depends on what is "meant" by the database

  • If a value is not known and is sure not to exist, it is most accurate to have an empty string '' as a field value.
  • If a value is not known but is presumed to exist, it is most accurate to have the NULL datatype as a field datatype.

Unknown lat/long values are most accurately NULL; while it is certain that localities have a spatial reference, it is not known for that record.

My understanding is Mindat's aim is to be a repository of mineral properties / attributes / etc first. Under "Open Geoscience Data", there are tools for "GeoCODES and "DataONE" for locality data.

Cleansing data is a key part of the data science and data handling; there are many memes regarding the subject. For now, users can script out solutions: "if lat = 0, assign NULL to lat".

Source:

MySQL Reference Manual, Section B.3.4.3 Problems with NULL Values
https://dev.mysql.com/doc/refman/8.3/en/problems-with-null.html

from openmindat.

ChuBL avatar ChuBL commented on August 13, 2024

For placeholders in the MySQL database, it is appropriate to replace 0 with the special datatype null or with an empty string ''. The choice depends on what is "meant" by the database

  • If a value is not known and is sure not to exist, it is most accurate to have an empty string '' as a field value.
  • If a value is not known but is presumed to exist, it is most accurate to have the NULL datatype as a field datatype.

Unknown lat/long values are most accurately NULL; while it is certain that localities have a spatial reference, it is not known for that record.

My understanding is Mindat's aim is to be a repository of mineral properties / attributes / etc first. Under "Open Geoscience Data", there are tools for "GeoCODES and "DataONE" for locality data.

Cleansing data is a key part of the data science and data handling; there are many memes regarding the subject. For now, users can script out solutions: "if lat = 0, assign NULL to lat".

Source:

MySQL Reference Manual, Section B.3.4.3 Problems with NULL Values https://dev.mysql.com/doc/refman/8.3/en/problems-with-null.html

Noted, thank you for the advice and reference. I will forward your message to the Mindat database administrators.

from openmindat.

Related Issues (7)

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.