diff --git a/lib/queries.js b/lib/queries.js index 9b5622a..bd0d7e2 100644 --- a/lib/queries.js +++ b/lib/queries.js @@ -227,12 +227,11 @@ export async function getAllAbbKboOrganizations() { ?kboOrg owl:sameAs ?abbOrg . ?kboOrg ?changeTime ; ?rechtsVrom ; - ?shortName ; - ?startDate ; - ?commercialName ; - ?legalName ; - ?activeState ; - ?contact . + ?shortName ; + ?startDate ; + ?legalName ; + ?activeState ; + ?contact . ?contact ?email ; ?phone ; @@ -431,6 +430,7 @@ async function updateKboAddress(newKboInfo, identifiers) { ?adressUri a ; ?fulladdress . } + } INSERT{ graph ?g{ ?adressUri a @@ -521,10 +521,9 @@ async function updateKboAdministrativeUnit(newKboInfo, identifiers) { GRAPH ?g{ ?kboUnit a ; ?rechtsVorm ; - ?shortName ; + ?shortName ; ?startDate ; - ?orgName ; - ?commercialName ; + ?orgName ; ?changeTime ; ?activeState . } @@ -588,10 +587,9 @@ async function updateKboAdministrativeUnit(newKboInfo, identifiers) { GRAPH ?g { ?kboUnit a ; ?rechtsVorm ; - ?shortName ; + ?shortName ; ?startDate ; - ?orgName ; - ?commercialName ; + ?orgName ; ?changeTime ; ?activeState .