Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[knowledge base] Case-sensitive VAL #7

Merged
merged 1 commit into from
Mar 22, 2020

Conversation

alex-mitrevski
Copy link
Member

Description

This PR simply prevents VAL from changing the case of domain attributes.

Why is this necessary?

I noticed this was happening while working on b-it-bots/mas_knowledge_base#15. In our ontology, object properties are written in mixed case (following the naming conventions at http://wiki.opensemanticframework.org/index.php/Ontology_Best_Practices). For the export of the ontology to work as expected, the case of the predicates in our domestic planning domain had to be adapted as well; however, after changing the case, I noticed that the names of the predicates are converted to lower case when the domain is parsed (e.g. defaultStoringLocation to defaultstoringlocation). This meant that predicate data could not be retrieved afterwards since property assertions are inserted into the knowledge base with the original case of the property name.

This problem is avoided by removing the lower case conversion that was done in VAL since predicates keep their original case now.

@DharminB Will your planning pipeline be affected by this change? As far as I can see, you use snake case in the industrial domain, so I don't think it will be, but just to make sure.

@DharminB
Copy link
Member

DharminB commented Mar 21, 2020

Nope. I don't think it'll affect at work pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants