removed healing function from last tests
This commit is contained in:
5
app.js
5
app.js
@@ -50,8 +50,6 @@ app.post("/sync-kbo-data/:kboStructuredIdUuid", async function (req, res) {
|
||||
updateKboOrg(kboObject, kboIdentifiers);
|
||||
}
|
||||
|
||||
await healAbbWithWegWijsData();
|
||||
|
||||
let wegwijsOvo = kboObject.ovoNumber ?? null;
|
||||
|
||||
//Update Ovo Number
|
||||
@@ -121,9 +119,10 @@ function getKboFields(data) {
|
||||
);
|
||||
}) ? ORGANIZATION_STATUS.ACTIVE : ORGANIZATION_STATUS.INACTIVE;
|
||||
|
||||
//currently no commercial name available
|
||||
return {
|
||||
changeTime: changeTime ?? "",
|
||||
organisationName: organisationName ?? "",
|
||||
commercialName: "",
|
||||
shortName: shortName ?? organisationName,
|
||||
ovoNumber: ovoNumber ?? "",
|
||||
kboNumber: kboNumber ?? "",
|
||||
|
||||
@@ -353,11 +353,11 @@ export async function createNewKboOrg(kboOrg, kboId) {
|
||||
kboOrg.formalName
|
||||
)}`;
|
||||
}
|
||||
// if (kboOrg.organisationName) {
|
||||
// updateStr += `; <http://www.w3.org/2004/02/skos/core#prefLabel> ${sparqlEscapeString(
|
||||
// kboOrg.organisationName
|
||||
// )}`;
|
||||
//}
|
||||
if (kboOrg.commercialName) {
|
||||
updateStr += `; <http://www.w3.org/2004/02/skos/core#altLabel> ${sparqlEscapeString(
|
||||
kboOrg.commercialName
|
||||
)}`;
|
||||
}
|
||||
if (kboOrg.changeTime) {
|
||||
updateStr += `; <https://data.lblod.info/vocabularies/generiek/geplandeEindDatum> ${sparqlEscapeString(
|
||||
kboOrg.changeTime
|
||||
|
||||
Reference in New Issue
Block a user