clulab / eidos

Machine reading system for World Modelers
Apache License 2.0
37 stars 24 forks source link

Show compositional ontology version #1021

Closed kwalcock closed 3 years ago

BeckySharp commented 3 years ago

❤️ ❤️ ❤️ good thinking

kwalcock commented 3 years ago

This is to help Two Six (and us) make sure that the newest ontology has been configured properly. It seems sometimes like jitpack is a little slow to notice changes, plus docker may make some false conclusions like when the context is the same and the command is the same, the outcome should be the same. The version number will be printed without someone having to start the reading and check the output groundings.

kwalcock commented 3 years ago

The ontology files from https://github.com/WorldModelers/Ontologies get packaged into a jar and stored like other library dependencies of eidos. They can usually be found somewhere like ~/.ivy2/cache/com.gitub.WorldModelers/Ontologies/jars (or more recently a coursier directory). Inside the jar are org/clulab/wm/eidos/english/ontologies/CompositionalOntology_v2.1_metadata.yml and .../CompositionalOntology_v2.1_metadata.properties. The latter should contain the hash code from the most recent commit that changed the ontology file. It may not be the last commit in the repo, because other files could have been changed later. The command `sbt runMain org.clulab.wm.eidos.apps.ShowOntologyVersion" should print it out. This may all need to revised if the ontology starts to change daily.

FYI @yanzv, @reynoldsm88.