Skip to content

Schematic transform refactor#82

Merged
putmantime merged 16 commits into
mainfrom
schematic-transform-refactor
Nov 17, 2022
Merged

Schematic transform refactor#82
putmantime merged 16 commits into
mainfrom
schematic-transform-refactor

Conversation

@putmantime

Copy link
Copy Markdown
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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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.

2 participants