of Web APIs at Web Scale using LD Standards F. Michel, C. - - PowerPoint PPT Presentation

of web apis at web scale using ld standards
SMART_READER_LITE
LIVE PREVIEW

of Web APIs at Web Scale using LD Standards F. Michel, C. - - PowerPoint PPT Presentation

Enabling Automatic Discovery and Querying of Web APIs at Web Scale using LD Standards F. Michel, C. Faron-Zucker, O. Corby, F. Gandon Wimmics* joint research team (Univ. Cte dAzur, Inria, CNRS, I3S, France ) Linked Data on the Web and its


slide-1
SLIDE 1 1 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France
  • F. Michel, C. Faron-Zucker, O. Corby, F. Gandon

Wimmics* joint research team (Univ. Côte d’Azur, Inria, CNRS, I3S, France) Linked Data on the Web and its Relationship

with Distributed Ledgers (LDOW/LDDL)

13 May, 2019 - San Francisco, USA

Enabling Automatic Discovery and Querying

  • f Web APIs

at Web Scale using LD Standards

* AI in bridging social semantics and formal semantics on the Web
slide-2
SLIDE 2 2 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Whom to ask to discover datasets?

voiD store

SPARQL Endpoints Status ProgrammableWeb

LODAtlas

CKAN

slide-3
SLIDE 3 3 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Restricted scope (topic, format, API…)

Need to query multiple resources, accommodate disparate interfaces, mash up results

Manual dataset/service registration

Outdated metadata Deprecated services

Limited relevance of results

Keyword-based: many irrelevant results. Metadata-based: just a first step in the selection process.

No detailed insight into the data

What resources? What properties? What relationships?

No perfect discovery solution

slide-4
SLIDE 4 4 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

3 principles to achieve automatic discovery and consumption of datasets at Web scale

  • 1. Leverage Web search engines

Harvest data portals, exploit structured markup

  • 2. Rich description of dataset/query services

Machine-readable, beyond simple metadata

  • 3. Rely on well-adopted (simple) standards

Need for consensus on technologies and practices

slide-5
SLIDE 5 5 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

The SPARQL Micro-Service Architecture

Lightweight method to query a Web API with SPARQL, and assign dereferenceable URIs to Web API resources

SPARQL Client SPARQL Micro-Service

(1) SPARQL query (2) Web API query (4) SPARQL response (3) Web API response

slide-6
SLIDE 6 6 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

A SPARQL µ-service is a CONFIGURABLE SPARQL endpoint whose ARGUMENTS delineate the graph being queried.

Endpoint: http://hostname/flickr/getPhotosByTag?tag=bridge SELECT * WHERE { ?photo a schema:Photograph; schema:name ?title; schema:contentUrl ?img. } Endpoint: http://hostname/flickr/getPhotosByTag SELECT * WHERE { ?photo a schema:Photograph; schema:keywords "bridge"; schema:name ?title; schema:contentUrl ?img. }

slide-7
SLIDE 7 7 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Example: search photos by tag using Flickr’s Web API

http://example.org/flickr/ r/ge getPh tPhotos

  • tosByTag

ag/

SPARQL µ-service

SELECT * WHERE { ?photo a schema:Photograph; schema:keywords "bridge"; schema:name ?title; schema:contentUrl ?img. }

"bridge"

slide-8
SLIDE 8 8 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Machine-readable description

  • f a dataset and its

SPARQL micro-service

slide-9
SLIDE 9 9 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

SPARQL Service Description as the framework

SPARQL SD document

ht http tp:// //exampl ple.org/f /flickr/ r/getP tPho hotosByTag/

slide-10
SLIDE 10 10 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Metadata about the dataset and micro-service

SPARQL SD document

ht http tp:// //exampl ple.org/f /flickr/ r/getP tPho hotosByTag/

slide-11
SLIDE 11 11 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Specification of the graphs produced by the µ-service

SPARQL SD document

ht http tp:// //exampl ple.org/f /flickr/ r/getP tPho hotosByTag/

Goal: give insight into the data, so applications can decide whether the service is relevant for their goal

slide-12
SLIDE 12 12 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Specification of the graphs produced by the µ-service

SPARQL SD document

ht http tp:// //exampl ple.org/f /flickr/ r/getP tPho hotosByTag/ ht http tp:// //exampl ple.or

  • rg/f

/flickr/ r/ge getP tPho hotos

  • sByTag/Sh

/Shape pesGraph

Goal: give insight into the data, so applications can decide whether the service is relevant for their goal

slide-13
SLIDE 13 13 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Description of the data source and µ-service arguments

SPARQL SD document

ht http tp:// //exampl ple.org/f /flickr/ r/getP tPho hotosByTag/

slide-14
SLIDE 14 14 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Description of the data source and µ-service arguments

SPARQL SD document

ht http tp:// //exampl ple.org/f /flickr/ r/getP tPho hotosByTag/ SELECT * WHERE { ?photo a schema:Photograph; schema:keywords "bridge"; schema:name ?title; schema:contentUrl ?img. }

slide-15
SLIDE 15 15 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Description of the data source and µ-service arguments

SPARQL SD document

ht http tp:// //exampl ple.org/f /flickr/ r/getP tPho hotosByTag/ SELECT * WHERE { ?photo a schema:Photograph; schema:keywords "bridge"; schema:name ?title; schema:contentUrl ?img. }

slide-16
SLIDE 16 16 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

SPARQL micro-service invocation

SPARQL SD graph Shapes graph SPARQL query (SPIN)

SPARQL

A single SPARQL query reasons upon

  • the Service Description graph,
  • the Shapes graph,
  • the input query,

to extract the µ-service arguments

slide-17
SLIDE 17 17 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Discover a SPARQL micro-service using web search engines

slide-18
SLIDE 18 18 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Discovery using search engines requires a web page

HTML

</>

slide-19
SLIDE 19 19 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Discovery using search engines requires a web page

schema.org

HTML

</>

slide-20
SLIDE 20 20 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Web-scale discovery of SPARQL µ-services

HTML JDON-LD

</> SPARQL SD

schema.org

*STTL: SPARQL Template Transformation Language http://ns.inria.fr/sparql-template/

STTL*

slide-21
SLIDE 21 21 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France
slide-22
SLIDE 22 22 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

< WRAP-UP >

slide-23
SLIDE 23 23 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

The global picture

HTML JDON-LD

</> SPARQL micro-service

(1) SPARQL SD graph Shapes graph SPARQL engine

slide-24
SLIDE 24 24 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

The global picture

HTML JDON-LD

</> SPARQL micro-service

(1) SPARQL SD graph Shapes graph SPARQL engine

slide-25
SLIDE 25 25 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

The global picture

HTML JDON-LD

</> SPARQL micro-service

(2) search (1)

LD-based application

SPARQL SD graph Shapes graph SPARQL engine

slide-26
SLIDE 26 26 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

The global picture

HTML JDON-LD

</> SPARQL micro-service

(2) search (1) (3) fetch

LD-based application

SPARQL SD graph Shapes graph SPARQL engine

slide-27
SLIDE 27 27 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

The global picture

HTML JDON-LD

</> SPARQL micro-service

(2) search (1) (3) fetch (4) SPARQL query

LD-based application

SPARQL SD graph Shapes graph SPARQL engine Web API (5)

slide-28
SLIDE 28 28 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France
  • 1. Leverage Web search engines

Machine-readable description to web page + Schema.org/DCAT markup data

  • 2. Rich description of dataset/query services

Metadata, SHACL, Schema.org, Hydra

  • 3. Rely on well-adopted (simple) standards

SPARQL SD, SHACL, Schema.org/DCAT

3 principles to achieve automatic discovery and consumption of SPARQL micro-services at Web scale

slide-29
SLIDE 29 29 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Perspectives

slide-30
SLIDE 30 30 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Perspectives

Demonstrate the whole chain

An application seeks to answer a query / achieve a goal:

  • Discovers candidate services using search engines
  • Selects relevant services based on SD/Shapes graphs
  • Computes & enacts valid compositions

Extend SPARQL federated query engines

  • Reason on SPARQL µ-services descriptions
  • Query plan respecting services’ inputs
slide-31
SLIDE 31 31 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Perspectives

Schema.org unpractical to denote dataset interfaces (API, endpoint…)

  • WebAPI type extensions (EntryPoint)
  • Convergence with DCAT 1.2 DataService

Google Dataset Search more effective than generic web search engines: more dataset search engines in the future? Three principles, many potential architectural/modelling choices in different contexts

slide-32
SLIDE 32 32 Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France Franck MICHEL - Université Côte d’Azur, CNRS, Inria, I3S, France

Thank-you

https://github.com/frmichel/sparql-micro-service https://hub.docker.com/u/frmichel

Ci Citatio ion:

  • F. Michel, C. Faron-Zucker, O. Corby & F. Gandon. Ena

nablin ing Auto utomatic ic Dis iscover ery and nd Query ueryin ing of

  • f Web

eb APIs s at Web Scale le us usin ing Linked Data Sta tandards. In Companion Proceedings of the 2019 World Wide Web Conference (WWW ’19 Companion), 2019, San Francisco, CA, USA.