From c6e6509056d31cca708758dca69c389d56dbbe30 Mon Sep 17 00:00:00 2001 From: Jelte van Boheemen Date: Thu, 27 May 2021 12:48:54 +0200 Subject: [PATCH] Only show categories in suggestions panel --- frontend/src/panel-suggestions/suggestions-view.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/panel-suggestions/suggestions-view.ts b/frontend/src/panel-suggestions/suggestions-view.ts index 0af701d2..b09d554b 100644 --- a/frontend/src/panel-suggestions/suggestions-view.ts +++ b/frontend/src/panel-suggestions/suggestions-view.ts @@ -6,7 +6,7 @@ import Graph from '../common-rdf/graph'; import ItemGraph from '../common-adapters/item-graph'; import explorerChannel from '../explorer/explorer-radio'; import ldChannel from '../common-rdf/radio'; -import { isRdfsClass } from '../utilities/linked-data-utilities'; +import { isAnnotationCategory } from '../utilities/linked-data-utilities'; import { announceRoute } from '../explorer/utilities'; import suggestionsTemplate from './suggestions-template'; @@ -54,7 +54,7 @@ export default class SuggestionsView extends CompositeView{ this.sourceSuggestions.fetch({ url: sourceSuggestionsURL, data: param }); this.annotationGraph.fetch({ url: itemSuggestionsUrl, data: param }); const categories = await ldChannel.request('ontology:promise'); - const suggestions = sampleSize(filter(categories.models, isRdfsClass), nSuggestions); + const suggestions = sampleSize(filter(categories.models, isAnnotationCategory), nSuggestions); this.categoryGraph.set(suggestions); }