applied changes to querries

This commit is contained in:
Elias Papanikitas
2024-03-21 14:17:13 +01:00
parent 16b9fc4eee
commit c017f49593

View File

@@ -306,7 +306,8 @@ export async function createNewKboOrg(kboOrg, kboId) {
${sparqlEscapeUri(contactPointUri)} a <http://schema.org/ContactPoint> ;
<http://mu.semte.ch/vocabularies/core/uuid> ${sparqlEscapeString(
contactPointUuidId
)} `;
)} ;
<http://purl.org/dc/terms/source> <https://economie.fgov.be/>`;
if (kboOrg.email) {
updateStr += `; <http://schema.org/email> ${sparqlEscapeString(
kboOrg.email
@@ -388,13 +389,13 @@ export async function createNewKboOrg(kboOrg, kboId) {
export async function updateKboOrg(newKboInfo, identifiers) {
//update address
updateKboAddress(newKboInfo, identifiers);
await updateKboAddress(newKboInfo, identifiers);
//update ContactPoint
updateKboContact(newKboInfo, identifiers);
await updateKboContact(newKboInfo, identifiers);
//update kboUnit
updateKboAdministrativeUnit(newKboInfo, identifiers);
await updateKboAdministrativeUnit(newKboInfo, identifiers);
}
export async function linkAbbOrgToKboOrg(abbOrgUri, kboOrgUri) {