def get_schema_url(self, obj):
obj_type = self.get_object_type(obj)
if obj_type:
- return self.prepare_url(ENCODED_SCHEMA_ROOT + obj_type + '.json')
+ return self.prepare_url(ENCODED_SCHEMA_ROOT + obj_type + '.json') + '#'
def _is_encoded_object(self, obj):
'''Test to see if an object is a JSON-LD object
encode = ENCODED('test.encodedcc.org')
url = encode.prepare_url(library['@id'])
context = encode.create_jsonld_context(library, url)
+ self.assertEqual(context['@vocab'], 'http://test.encodedcc.org/profiles/library.json#')
self.assertEqual(context['award'], linked_id )
self._verify_context(context, 'library')
# namespaces not added yet.