Compare commits

...

2 Commits

Author SHA1 Message Date
Dachamelemon
1caab1e7ba Merge pull request #3 from lblod/fix/shortname-commercialname-left-in-queries
fixed queries
2024-03-22 12:36:57 +01:00
Elias Papanikitas
121a95e8b3 fixed queries 2024-03-22 11:00:16 +01:00

View File

@@ -227,12 +227,11 @@ export async function getAllAbbKboOrganizations() {
?kboOrg owl:sameAs ?abbOrg .
?kboOrg <https://data.lblod.info/vocabularies/generiek/geplandeEindDatum> ?changeTime ;
<http://mu.semte.ch/vocabularies/ext/rechtsvorm> ?rechtsVrom ;
<http://mu.semte.ch/vocabularies/ext/shortName> ?shortName ;
<http://mu.semte.ch/vocabularies/ext/startDate> ?startDate ;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?commercialName ;
<http://www.w3.org/2004/02/skos/core#altLabel> ?legalName ;
<http://www.w3.org/ns/regorg#orgStatus> ?activeState ;
<http://schema.org/contactPoint> ?contact .
<http://www.w3.org/2004/02/skos/core#altLabel> ?shortName ;
<http://mu.semte.ch/vocabularies/ext/startDate> ?startDate ;
<http://www.w3.org/ns/regorg#legalName> ?legalName ;
<http://www.w3.org/ns/regorg#orgStatus> ?activeState ;
<http://schema.org/contactPoint> ?contact .
?contact <http://schema.org/email> ?email ;
<http://schema.org/telephone> ?phone ;
@@ -431,6 +430,7 @@ async function updateKboAddress(newKboInfo, identifiers) {
?adressUri a <http://www.w3.org/ns/locn#Address> ;
<http://www.w3.org/ns/locn#fullAddress> ?fulladdress .
}
}
INSERT{
graph ?g{
?adressUri a <http://www.w3.org/ns/locn#Address>
@@ -521,10 +521,9 @@ async function updateKboAdministrativeUnit(newKboInfo, identifiers) {
GRAPH ?g{
?kboUnit a <http://mu.semte.ch/vocabularies/ext/KboEenheid> ;
<http://mu.semte.ch/vocabularies/ext/rechtsvorm> ?rechtsVorm ;
<http://mu.semte.ch/vocabularies/ext/shortName> ?shortName ;
<http://www.w3.org/2004/02/skos/core#altLabel> ?shortName ;
<http://mu.semte.ch/vocabularies/ext/startDate> ?startDate ;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?orgName ;
<http://www.w3.org/2004/02/skos/core#altLabel> ?commercialName ;
<http://www.w3.org/ns/regorg#legalName> ?orgName ;
<https://data.lblod.info/vocabularies/generiek/geplandeEindDatum> ?changeTime ;
<http://www.w3.org/ns/regorg#orgStatus> ?activeState .
}
@@ -588,10 +587,9 @@ async function updateKboAdministrativeUnit(newKboInfo, identifiers) {
GRAPH ?g {
?kboUnit a <http://mu.semte.ch/vocabularies/ext/KboEenheid> ;
<http://mu.semte.ch/vocabularies/ext/rechtsvorm> ?rechtsVorm ;
<http://mu.semte.ch/vocabularies/ext/shortName> ?shortName ;
<http://www.w3.org/2004/02/skos/core#altLabel> ?shortName ;
<http://mu.semte.ch/vocabularies/ext/startDate> ?startDate ;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?orgName ;
<http://www.w3.org/2004/02/skos/core#altLabel> ?commercialName ;
<http://www.w3.org/ns/regorg#legalName> ?orgName ;
<https://data.lblod.info/vocabularies/generiek/geplandeEindDatum> ?changeTime ;
<http://www.w3.org/ns/regorg#orgStatus> ?activeState .