Closed tomkralidis closed 6 months ago
I haven't fully figured out how the upload of TTL files to (ci).codes.wmo.int works, the script from "https://github.com/wmo-im/wmds" expects some JSON as input. On the other hand, I have figured out how to adjust makeWMDREntities.py to convert "our" CSVs. Problem is what parameters should we set in the TTL files. They are generated using a textual template that sets "identity", "notation", "label" and "description". So far I have used "Name" for all of them except "description", where I have used "Description" column. But I have no idea where to put our "Source" column.
Oh, only now have I noticed that @antje-s has created branch csv2registry
, I am going to check what is new there.
OK, so she went further than me. Her version of the script puts "Source" into "skos:related" and she made custom versions of other WMDS scripts too.
Great work here! Note that if the source column is not empty, this means that the codelist value is from an upstream controlled vocabulary. In which case we should use owl:sameAs
instead.
Notes from 2024-02-07 meeting with @antje-s / @josusky
owl:sameAs
and skos:exactMatch
or the URL in the concept templatemain
branch, but a branch called publication
Next meeting is on 2024-02-09.
Updated after our meeting today:
I think we need for PR from csv2registry branch: 1).github/workflows/generateTTLandCommit.yml 2)scripts/makeWCMP2Entities.py 3)codelists/wcmp2-tables.csv
Many thanks for all the support, I have learned a lot again @josusky: if you want me to do anything further, please let me know
Next steps:
Implemented in #8. Excellent work @antje-s and @josusky ! Thank you for landing this so quickly.
The plan is to publish everything to the public codes.wmo.int registry with a status of experimental at the beginning of March. This will ensure that all of the links are active when members are reviewing the documents.
PR update in #10 (see Notes
section for required clarifications). Request for clarifications will be sent via email.
Copying notes here for next steps:
@tomkralidis
@david-i-berry suggests using something different than owl:sameAs when the code and definition are copied from another source. two ideas: https://www.w3.org/TR/rdf-schema/#ch_isdefinedby or https://www.dublincore.org/specifications/dublin-core/dcmi-terms/elements11/source/
2024-03-11
Actions:
owl:sameAs
to rdfs:isDefinedBy
(https://github.com/wmo-im/wcmp2-codelists/blob/main/scripts/codelists2ttl.py)Update: this should be ready for publication to codes.wmo.int proper. @amilan17 let us know if this is successful, at which point we can close this issue.
Note that the authenticate part of upload_changes needs to be modified to use port 443 at:
i.e.
url = f'{base_url}:443/system/security/apilogin'
Thanks @david-i-berry. The result is the same whether 443 is explicitly set or not.
I agree with @tomkralidis, port 443 is default for HTTPS. Only if a non-standard port, let say 8181 is used, it needs to be explicitly set.
I was able to upload AFTER removing the global-service-type TTLs. For some reason, the software does not accept those, but the TTLS are identical to the accepted TTLS accept for the content referring to global-service-type... ?!
Hi Anna,
I am checking the issue with global-service type sub-register, the server is responding with with an internal error when I try to GET (read) the resource: $ curl https://ci.codes.wmo.int/wis/global-service-type/
Cannot invoke "com.epimorphics.registry.core.Description.getRoot()" because the return value of "com.epimorphics.registry.store.StoreAPI.getCurrentVersion (String)" is null
I will try to remove this sub-register and retry.
JanO
On Thu, Mar 28, 2024 at 4:13 PM Anna Milan @.***> wrote:
I was able to upload AFTER removing the global-service-type TTLs. For some reason, the software does not accept those, but the TTLS are identical to the accepted TTLS accept for the content referring to global-service-type... ?!
— Reply to this email directly, view it on GitHub https://github.com/wmo-im/wcmp2-codelists/issues/6#issuecomment-2025467861, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFS4LF6LXUEVD4SDF5SDHW3Y2QQR3AVCNFSM6AAAAABCVCN44OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRVGQ3DOOBWGE . You are receiving this because you were mentioned.Message ID: @.***>
Yes, I get the same error when trying to upload
ValueError: Cannot upload to https://ci.codes.wmo.int/wis/global-service-type: 500 : Cannot invoke "com.epimorphics.registry.core.Description.getRoot()" because the return value of "com.epimorphics.registry.store.StoreAPI.getCurrentVersion(String)" is null
I am afraid that the removal of sub-register did not help, I am still getting the internal server error.
On Thu, Mar 28, 2024 at 4:31 PM Anna Milan @.***> wrote:
Yes, I get the same error when trying to upload
ValueError: Cannot upload to https://ci.codes.wmo.int/wis/global-service-type: 500 : Cannot invoke "com.epimorphics.registry.core.Description.getRoot()" because the return value of "com.epimorphics.registry.store.StoreAPI.getCurrentVersion(String)" is null
— Reply to this email directly, view it on GitHub https://github.com/wmo-im/wcmp2-codelists/issues/6#issuecomment-2025506050, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFS4LF76Q5O6JJJOZZDSYE3Y2QSTRAVCNFSM6AAAAABCVCN44OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRVGUYDMMBVGA . You are receiving this because you were mentioned.Message ID: @.***>
The error message changed a bit over the weekend, now it reveals less of the internal information, but it is still an "Internal Server Error". I don't think we can fix this from our side. @amilan17 could you please contact the server administrator and request help?
BTW, I have created a register "wis2" (https://ci.codes.wmo.int/wis2) and successfully uploaded all codes to it.
@josusky how did you manage to successfully upload all codes? The error didn't prevent that on the wis2 registry?
It seems that the problem somehow related to the wis
register.
Codelists are now published to https://codes.wmo.int/ with the status of Experimental.
Examples: