-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add get_schema and refactor some config nodes
- Loading branch information
1 parent
5a5a541
commit 20bbf5b
Showing
9 changed files
with
235 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from indykite_sdk.indykite.config.v1beta1 import config_management_api_pb2 as pb2 | ||
from indykite_sdk.model.get_schema import GetSchemaHelpers | ||
import sys | ||
import indykite_sdk.utils.logger as logger | ||
|
||
|
||
def get_schema_helpers(self): | ||
""" | ||
get knowledge graph schema helpers | ||
:param self: | ||
:return: GetSchemaHelpersResponse | ||
""" | ||
sys.excepthook = logger.handle_excepthook | ||
try: | ||
response = self.stub.GetSchemaHelpers( | ||
pb2.GetSchemaHelpersRequest() | ||
) | ||
if not response: | ||
return None | ||
return GetSchemaHelpers.deserialize(response) | ||
except Exception as exception: | ||
return logger.logger_error(exception) |
Oops, something went wrong.