cocoda-sdk 3.6.5 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -742,9 +742,6 @@ var BaseProvider = class {
742
742
  concept._getAncestors = (config) => {
743
743
  return this.getAncestors({ ...config, concept });
744
744
  };
745
- concept._getDetails = async (config) => {
746
- return (await this.getConcepts({ ...config, concepts: [concept] }))[0];
747
- };
748
745
  for (let type of ["broader", "narrower", "ancestors"]) {
749
746
  if (Array.isArray(concept[type]) && concept[type].length && !concept[type].includes(null)) {
750
747
  concept[type] = this.adjustConcepts(concept[type]);
@@ -778,12 +775,6 @@ var BaseProvider = class {
778
775
  scheme._getTop = (config) => {
779
776
  return scheme._registry.getTop({ ...config, scheme });
780
777
  };
781
- scheme._getTypes = (config) => {
782
- return scheme._registry.getTypes({ ...config, scheme });
783
- };
784
- scheme._suggest = ({ search, ...config }) => {
785
- return scheme._registry.suggest({ ...config, search, scheme });
786
- };
787
778
  }
788
779
  return scheme;
789
780
  }
@@ -804,12 +795,6 @@ var BaseProvider = class {
804
795
  }
805
796
  }
806
797
  mapping._registry = this;
807
- if (!mapping.identifier) {
808
- let identifier = import_jskos_tools.default.addMappingIdentifiers(mapping)?.identifier;
809
- if (identifier) {
810
- mapping.identifier = identifier;
811
- }
812
- }
813
798
  return mapping;
814
799
  }
815
800
  adjustMappings(mappings) {
@@ -1451,7 +1436,6 @@ var MappingsApiProvider = class extends BaseProvider {
1451
1436
  throw new InvalidOrMissingParameterError({ parameter: "mapping" });
1452
1437
  }
1453
1438
  mapping = import_jskos_tools3.default.minifyMapping(mapping);
1454
- mapping = import_jskos_tools3.default.addMappingIdentifiers(mapping);
1455
1439
  return this.axios({
1456
1440
  ...config,
1457
1441
  method: "post",
@@ -1475,7 +1459,6 @@ var MappingsApiProvider = class extends BaseProvider {
1475
1459
  throw new InvalidOrMissingParameterError({ parameter: "mapping" });
1476
1460
  }
1477
1461
  mapping = import_jskos_tools3.default.minifyMapping(mapping);
1478
- mapping = import_jskos_tools3.default.addMappingIdentifiers(mapping);
1479
1462
  const uri = mapping.uri;
1480
1463
  if (!uri || !uri.startsWith(this._api.mappings)) {
1481
1464
  throw new InvalidOrMissingParameterError({ parameter: "mapping", message: "URI doesn't seem to be part of this registry." });
@@ -1831,7 +1814,6 @@ var OccurrencesApiProvider = class extends BaseProvider {
1831
1814
  }
1832
1815
  mapping.type = [import_jskos_tools4.default.defaultMappingType.uri];
1833
1816
  mapping._occurrence = occurrence;
1834
- mapping = import_jskos_tools4.default.addMappingIdentifiers(mapping);
1835
1817
  mappings.push(mapping);
1836
1818
  }
1837
1819
  mappings._url = occurrences._url;