sp biz conf - using office graph api

40
Online Conference June 17 th and 18 th 2015 WWW.SPBIZCONF.COM Using Office Microsoft Graph API’s 17/06/15 – 18:00 EDT Vincent BIRET Negotium

Upload: vincent-biret

Post on 12-Aug-2015

238 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Sp biz conf - using office graph api

     

               

 Online Conference

 June 17th and 18th 2015

WWW.SPBIZCONF.COM

Using Office Microsoft Graph API’s

17/06/15 – 18:00 EDT

Vincent BIRETNegotium

Page 2: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Vincent BIRETNegotium

Email : [email protected] : @baywetBlog : bit.ly/vince365LinkedIn : bit.ly/vbiretlinkedin

SharePoint MVPProducts Team Tech Lead

Montréal (QC) Canada

Page 3: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Sébastien LEVERTNegotium

Email : [email protected] : @sebastienlevertBlog : pimpthecloud.com LinkedIn :

Office 365 MVPTechnical Advisor

Montréal (QC) Canada

Page 4: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Who’s that session for?

• End users : understand the value

• Developers: understand the concepts

Page 5: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Related Content“A deep dive into the Graph API” 12:00PM June 17th EDT by Bjoern H Rapp bit.ly/DeepDiveGraphSPBiz“Delve and Office Graph Roadmap” Ignite BRK1105“Building solutions with Office Graph” Ignite BRK3193“MVP Panel showcasing Graph…” Ignite BRK3154Ignite Day 1 keynote“Graph Databases for SQL Server Professionals” Stéphan Fréchette…

Page 6: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Agenda

• Graph? What is this?

• Microsoft Graph

• Demonstrations

Page 7: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Not showing

• Office Delve

• Power BI

• Too much code (just a little)

Page 8: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

What is the Graph?

Page 9: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Is That a Graph?

Category 1 Category 2 Category 3 Category 40

1

2

3

4

5

6

Chart Title

Series 1 Series 2 Series 3

Page 10: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Is That A Graph?Sales

1st Qtr 2nd Qtr 3rd Qtr 4th Qtr

Page 11: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

A bit of WikiPedia“a graph is a representation of a set of objects where some pairs of objects are connected by links” WikiPedia (mathematics)

“graph theory is the study of graphs” WikiPedia (graph theory)

“graph is an abstract data type that is meant to implement the graph and directed graph concepts from mathematics” WikiPedia (computer sciences)

Page 12: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

That’s a Graph!

Picture From WikiPédia

Page 13: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Why Graphs?

RDBMS suck!.....

At doing what they are not meant for.

Page 14: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Databases paradigms• RDBMS : meant for forms• Hierarchical DBMS: meant for hierarchical “stuff”• NoSQL family: high performance, non normalized,

not linked “stuff”• Document: meant for index and search• “Cubes”: de-normalized versions of RDBMS, for

perfs• Graphs: meant for connected “stuff”

Page 15: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

The Property Graph

• Nodes• Links

• Both can have a « Type »• Both can have properties• Links can have directions

Page 16: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Property Graph ExampleVincent

Desk: E43

Phone: 514 444 4444

Extension: 275

Negotium

Street Address: Montreal

Creation : 1/1/00

Technical Advisor

Must do: technical advising

Advantages: better business cards

Developper

Must do: development

Advantages: better keyboard

Works asSince 1/7/14

Works asSince 12/7/12

Page 17: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Why are computers so good with Graphs?• Graphs can be represented by

matrices• Very easy to compute by CPU’s• Low memory usage

Page 18: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Usage

• The Internet! (routing tables)• The Internet! (datacenters

maintenance)• GPS• Social• E-commerce• Banks (frauds)

Page 19: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

DEMONSTRATIONPlaying with Neo4J

Page 20: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Microsoft Graph

Page 21: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Why a Microsoft Graph?

• Facebook is doing it• LinkedIn too (connecting people)• Amazon too (IMDB)• Google (google knowledge)

Page 22: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Why a Microsoft Graph? (bis)• Data is in silos• Accessing different workloads is hard• Search doesn’t work• Points out new things

Page 23: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

What’s Microsoft’s Graph?• Unified API’s to:

– Authentication– Files– Groups– Sites– Mails…

• The Office Graph

Page 24: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

What’s in it?Data from:• SharePoint• Skype for

business• OD4B• Exchange• Yammer

Azure Active directoryVideo PortalSearchClients (office)More to come….

Page 25: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Data Structure

• Nodes• Actors• Edges

Page 26: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Some Edges

• Modified• Viewed• TrendingAround• WorkingWith• OrgManager• OrgColleague

Page 27: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Properties of Edges

• ActorId• ObjectId• Action Type• Time• Weight

Page 28: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Nodes Properties

• Same as the (SharePoint) search Schema

Page 29: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

How to read the Graph?

• https://graph.microsoft.com/beta (first release)

• <tenant>/_api/search/query?Querytext='*'&amp;Properties='GraphQuery:ACTOR(2962)‘&amp;SelectProperties='DocId,Edges'

Page 31: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

DEMONSTRATIONPlaying with endpoints

Page 32: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

How to extend the Graph?

• No API currently available

• Can use SharePoint MetaData

• Can use Office 365 unified API

Page 33: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Real life use cases

Page 34: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Mavention Meeting app

• App for oultook• Also works with outlook online• Gets:

– Related documents (SP, EX, OD4B…)– Informations about attendees– Opportunities and Issues (CRM)– News (web)

Page 35: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Mavention screenshots

Page 36: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Conclusion

Page 37: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Tools

• Microsoft.Graph –Pre• https://graphexplorer2.azurewebsites

.net/

• http://apisandbox.msdn.com • Azure Portal• Office 365

Page 38: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Conclusion

• Huge investments on the Graph• Right now 2 endpoints + unified API’s• Extensibility is coming• Will Allow you do make awesome

APPS

Page 39: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

To Go Further

• Other session SPBizConf• Ignite sessions• Links in the slides deck• Neo4j (+ebook)• Dev.office.com

Page 40: Sp biz conf - using office graph api

WWW.SPBIZCONF.COM

Please fill in my session feedback form available from the ‘Session Resources’ tab

on my session window.