-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wikidata Elastic Search - Frontend Implementation #20
Conversation
…ture for NodeSearchComponent
…tSearch" This reverts commit 4fb794b.
…ting nodes default for search
…d class, entity search of the existing nodes
Property store changes
onSearch={onSearch} | ||
filterOption={(inputValue, option) => { | ||
if (option!.type != "class") { | ||
let label = option?.filterlabel!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rewrite line 146 to 158 to something like: return inputValue.split(" ").some(...)
;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no question mark. also convert toLowerCase here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the replacement is still incorrect
onSearch={onSearch} | ||
filterOption={(inputValue, option) => { | ||
if (option!.type != "class") { | ||
let label = option?.filterlabel!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no question mark. also convert toLowerCase here.
onSearch={onSearch} | ||
filterOption={(inputValue, option) => { | ||
if (option!.type != "class") { | ||
let label = option?.filterlabel!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the replacement is still incorrect
inputValue | ||
.toLowerCase() | ||
.split(" ") | ||
.map((value) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use some(..)
Integrated Wikidata Search Backend APIs to the frontend UI.
NodeSearchComponent adds source and target classes/entities to the semantic model knowledge graph.
OntSearchComponent adds class/entity/property to the semantic model knowledge graph.
The search implemented using OntSearchComponent completely uses the Wikidata API, unlike the previous implementation where there was ID based search from the local KG dump.
Property Search
Entity Search
Class Search
Source Node Search (Class)
Target Node Search (Class / Entity)