Helper functions for working with Senzing JSON
Project description
sz-sdk-json-type-definition
If you are beginning your journey with Senzing, please start with Senzing Quick Start guides.
You are in the Senzing Garage where projects are "tinkered" on. Although this GitHub repository may help you understand an approach to using Senzing, it's not considered to be "production ready" and is not considered to be part of the Senzing product. Heck, it may not even be appropriate for your application of Senzing!
:warning: WARNING: sz-sdk-json-type-definition is still in development :warning: _
At the moment, this is "work-in-progress" with Semantic Versions of 0.n.x.
Although it can be reviewed and commented on,
the recommendation is not to use it yet.
Synopsis
The Senzing sz-sdk-json-type-definition uses JSON Type Definition
to model the JSON that is returned from Senzing SDK calls.
Code generated from this model improves compile-time type checking and code-completion in Integrated Development Environments (IDE) (e.g. "VSCode's IntelliSense").
Overview
By using the code generated by JSON Type Definition, JSON returned by the Senzing SDK calls are easier to parse. Examples:
- Python - main.py
- Go - main.go
- Java - Main.java
- Typescript - main.ts
- C-sharp Program.cs
The actual specification is senzingsdk-RFC8927.json.
From this specification, code is generated for the following languages:
Use
- Python comparison:
-
Here's how to parse a Senzing JSON response without
senzing-json:result = sz_engine.get_virtual_entity_by_record_id(record_keys, flags) feature_list = result.get("RESOLVED_ENTITY", {}).get("FEATURES", {}).get("NAME", [])
- Note that the JSON keys and datatypes of the values must be known ahead of time. Also, this method is subject to typographical errors.
-
Here's how to parse a Senzing JSON response with
senzing-json:result = sz_engine.get_virtual_entity_by_record_id(record_keys, flags) virtual_entity = SzEngineGetVirtualEntityByRecordIDResponse.from_json_data(result) feature_list = virtual_entity.resolved_entity.features["NAME"]
- When using an IDE, the fields and datatypes are supplied by the IDE's code-completion. Typos will be flagged by the IDE.
-
References
- Development
- Errors
- Examples
- Packages
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file senzing_typedef-0.2.13.tar.gz.
File metadata
- Download URL: senzing_typedef-0.2.13.tar.gz
- Upload date:
- Size: 3.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1649d2bc51a0b807aa6939261c7da6b4649cd1eec833a2de6956137c72317b6d
|
|
| MD5 |
24946efc2ec5994207d70fff7fb20ebe
|
|
| BLAKE2b-256 |
e181318c840d37d0c71fbced03e2f5a02f4d763fb67346a64728c81e87b086dc
|
Provenance
The following attestation bundles were made for senzing_typedef-0.2.13.tar.gz:
Publisher:
publish-to-pypi.yaml on senzing-garage/sz-sdk-json-type-definition
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
senzing_typedef-0.2.13.tar.gz -
Subject digest:
1649d2bc51a0b807aa6939261c7da6b4649cd1eec833a2de6956137c72317b6d - Sigstore transparency entry: 557489923
- Sigstore integration time:
-
Permalink:
senzing-garage/sz-sdk-json-type-definition@dd488d7e1a66bd3be19ecd4d83dd395565a60003 -
Branch / Tag:
refs/tags/0.2.13 - Owner: https://github.com/senzing-garage
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@dd488d7e1a66bd3be19ecd4d83dd395565a60003 -
Trigger Event:
push
-
Statement type:
File details
Details for the file senzing_typedef-0.2.13-py3-none-any.whl.
File metadata
- Download URL: senzing_typedef-0.2.13-py3-none-any.whl
- Upload date:
- Size: 149.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d1e9f94fb64f40a97256f01794250e5833c9e2648995921462f1774c1d0abe4
|
|
| MD5 |
24c4068161d7bc182dea633486ce1822
|
|
| BLAKE2b-256 |
8bddde53b98b110010e248bc45f35db0c2a7eaa373b0a4b739b0338cc3013898
|
Provenance
The following attestation bundles were made for senzing_typedef-0.2.13-py3-none-any.whl:
Publisher:
publish-to-pypi.yaml on senzing-garage/sz-sdk-json-type-definition
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
senzing_typedef-0.2.13-py3-none-any.whl -
Subject digest:
2d1e9f94fb64f40a97256f01794250e5833c9e2648995921462f1774c1d0abe4 - Sigstore transparency entry: 557489927
- Sigstore integration time:
-
Permalink:
senzing-garage/sz-sdk-json-type-definition@dd488d7e1a66bd3be19ecd4d83dd395565a60003 -
Branch / Tag:
refs/tags/0.2.13 - Owner: https://github.com/senzing-garage
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@dd488d7e1a66bd3be19ecd4d83dd395565a60003 -
Trigger Event:
push
-
Statement type: