Skip to content

Commit

Permalink
Remove carrier filter for now
Browse files Browse the repository at this point in the history
Carrier is not a vocabulary yet which means it has too many potential values which would return in a timeout
  • Loading branch information
ehrhart committed Oct 13, 2022
1 parent a4da92d commit 8ed62b8
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions config/routes/texts.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,40 +517,6 @@ module.exports = {
],
filterFunc: (val, index) => `?source_${index} = <${val}>`,
},
{
id: 'carrier',
isMulti: true,
isSortable: false,
query: ({ language }) => ({
'@graph': [
{
'@id': '?carrierLabel',
label: '?carrierLabel',
},
],
$where: [
`
{
SELECT DISTINCT ?carrier WHERE {
?emission od:F1_generated ?smell .
?emission od:F3_had_source / crm:P137_exemplifies ?source .
?emission od:F4_had_carrier ?carrier .
}
}
?carrier rdfs:label ?carrierLabel .
FILTER(LANG(?carrierLabel) = "${language}" || LANG(?carrierLabel) = "")
`,
],
$langTag: 'hide',
}),
whereFunc: () => [
'?emission od:F1_generated ?id',
'?emission od:F4_had_carrier ?carrier',
'?carrier rdfs:label ?carrierLabel',
],
filterFunc: (val) => `STR(?carrierLabel) = ${JSON.stringify(val)}`,
},
{
id: 'emotion',
isMulti: true,
Expand Down

0 comments on commit 8ed62b8

Please sign in to comment.