Skip to content

Commit dfd2679

Browse files
remove console.log
1 parent a6dc2c7 commit dfd2679

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

app/rdf/query-unit-labels.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,6 @@ type ResourceLabel = {
1616
const buildUnitsQuery = (values: Term[], locale: string) => {
1717
const uniqueValues = uniqBy(values, (v) => v.value);
1818

19-
const kk = SELECT.DISTINCT`?iri ?label ?isCurrency ?currencyExponent`
20-
.WHERE`
21-
values ?iri {
22-
${uniqueValues}
23-
}
24-
25-
OPTIONAL { ?iri ${ns.rdfs.label} ?rdfsLabel }
26-
OPTIONAL { ?iri ${ns.qudt.symbol} ?symbol }
27-
OPTIONAL { ?iri ${ns.qudt.ucumCode} ?ucumCode }
28-
OPTIONAL { ?iri ${ns.qudt.expression} ?expression }
29-
30-
OPTIONAL { ?iri ?isCurrency ${ns.qudt.CurrencyUnit} }
31-
OPTIONAL { ?iri ${ns.qudt.currencyExponent} ?currencyExponent }
32-
33-
BIND(str(coalesce(str(?symbol), str(?ucumCode), str(?expression), str(?rdfsLabel), "?")) AS ?l)
34-
35-
FILTER ( lang(?rdfsLabel) = "${locale}" || lang(?rdfsLabel) = "en" || datatype(?rdfsLabel) = ${ns.xsd.string} )
36-
BIND(xsd:string(?l) AS ?label)
37-
`.prologue`${pragmas}`;
38-
console.log(kk.toString());
3919
return SELECT.DISTINCT`?iri ?label ?isCurrency ?currencyExponent`
4020
.WHERE`
4121
values ?iri {

0 commit comments

Comments
 (0)