Skip to content

issue with jsonld.normalize(). #99

@amarts

Description

@amarts

I was trying to run sign/verify on the same jsonld samples from https://github.com/digitalbazaar/vc-demo/blob/master/credentials/alumni.jsonld in python.

While trying to run jsonld.normalize() I am getting errors.

Traceback (most recent call last):
  File "/home/amar/work/test/certapp-test/jsonld.py", line 1134, in to_rdf
    expanded = self.expand(input_, options)
  File "/home/amar/work/test/certapp-test/jsonld.py", line 835, in expand
    expanded = self._expand(active_ctx, None, document, options, False)
  File "/home/amar/work/test/certapp-test/jsonld.py", line 2090, in _expand
    active_ctx, element['@context'], options)
  File "/home/amar/work/test/certapp-test/jsonld.py", line 2833, in _process_context
    self._create_term_definition(rval, ctx, k, defined)
  File "/home/amar/work/test/certapp-test/jsonld.py", line 4345, in _create_term_definition
    {'context': local_ctx}, code='invalid term definition')
jsonld.JsonLdError: ('Invalid JSON-LD syntax; @context property values must be strings or objects.',)
Type: jsonld.SyntaxError
Code: invalid term definition

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions