Skip to content

Commit

Permalink
Only show categories in suggestions panel
Browse files Browse the repository at this point in the history
  • Loading branch information
JeltevanBoheemen committed May 27, 2021
1 parent e10433a commit c6e6509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/panel-suggestions/suggestions-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit c6e6509

Please sign in to comment.