# e.g. in the tree there was a sub-dictionary named 'biosample'
# That dictionary had a term 'biosample_term_id, which is the
# term that should be used as the @id.
# e.g. in the tree there was a sub-dictionary named 'biosample'
# That dictionary had a term 'biosample_term_id, which is the
# term that should be used as the @id.
"assay_term_id": {"@type": "@id"},
"files": {"@type": "@id"},
"original_files": {"@type": "@id"},
"assay_term_id": {"@type": "@id"},
"files": {"@type": "@id"},
"original_files": {"@type": "@id"},
# "state": "vcard:region",
# "country": "vcard:country"
#},
# "state": "vcard:region",
# "country": "vcard:country"
#},
if self._is_encoded_object(obj):
context = self.create_jsonld_context(obj, default_base)
if len(context) > 0:
if self._is_encoded_object(obj):
context = self.create_jsonld_context(obj, default_base)
if len(context) > 0:
obj.setdefault('@context', {}).update(context)
def add_jsonld_namespaces(self, context):
obj.setdefault('@context', {}).update(context)
def add_jsonld_namespaces(self, context):