Skip to content

.withContext() seems to reset base url #9

@danmichaelo

Description

@danmichaelo

With this code, based on the example in the readme, the base url is not used. If I remove .withContext(…), the base url is used.

  JsonldRest.setBaseUrl('http://www.wikidata.org');

  var entities = JsonldRest.collection('/entity').withContext({
    "schema": "http://schema.org/",
    "fullName": "schema:name"
  });

  entities.one('Q42').get().then(function(res) {
    console.log(res);
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions