Graphs in Action

Post on 08-Jan-2017

369 views 0 download

transcript

Graphs in ActionNathan T. Freeman

Challenge the way you think about Notes data

Change the way you approach your next project

Bring you faster, better results with your own data

What is A Graph?

Graph Database

Elements(vertexes and edges)

Key/Value pairs

Index-free adjacency

People graph

Nathan

knows

Mac

Movie graph

The Matrix

stars

Keanu Reevesportrays

appearsIn

Neo

Order graph

Customer

Orders

Purchase OrderPONumber

ProductNameDescription

ContainsUnit PriceQuantity

Graph Databases

Graph Computing

Frames

Pipes

Furnace

Blueprints

RexsterGremlin

Who Uses Graphs?

The World Today

Open Graph

Knowledge Graph

Knowledge Graph

Offi

ce Graph

Delve

SatoriKnow

ledge Graph

13 billion edges

20k writes/second

100k reads/second

NSA

Graphs & NSF

Any NSF can be included in a graph

Any document can be a vertex

Any view entry can be an

edge

OpenN

TF Domino API

Graph 2.0

Customer:CustomerId

Order:OrderId

:CustomerId

Orders

Orders.nsf

Customer.nsfOrders By Customer

What Are Frames?

Java objects stored in graphs

Annoted Interfaces

Example 1

VertexFrame: LikeableVertexFrame: LikerEdgeFrame: Likes

Example 2

VertexFrame: Replica extends Likeablereplid, titleVertexFrame: Databaseserver, filepathEdgeFrame: Database InstanceOf ReplicaVertexFrame: Viewtitle, isCalendarEdgeFrame: View FoundIn ReplicaEdgeFrame: View IndexedIn DatabaseisBuilt

Frames & NSF

Any NSF can hold frames

Form item determines

frame type via @TypeValue

IntroducingODA REST

ODA REST

Domino Access

Services extension

Graph aware

Frameaware

Syntax: Route

/server/api/oda/

Syntax: Route

/namespace

Syntax: Route

/frames

/frame

/command

/schema

Syntax: Parameters

?id=

?type=

?command=

Syntax: Parameters

&edges=

&labels=

&props=

Syntax: Parameters

&inprops=

&outprops=

&vertices=

Syntax: Parameters

&filterkey=

&filtervalue=

&orderby=

&start=

&count=

Nathan T Freeman

ntf@redpillnow.com

@ntf

redpillnow.comwww

Acapulco, Mexico

Nathanfreeman.wordpress.com