wirecloud, wstore and wmarket

61
WireCloud, WStore & WMarket Aitor Magán (UPM) [email protected] @aitormagan

Upload: aitor-magan-garcia

Post on 10-Jan-2017

262 views

Category:

Presentations & Public Speaking


0 download

TRANSCRIPT

Page 1: WireCloud, WStore and WMarket

WireCloud, WStore & WMarket Aitor Magán (UPM)[email protected] @aitormagan

Page 2: WireCloud, WStore and WMarket

Agenda

1. WireCloud1. What is WireCloud?2. What can I do with WireCloud?3. Using WireCloud4. Working with Mashups5. Developing with WireCloud

2. WStore1. What is WStore?2. Data Market3. Using WStore

3. WMarket1. What is WMarket?2. Using WMarket

2

Page 3: WireCloud, WStore and WMarket
Page 4: WireCloud, WStore and WMarket

WHAT IS WIRECLOUD?Data/Applications Visualization and Mashup

Page 5: WireCloud, WStore and WMarket

What is WireCloud?

Widget

Mashupdat

a

Backendservice Backend

service

Backendserviceope

rator

wiring

Object StorageAPI

NGSI API

ContextBroker

piping

5

Page 6: WireCloud, WStore and WMarket

WHAT CAN I DO WITH WIRECLOUD?

Data/Applications Visualization and Mashup

Page 7: WireCloud, WStore and WMarket

Perspectives

• From the developer perspective:– Use web technologies for easily developing mashable web

components (widgets)– Integrate web mashups with backend services (e.g. support

for pub/sub, “connectors” to a number of FIWARE GEs, etc.)• From the user perspective:

– Develop application mashups: integrate heterogeneous data, application logic, and UI web components to create value added instant applications.• Without the need of programing skills (e.g. end users,

infomediaries, etc.)• Fostering the reuse and shareability of widgets, mashups,

etc.

7

Page 8: WireCloud, WStore and WMarket

8

Page 9: WireCloud, WStore and WMarket

9

Page 10: WireCloud, WStore and WMarket

Configurable dashboards... and much more

• Wiring– Wiring and support for channel creation

• HTTP proxy– Cross-site HTTP requests

• APIs to some GEs– Context Broker, Object Storage

• Public App Mashups– Access without login to a mashup

• Embedded mashups– Integrate public mashups in any website

• Integration with the WStore and IdM

13

Page 11: WireCloud, WStore and WMarket

14

Page 12: WireCloud, WStore and WMarket

Behavior Oriented Wiring

• Wiring can be a mess when we have too many widgets/operators

• Split wiring into parts: behavior– Behavior: One identified action that users can

perform with the mashups– A behavior involves a subset of all the mashable

components of the MashUp– While editing the behavior, these mashable

components are highlighted while the rest are blurred

15

Page 13: WireCloud, WStore and WMarket

16

Page 15: WireCloud, WStore and WMarket

USING WIRECLOUDApps/Data Delivery Chapter

Page 16: WireCloud, WStore and WMarket

Using Wirecloud

• Create a FIWARE Lab account (if not done yet)• Choose mashup tab• Play https://mashup.lab.fiware.org

add widgets to workspace

wiring tool my resources

store

21

Page 17: WireCloud, WStore and WMarket

WORKING WITH MASHUPSApps/Data Delivery Chapter

Page 18: WireCloud, WStore and WMarket

Managing your MashUps

• Create as many workspaces as you want• Rename them, remove them…• Upload a MashUp to “My Resources”

– With/without widgets/operators embedded• Create a workspace from a MashUp

23

Page 19: WireCloud, WStore and WMarket

Create/modify your own MashUp

• Add widgets with the button• Choose widgets on the left panel and click on “+”

sign to add them• Go to the wiring tool

– Add your widgets and deploy any operator– Connect input and output endpoints as you want

• There are not restrictions

24

Page 20: WireCloud, WStore and WMarket

Public/Embedded MashUps

25

Page 21: WireCloud, WStore and WMarket

Publish a MashUp in the WStore

26

Page 22: WireCloud, WStore and WMarket

Consume MashUps

• Consume the offer with a different user

• Phases1. Acquire in the WStore2. Install from your

resources3. Create a workspace

from the MashUp

27

Page 23: WireCloud, WStore and WMarket

DEVELOPING WITH WIRECLOUD

Apps/Data Delivery Chapter

Page 24: WireCloud, WStore and WMarket

Developing a widget

• Typical web app structure

• config.xml is the description– It references the HTML– HTML links with the rest

30

Page 25: WireCloud, WStore and WMarket

Widget description – config.xml

31

Page 26: WireCloud, WStore and WMarket

Using preferences

32

Page 27: WireCloud, WStore and WMarket

Making HTTP requests

33

Page 28: WireCloud, WStore and WMarket

Working with wiring

34

Page 29: WireCloud, WStore and WMarket

Developing an operator

• config.xml is similar– References a JavaScript file

35

Page 30: WireCloud, WStore and WMarket

Using Context Broker GE

• Declaring the feature

• Opening the connection

36

Page 31: WireCloud, WStore and WMarket

Using Context Broker GE

• Creating an entity

37

Page 32: WireCloud, WStore and WMarket

Using Context Broker GE

• Creating a subscription

Page 33: WireCloud, WStore and WMarket

http://conwet.fi.upm.es/wirecloud

https://mashup.lab.fiware.org

http://edu.fiware.org/course/view.php?id=53

http://catalogue.fiware.org/enablers/application-mashup-wirecloud/documentation

https://github.com/Wirecloud/wirecloud https://github.com/wirecloud-fiware

https://store.lab.fiware.org/search/tag/starterKit

39

https://hub.docker.com/r/fiware/wmarket

Page 34: WireCloud, WStore and WMarket

Store

Page 35: WireCloud, WStore and WMarket

WHAT IS WSTORE?Apps/Data Delivery Chapter

Page 36: WireCloud, WStore and WMarket

WStore

• Generic Online Store intended for Digital Assets– Publish Offering with products/services– Acquire these offerings

• Key features– Support for rich price models– Support for charging– Support for billing– Support accounting callbacks– Integration with PayPal– Support for FIWARE MarketPlace, Repository and RSSS

42

Page 37: WireCloud, WStore and WMarket

WStore: Main Components (1)

• Resources– The product or the service to be sold– Default resource types: Files or APIs– Extensions to support specific resource types

• Mashable components• Datasets• …

43

Page 38: WireCloud, WStore and WMarket

WStore: Main Components (2)

• Offerings:– Commercial Properties definition

• Basic description• Image• Snapshots• Legal Terms • Price Plans• Involved Resources• …

– Life Cycle1. Created2. Published3. Deleted

– Open Offerings: Not need to be acquired. Its resources can be accesses immediately

44

Page 39: WireCloud, WStore and WMarket

Wstore: Main Components (3)

45

OFFERING Resource 1 Resource n…

Resources

… Price Plan 1

Price Component 1.1

Price Component 1.n…

Price Plan n

Price Component n.1

Price Component n.n…

Price Plans

Page 40: WireCloud, WStore and WMarket

WStore: Main Components (4)

• One resource can be included in one or more offerings

• Offerings with more than one Price Plan– The purchaser selects the one to be applied

• Price Components– Single payment– Recurring Payment

• Subscription• Pay per use

– Combined in one Price Plan as desired

46

Page 41: WireCloud, WStore and WMarket

DATA MARKET + + Extensions

Page 42: WireCloud, WStore and WMarket

FIWARE Data Market: + + Extns.

• Integrated with FIWARE Lab IdM (OAuth2)– Users do not need to have different accounts– Same user than in the rest of FIWARE Portals (Store, WireCloud,…)– Users can access the portal without log in to read open data

• Ability to create private datasets– Accessible only by certain users

• Integration with WStore allows to:– Manage the users that can access private datasets– Charge users for accessing your data– Ensure that users only access your data under some legal terms– …

• https://data.lab.fiware.org

48

Page 43: WireCloud, WStore and WMarket

USING WSTOREApps/Data Delivery Chapter

Page 44: WireCloud, WStore and WMarket

Creating a Resource

50

1

2

3 4

Page 45: WireCloud, WStore and WMarket

Creating an Offering (1)

51

1

2

3 4

Page 46: WireCloud, WStore and WMarket

52

Creating an Offering (2)

5

Page 47: WireCloud, WStore and WMarket

Creating an Offering (3)

53

6

Page 48: WireCloud, WStore and WMarket

Creating an Offering (and 4)

54

7

8

9

Page 49: WireCloud, WStore and WMarket

Acquiring Offering

1. Select the Offering to be acquired2. Choose the Price Plan to be used3. Accept the legal terms

55

Page 50: WireCloud, WStore and WMarket

https://store.lab.fiware.org

http://edu.fiware.org/course/view.php?id=104

http://catalogue.fiware.org/enablers/store-wstore/documentation

https://github.com/conwetlab/wstore

56

http://wstore.readthedocs.org/en/latest/

https://hub.docker.com/r/fiware/wstore

Page 51: WireCloud, WStore and WMarket

WMarket

Page 52: WireCloud, WStore and WMarket

WHAT IS WMARKET?Apps/Data Delivery Chapter

Page 53: WireCloud, WStore and WMarket

WMarket

• Business Component focused on aggregate the offerings coming from different Stores

• It is just an showcase: the final transaction (buying) is handled by the corresponding Store

• Allow final purchasers to view the offerings published by different providers and select those with higher benefits– Trivago– Rastreator– …

• Key features:– Offerings comparison– Store & Offerings Review– Recommendations– Full integration with WStore– Semantic Search based on the market segment (Feb. 2016)

59

Page 54: WireCloud, WStore and WMarket

WMarket: Main Components

• Stores– The basic units to aggregate offerings

• Descriptions– Pointers to a Linked-USDL file that contains the descriptions of

one ore more offerings• Offerings

– The units to be sold. Includes:• Services (similar to WStore resources)• Price Plans (as the ones defined in WStore)

• Categories– “Tags” to categorize the published offerings– Automatically created based on the type of the services

included in the offerings

60

Page 55: WireCloud, WStore and WMarket

USING WMARKETApps/Data Delivery Chapter

Page 56: WireCloud, WStore and WMarket

Creating a Store

62

1

2

Page 57: WireCloud, WStore and WMarket

Creating a Description

63

1

2

Page 58: WireCloud, WStore and WMarket

64

Comparing Offerings

1

2

Page 59: WireCloud, WStore and WMarket

65

Reviewing Store/Offerings

1. Access the entity (store or offering) to be reviewed

1

2

Page 60: WireCloud, WStore and WMarket

https://marketplace.lab.fiware.org

http://catalogue.fiware.org/enablers/marketplace-wmarket/documentation

https://github.com/conwetlab/wmarket

66

http://wmarket.readthedocs.org/en/latest/

WMarket

https://hub.docker.com/r/fiware/wmarket

Page 61: WireCloud, WStore and WMarket

Thanks!Thanks!