relaton / relaton-bipm

MIT License
2 stars 0 forks source link

Compilation failure upon BIPM auto-fetch reference #8

Closed manuelfuenmayor closed 3 years ago

manuelfuenmayor commented 3 years ago

I'm trying to auto-fetch this reference:

* [[[JCGM1002008,BIPM JCGM 100:2008]]], Evaluation of measurement data -- Guide to the expression of uncertainty in measurement (GUM). Joint Committee for Guides in Metrology.

and I get this message:

...

[relaton-bipm] ("BIPM JCGM 100") fetching...
C:/tools/ruby25/lib/ruby/2.5.0/uri/rfc3986_parser.rb:67:in `split': bad URI(is not URI?): https://raw.githubusercontent.com/relaton/relaton-data-bipm/master/data/jcgm 100.yaml (URI::InvalidURIError)
        from C:/tools/ruby25/lib/ruby/2.5.0/uri/rfc3986_parser.rb:73:in `parse'
        from C:/tools/ruby25/lib/ruby/2.5.0/uri/common.rb:237:in `parse'
        from C:/tools/ruby25/lib/ruby/2.5.0/uri/common.rb:743:in `URI'

...

Maybe I'm not using the correct ID?

andrew2net commented 3 years ago

@manuel489

  1. This issue was fixed in version 1.6.1 https://github.com/metanorma/bipm-si-brochure/issues/49 it isn't clear form the log which vestion do you use.
  2. The document "BIPM JCGM 100" doen't exist in the repossitory yet.
manuelfuenmayor commented 3 years ago

Hi @andrew2net

This issue was fixed in version 1.6.1 metanorma/bipm-si-brochure#49 it isn't clear form the log which vestion do you use.

My relaton-bipm version is 1.7.0

The document "BIPM JCGM 100" doen't exist in the repossitory yet.

Ok, I wanted to refer to this document. How can we auto-fetch JCGM documents?

andrew2net commented 3 years ago

This issue was fixed in version 1.6.1 metanorma/bipm-si-brochure#49 it isn't clear form the log which vestion do you use.

My relaton-bipm version is 1.7.0

@manuel489 I can't reproduce this issue. The piece of error message you provided doesn't contain the line of relaton-bipm where the error ocurs. Could you show the full text of the error message?

Ok, I wanted to refer to this document. How can we auto-fetch JCGM documents?

It needs to extract the metadata from the "BIPM JCGM" document and put it into https://github.com/relaton/relaton-data-bipm/tree/master/data as BIPM-JCGM.yaml file. Unfotunatelly I don't khow how to map the text from the document to the YAML structure. Maybe @ronaldtse knows?

manuelfuenmayor commented 3 years ago

@manuel489 I can't reproduce this issue. The piece of error message you provided doesn't contain the line of relaton-bipm where the error ocurs. Could you show the full text of the error message?

You are right! I was compiling with relaton-bipm 1.5.0 indeed. Sorry, I thought I was using 1.7.0 because it is listed in my gem list. I performed a bundle update and no issues now. Thanks @andrew2net ! Closing.

ronaldtse commented 3 years ago

Has the failure has actually been resolved? @andrew2net says that the "JCGM 100" document is not available via auto-fetch.

JCGM is technically a different organization than BIPM (BIPM is the secretariat of JCGM, JCGM is a coordination entity that has 8 members). JCGM also only has a handful of 6 documents. They will need some modeling although they mostly map to ISO structure.

In order to make JCGM documents citable we need to include them in something like relaton-bipm or relaton-jcgm (a similar decision is to be done for Metanorma, too). Perhaps easier to have them in relaton-bipm? Thoughts @andrew2net ?

manuelfuenmayor commented 3 years ago

Has the failure has actually been resolved?

I'm not getting the compilation failure anymore. But, the Normative references section (where the citations are) is not showing up. I've opened a ticket for Nick in https://github.com/metanorma/metanorma-bipm/issues/88.