-
Notifications
You must be signed in to change notification settings - Fork 4
Schematic transform refactor #82
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
Conversation
| class_object = dict() | ||
| class_object['@type'] = 'rdfs:Class' | ||
| class_object['@id'] = sdef.definition_uri | ||
| class_object['rdfs:label'] = sdef.name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming here sdef.name is good enough since it's already CamelCased whereas the pascal_to_camel call at line 91 ensures the slot-to-property ends up being camelCased.
| prefix_context[k] = v['prefix_reference'] | ||
| return prefix_context | ||
|
|
||
| def pascal_to_camel(word): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May want to rename from pascal_to_camel to snake_to_camel.
No description provided.