sp biz conf - using office graph api
TRANSCRIPT
Online Conference
June 17th and 18th 2015
WWW.SPBIZCONF.COM
Using Office Microsoft Graph API’s
17/06/15 – 18:00 EDT
Vincent BIRETNegotium
WWW.SPBIZCONF.COM
Vincent BIRETNegotium
Email : [email protected] : @baywetBlog : bit.ly/vince365LinkedIn : bit.ly/vbiretlinkedin
SharePoint MVPProducts Team Tech Lead
Montréal (QC) Canada
WWW.SPBIZCONF.COM
Sébastien LEVERTNegotium
Email : [email protected] : @sebastienlevertBlog : pimpthecloud.com LinkedIn :
Office 365 MVPTechnical Advisor
Montréal (QC) Canada
WWW.SPBIZCONF.COM
Who’s that session for?
• End users : understand the value
• Developers: understand the concepts
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…
WWW.SPBIZCONF.COM
Agenda
• Graph? What is this?
• Microsoft Graph
• Demonstrations
WWW.SPBIZCONF.COM
Not showing
• Office Delve
• Power BI
• Too much code (just a little)
WWW.SPBIZCONF.COM
What is the Graph?
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
WWW.SPBIZCONF.COM
Is That A Graph?Sales
1st Qtr 2nd Qtr 3rd Qtr 4th Qtr
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)
WWW.SPBIZCONF.COM
That’s a Graph!
Picture From WikiPédia
WWW.SPBIZCONF.COM
Why Graphs?
RDBMS suck!.....
At doing what they are not meant for.
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”
WWW.SPBIZCONF.COM
The Property Graph
• Nodes• Links
• Both can have a « Type »• Both can have properties• Links can have directions
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
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
WWW.SPBIZCONF.COM
Usage
• The Internet! (routing tables)• The Internet! (datacenters
maintenance)• GPS• Social• E-commerce• Banks (frauds)
WWW.SPBIZCONF.COM
DEMONSTRATIONPlaying with Neo4J
WWW.SPBIZCONF.COM
Microsoft Graph
WWW.SPBIZCONF.COM
Why a Microsoft Graph?
• Facebook is doing it• LinkedIn too (connecting people)• Amazon too (IMDB)• Google (google knowledge)
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
WWW.SPBIZCONF.COM
What’s Microsoft’s Graph?• Unified API’s to:
– Authentication– Files– Groups– Sites– Mails…
• The Office Graph
WWW.SPBIZCONF.COM
What’s in it?Data from:• SharePoint• Skype for
business• OD4B• Exchange• Yammer
Azure Active directoryVideo PortalSearchClients (office)More to come….
WWW.SPBIZCONF.COM
Data Structure
• Nodes• Actors• Edges
WWW.SPBIZCONF.COM
Some Edges
• Modified• Viewed• TrendingAround• WorkingWith• OrgManager• OrgColleague
WWW.SPBIZCONF.COM
Properties of Edges
• ActorId• ObjectId• Action Type• Time• Weight
WWW.SPBIZCONF.COM
Nodes Properties
• Same as the (SharePoint) search Schema
WWW.SPBIZCONF.COM
How to read the Graph?
• https://graph.microsoft.com/beta (first release)
• <tenant>/_api/search/query?Querytext='*'&Properties='GraphQuery:ACTOR(2962)‘&SelectProperties='DocId,Edges'
WWW.SPBIZCONF.COM
Few endpoints
• https://outlook.office365.com/api/BETA/me/TrendingAround
• https://outlook.office365.com/api/BETA/Users(‘[email protected]’)
• https://outlook.office365.com/api/BETA/me/WorkingWith
WWW.SPBIZCONF.COM
DEMONSTRATIONPlaying with endpoints
WWW.SPBIZCONF.COM
How to extend the Graph?
• No API currently available
• Can use SharePoint MetaData
• Can use Office 365 unified API
WWW.SPBIZCONF.COM
Real life use cases
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)
WWW.SPBIZCONF.COM
Mavention screenshots
WWW.SPBIZCONF.COM
Conclusion
WWW.SPBIZCONF.COM
Tools
• Microsoft.Graph –Pre• https://graphexplorer2.azurewebsites
.net/
• http://apisandbox.msdn.com • Azure Portal• Office 365
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
WWW.SPBIZCONF.COM
To Go Further
• Other session SPBizConf• Ignite sessions• Links in the slides deck• Neo4j (+ebook)• Dev.office.com
WWW.SPBIZCONF.COM
Please fill in my session feedback form available from the ‘Session Resources’ tab
on my session window.