Skip to content

Conversation

@putmantime
Copy link
Collaborator

No description provided.

@putmantime putmantime marked this pull request as ready for review November 9, 2022 20:16
class_object = dict()
class_object['@type'] = 'rdfs:Class'
class_object['@id'] = sdef.definition_uri
class_object['rdfs:label'] = sdef.name

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):

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.

milen-sage
milen-sage previously approved these changes Nov 11, 2022
@putmantime putmantime merged commit 000051d into main Nov 17, 2022
@lopierra lopierra deleted the schematic-transform-refactor branch July 22, 2024 17:19
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