Filtering the resources based on the classes
Things to be done before this can be deployed:
First, create the classes of Research contribution and Research problem :
{
"label" : "Contribution",
"id" : "Contribution"
}
{
"label" : "Problem",
"id" : "Problem"
}
Then add the classes to the existing data in the database using the following Cypher queries in the backend to ensure that the contributions and the research problems are defined:
MATCH (:Paper)-[p {predicate_id: 'P31'}]->(s) SET s:Contribution
Then:
MATCH (:Contribution)-[p {predicate_id: 'P32'}]->(s) SET s:Problem
Set the environment variables:
REACT_APP_CLASSES_CONTRIBUTION=Contribution
REACT_APP_CLASSES_PROBLEM=Problem
Edited by Yaser Jaradeh