changed getIdentifiers to more suitable name
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { uuid, sparqlEscapeUri, sparqlEscapeString } from "mu";
|
||||
import { querySudo as query, updateSudo as update } from "@lblod/mu-auth-sudo";
|
||||
|
||||
export async function getIdentifiers(kboStructuredIdUuid) {
|
||||
export async function getAbbOrganizationInfo(kboStructuredIdUuid) {
|
||||
const queryStr = `
|
||||
SELECT DISTINCT ?kbo ?kboId ?ovo ?kboStructuredId ?ovoStructuredId ?bestuurseenheid WHERE {
|
||||
VALUES ?g {
|
||||
@@ -48,13 +48,12 @@ export async function getIdentifiers(kboStructuredIdUuid) {
|
||||
ovoStructuredId: binding.ovoStructuredId?.value,
|
||||
kboId: binding.kboId?.value,
|
||||
adminUnit: binding.bestuurseenheid.value,
|
||||
kboUnit: binding.kboOrganisation?.value,
|
||||
};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
export async function getKboIdentifiers(administrativeUnit) {
|
||||
export async function getKboOrgnizationInfo(administrativeUnit) {
|
||||
const queryStr = `
|
||||
SELECT DISTINCT ?kboUnit ?abbUnit ?changeTime ?contactPointUri ?addressUri WHERE {
|
||||
VALUES ?g {
|
||||
|
||||
Reference in New Issue
Block a user