small changes discussed in personal reviews

This commit is contained in:
Elias Papanikitas
2024-03-21 11:33:54 +01:00
parent 63620ce061
commit d4ec2d5083
3 changed files with 33 additions and 53 deletions

View File

@@ -338,24 +338,19 @@ export async function createNewKboOrg(kboOrg, kboId) {
kboOrg.rechtsvorm
)}`;
}
if (kboOrg.shortName) {
updateStr += `; <http://www.w3.org/2004/02/skos/core#altLabel> ${sparqlEscapeString(
kboOrg.shortName
)}`;
}
if (kboOrg.startDate) {
updateStr += `; <http://mu.semte.ch/vocabularies/ext/startDate> ${sparqlEscapeString(
kboOrg.startDate
)}`;
}
if (kboOrg.formalName) {
updateStr += `; <http://www.w3.org/2004/02/skos/core#prefLabel> ${sparqlEscapeString(
updateStr += `; <http://www.w3.org/ns/regorg#legalName> ${sparqlEscapeString(
kboOrg.formalName
)}`;
}
if (kboOrg.commercialName) {
updateStr += `; <http://www.w3.org/2004/02/skos/core#altLabel> ${sparqlEscapeString(
kboOrg.commercialName
if (kboOrg.shortName) {
updateStr += `; <http://www.w3.org/2004/02/skos/core#altLabel> ${sparqlEscapeString(
kboOrg.shortName
)}`;
}
if (kboOrg.changeTime) {
@@ -545,14 +540,6 @@ async function updateKboAdministrativeUnit(newKboInfo, identifiers) {
)}
`;
}
if (newKboInfo.shortName) {
updateStr += `
;
<http://mu.semte.ch/vocabularies/ext/shortName> ${sparqlEscapeString(
newKboInfo.shortName
)}
`;
}
if (newKboInfo.startDate) {
updateStr += `
;
@@ -561,21 +548,15 @@ async function updateKboAdministrativeUnit(newKboInfo, identifiers) {
)}
`;
}
if (newKboInfo.organisationName) {
updateStr += `
;
<http://www.w3.org/2004/02/skos/core#prefLabel> ${sparqlEscapeString(
newKboInfo.organisationName
)}
`;
}
if (newKboInfo.formalName) {
updateStr += `
;
<http://www.w3.org/2004/02/skos/core#altLabel> ${sparqlEscapeString(
updateStr += `; <http://www.w3.org/ns/regorg#legalName> ${sparqlEscapeString(
newKboInfo.formalName
)}
`;
)}`;
}
if (newKboInfo.shortName) {
updateStr += `; <http://www.w3.org/2004/02/skos/core#altLabel> ${sparqlEscapeString(
newKboInfo.shortName
)}`;
}
if (newKboInfo.changeTime) {
updateStr += `