From API directory to Semantic web

36
https://www.ted.com/talks/tim_berners_lee_on_ the_next_web

Transcript of From API directory to Semantic web

Page 1: From API directory to Semantic web

https://www.ted.com/talks/tim_berners_lee_on_the_next_web

Page 2: From API directory to Semantic web

Google Knowledge Graph

Page 3: From API directory to Semantic web

Twitter?Instagram?

Gmail?Uber?

AirBnB?...

Page 4: From API directory to Semantic web
Page 5: From API directory to Semantic web
Page 6: From API directory to Semantic web
Page 7: From API directory to Semantic web
Page 8: From API directory to Semantic web
Page 9: From API directory to Semantic web

API version

Supported protocols

Method

Method description

Link to response description

required?

Argument type

API characteristics

Method characteristics

Response

Arguments

Page 10: From API directory to Semantic web

Nobody Ever Got Fired for Buying IBMGenerating Docs & SDKs

Page 11: From API directory to Semantic web

DATA

METADATA

Page 12: From API directory to Semantic web

No changes to payload

Page 13: From API directory to Semantic web
Page 14: From API directory to Semantic web
Page 15: From API directory to Semantic web
Page 16: From API directory to Semantic web

SPEC

Page 17: From API directory to Semantic web
Page 18: From API directory to Semantic web
Page 19: From API directory to Semantic web
Page 20: From API directory to Semantic web

https://paw.cloud/

Page 21: From API directory to Semantic web
Page 22: From API directory to Semantic web
Page 23: From API directory to Semantic web
Page 24: From API directory to Semantic web
Page 25: From API directory to Semantic web

“JSON-LD and Why I Hate the Semantic Web” by Manu Spornyhttp://manu.sporny.org/2014/json-ld-origins-2/

If you want to make the Semantic Web a reality, stop making the case for it and spend your time doing something more useful, like actually making machines smarter or helping people publish data in a way that’s useful to them.

Page 26: From API directory to Semantic web

SemanticWeb

Page 27: From API directory to Semantic web

https://www.youtube.com/user/msporny/videos

http://json-ld.org/playground/

Page 28: From API directory to Semantic web
Page 29: From API directory to Semantic web
Page 30: From API directory to Semantic web

{ “First name”: “John”, “Surname”: “Smith”}

{ “Name”: “John”, “Surname”: “Smith”}

{ “Full name”: “John Smith”}

Data incompatibility

Page 31: From API directory to Semantic web

Schema incompatibility{ “type”: “object”, “properties”: { “First name”: { “type”: “string” }, “Surname”: { “type”: “string” } }}

{ “type”: “object”, “properties”: { “Name”: { “type”: “string” }, “Surname”: { “type”: “string” } }}

{ “type”: “object”, “properties”: { “Full name”: { “type”: “string” } }}

Page 32: From API directory to Semantic web

Stage #1: Scalar types

{ “type”: “object”, “properties”: { “First name”: { “type”: “string” }, “Surname”: { “type”: “string” } }}

{ “type”: “object”, “properties”: { “First name”: { “$ref”:

“http://apis.guru/types/name#” }, “Surname”: { “$ref”:

“http://apis.guru/types/surname#” } }}

Page 33: From API directory to Semantic web

● List of countries● Language codes● Postal codes● Phone codes● MIME types● etc.

Page 34: From API directory to Semantic web

{ “type”: “object”, “properties”: { “First name”: { “$ref”: “http://apis.guru/ types/name#” }, “Surname”: { “$ref”: “http://apis.guru/ types/surname#” } }}

{ “$ref”: “http://apis.guru/ types/fullname/15#”}

Stage #2: Complex types

Page 35: From API directory to Semantic web

Stage #3: type converters

function (data) { return { “Full name”: data[“First name”] + data[“Surname”] };}

{ “First name”: “John”, “Surname”: “Smith”}

{ “Full name”: “John Smith”}

Page 36: From API directory to Semantic web

[email protected] ivangon4arovhttps://git.io/APIs.guru

@APIs_guru

Join the movement