diff --git a/packages/check-in-place-select/src/check-in-place-select.js b/packages/check-in-place-select/src/check-in-place-select.js index 613fdfed0764584f45bdc35282be2a2cd1dfd7f1..978a51207b6149cd5c00cf01d2fd4e11a4ec86b5 100644 --- a/packages/check-in-place-select/src/check-in-place-select.js +++ b/packages/check-in-place-select/src/check-in-place-select.js @@ -147,8 +147,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) { } // find the correct api url for a checkInPlace - const apiUrl = this.jsonld.getApiUrlForIdentifier('http://schema.org/Place'); - // const apiUrl = this.jsonld.getApiUrlForEntityName("CheckInPlace"); + const apiUrl = this.jsonld.getApiUrlForEntityName("CheckinPlace"); if (this.$select === null) { return false; diff --git a/packages/common/jsonld.js b/packages/common/jsonld.js index 0a42f6fa2b83c5556d8bba59110a01170fe08b68..021a62dbe3bb734db0b62eeb4d6d2222bfd38351 100644 --- a/packages/common/jsonld.js +++ b/packages/common/jsonld.js @@ -208,16 +208,6 @@ export default class JSONLD { return this.entities[entityName]; } - getApiUrlForIdentifier(identifier) { - const entity = this.getEntityForIdentifier(identifier); - - if (entity === undefined || entity['@entryPoint'] === undefined) { - throw new Error(`Entity with identifier "${identifier}" not found!`); - } - - return entity['@entryPoint']; - } - getApiUrlForEntityName(entityName) { const entity = this.getEntityForEntityName(entityName); diff --git a/packages/person-select/src/person-select.js b/packages/person-select/src/person-select.js index 5ec65875380f22d7aabe411bb2ae5f0c666e373e..bc7ed95e7b567c7ff0a7e82ea46f8fe00d716a98 100644 --- a/packages/person-select/src/person-select.js +++ b/packages/person-select/src/person-select.js @@ -148,8 +148,7 @@ export class PersonSelect extends ScopedElementsMixin(AdapterLitElement) { } // find the correct api url for a person - const apiUrl = this.jsonld.getApiUrlForIdentifier('http://schema.org/Person'); - // const apiUrl = this.jsonld.getApiUrlForEntityName("Event"); + const apiUrl = this.jsonld.getApiUrlForEntityName("BasePerson"); if (this.$select === null) { return false;