diff --git a/src/app/stakeholder.ts b/src/app/stakeholder.ts new file mode 100644 index 0000000..ebb1d20 --- /dev/null +++ b/src/app/stakeholder.ts @@ -0,0 +1,54 @@ +export class Stakeholder { + type: string; + name: string; + shortName:string; + id: string; + isDefaultProfile: boolean; + isActive: boolean; + isPublic: boolean; + creationDate: string; + updateDate: string; + managers: string[]; + topics:Topic[]; +} +export class Topic { + name: string; + description: string; + isActive: boolean; + isPublic: boolean; + categories: Category[]; +} +export class Category { + name: string; + description: string; + isActive: boolean; + isPublic: boolean; + isOverview: boolean; + subCategories: SubCategory[]; +} + +export class SubCategory { + name: string; + description: string; + isActive: boolean; + isPublic: boolean; + charts:string[]; + numbers:string[]; + +} +export class Indicator { + name: string; + description: string; + type:string; //number,chart + width:string; //small,medium,large + tags:string[]; + isActive: boolean; + isPublic: boolean; + urls:IndicatorPath[]; +} + +export class IndicatorPath { + type: string; + url: string; + jsonPath:string[]; +} diff --git a/src/app/stakeholders.json b/src/app/stakeholders.json new file mode 100644 index 0000000..3541670 --- /dev/null +++ b/src/app/stakeholders.json @@ -0,0 +1,151 @@ +{ + "stakeholders":[ + { + "type": "funder", + "name": "European Comission", + "id": "EC", + "isDefaultProfile": false, + "isActive": true, + "isPublic": true, + "creationDate": "08-10-2019", + "updateDate": "08-10-2019", + "managers": null, + + "topics": [{ + "name": "Open Science", + "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do...", + "isActive": true, + "isPublic": true, + "categories": [ + { + "name": "Overview", + "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do...", + "isOverview": true, + "isActive": true, + "isPublic": true, + "subCategories": [{ + "name": null, + "description": null, + "isActive": true, + "isPublic": true, + "numbers": ["1","2","3"], + "charts": ["4"] + }] + }, + { + "name": "Publications", + "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do...", + "isOverview": false, + "isActive": true, + "isPublic": true, + "subCategories": [{ + "name": null, + "description": null, + "isActive": true, + "isPublic": true, + "numbers": ["1","2","3"], + "charts": ["4"] + }] + }, + { + "name": "Research data", + "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do...", + "isOverview": false, + "isActive": true, + "isPublic": true, + "subCategories": [{ + "name": null, + "description": null, + "isActive": true, + "isPublic": true, + "numbers": [ + ], + "charts": [ + ] + }] + }, + { + "name": "Software", + "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do...", + "isOverview": false, + "isActive": true, + "isPublic": true, + "subCategories": [{ + "name": null, + "description": null, + "isActive": true, + "isPublic": true, + "numbers": [ + ], + "charts": [ + ] + }] + }, { + "name": "Other", + "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do...", + "isOverview": false, + "isActive": true, + "isPublic": true, + "subCategories": [{ + "name": null, + "description": null, + "isActive": true, + "isPublic": true, + "numbers": [ + ], + "charts": [ + ] + }] + } + ] + }] + }], + "indicators": [{ + "id": "1", + "type": "number", + "name": "Total", + "description": "Total number of publications", + "tags":["publications"], + "width": "small", + "indicatorPaths":[{"type":"", + "url": "/stats-api/funders/{index_shortname}", + "jsonPath":["statistics","publications"]}] + }, + { + "id": "2", + "type": "number", + "name": "Open", + "description": "Total number of open access publications", + "tags":["publication", "open access"], + "width": "small", + "indicatorPaths": [{"type":"", + "url": "/stats-api/funders/{index_shortname}", + "jsonPath":["statistics","open"]}] + }, + { + "id": "3", + "type": "number", + "name": "Embargo", + "description": "Total number of embargoed publications", + "tags":["publication", "embargo"], + "width": "small", + "indicatorPaths": [{"type":"", + "url": "/stats-api/funders/{index_shortname}", + "jsonPath":["statistics","embargo"]}] + }, + { + "id": "4", + "type": "charts", + "name": "Number of publications by project", + "description": "Number of publications by project", + "tags":["publication", "project"], + "width": "large", + "indicatorPaths":[{ "type":"bar graph", + "url": "https://www.openaire.eu/stats/chart.php?com=query&data={%22table%22%3A%22result%22%2C%22fields%22%3A[{%22fld%22%3A%22number%22%2C%22agg%22%3A%22count%22%2C%22type%22%3A%22bar%22%2C%22yaxis%22%3A1%2C%22c%22%3Afalse}]%2C%22xaxis%22%3A{%22name%22%3A%22result_projects-project-acronym%22%2C%22agg%22%3A%22avg%22}%2C%22group%22%3A%22%22%2C%22color%22%3A%22%22%2C%22type%22%3A%22chart%22%2C%22size%22%3A30%2C%22sort%22%3A%22count-number%22%2C%22yaxisheaders%22%3A[%22%22]%2C%22fieldsheaders%22%3A[%22publications%22]%2C%22in%22%3A[]%2C%22filters%22%3A[{%22name%22%3A%22result_projects-project-funding_lvl0%22%2C%22values%22%3A[%22H2020%22]%2C%22to%22%3A%22-1%22}%2C{%22name%22%3A%22type%22%2C%22values%22%3A[%22publication%22]%2C%22to%22%3A%22-1%22}]%2C%22having%22%3A[]%2C%22xStyle%22%3A{%22r%22:%22-%22,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:%22-%22,%22wt%22:%22-%22}%2C%22title%22%3A%22H2020%20Publications%20per%20project%20%28top%2030%29%22%2C%22subtitle%22%3A%22%22%2C%22xaxistitle%22%3A%22project%22%2C%22order%22%3A%22d%22}&h=100%&w=80%", + "jsonPath":[]}, + { "type":"table", + "url":"https://www.openaire.eu/stats/gtable.php?com=query&data={%22table%22:%22result%22,%22fields%22:[{%22fld%22:%22number%22,%22agg%22:%22count%22,%22type%22:%22pie%22,%22yaxis%22:1,%22c%22:false}],%22xaxis%22:{%22name%22:%22result_projects-project-title%22,%22agg%22:%22avg%22},%22group%22:%22%22,%22color%22:%22%22,%22type%22:%22chart%22,%22size%22:%2230%22,%22sort%22:%22count-number%22,%22yaxisheaders%22:[%22%22],%22fieldsheaders%22:[%22publications%22],%22in%22:[],%22filters%22:[{%22name%22:%22result_projects-project-funder%22,%22values%22:[%22{index_name}%22],%22to%22:%22-1%22},{%22name%22:%22type%22,%22values%22:[%22publication%22],%22to%22:%22-1%22}],%22having%22:[],%22xStyle%22:{%22r%22:-90,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:10,%22wt%22:%22-%22},%22title%22:%22{index_shortname}%20Publications%20by%20project%20(top%2030)%22,%22subtitle%22:%22%22,%22xaxistitle%22:%22project%22,%22order%22:%22d%22}", + "jsonPath":[]} + ] + }] +}