semi automa cally modeling web apis to create linked apis
play

Semi-Automa+cally Modeling Web APIs to Create Linked APIs - PowerPoint PPT Presentation

Semi-Automa+cally Modeling Web APIs to Create Linked APIs Mohsen Taheriyan, Craig A. Knoblock, Pedro Szekely, and Jose Luis Ambite USC Information


  1. Semi-­‑Automa+cally ¡Modeling ¡ Web ¡APIs ¡to ¡Create ¡Linked ¡APIs ¡ ¡ Mohsen ¡Taheriyan, ¡Craig ¡A. ¡Knoblock, ¡ Pedro ¡Szekely, ¡and ¡Jose ¡Luis ¡Ambite ¡ ¡ USC ¡Information ¡Sciences ¡Institute ¡ ¡ ¡

  2. dbpedia.org � Slide ¡by ¡Shubham ¡Gupta ¡

  3. not � dbpedia.org � Current ¡temperature ¡ ¡ ¡73°F ¡ ¡ Live ¡weather ¡ Wind ¡ ¡ ¡ ¡ ¡10 ¡mph ¡SW ¡ Humidity ¡ ¡ ¡ ¡51% ¡ Dew ¡Point ¡ ¡ ¡ ¡54° ¡ Slide ¡by ¡Shubham ¡Gupta ¡

  4. not � dbpedia.org � Current ¡temperature ¡ ¡ ¡73°F ¡ ¡ Wind ¡ ¡ ¡ ¡ ¡10 ¡mph ¡SW ¡ Humidity ¡ ¡ ¡ ¡51% ¡ Dew ¡Point ¡ ¡ ¡ ¡54° ¡ Events ¡ Events ¡ ¡ ¡ ¡ ¡Transparent ¡Ci+es ¡5/1/2012 ¡REDCAT ¡Theater ¡ ¡ ¡ ¡ ¡ ¡Saving ¡Our ¡Sons ¡: ¡A ¡Community ¡Conversa+o… ¡ ¡ ¡ ¡ ¡ ¡… ¡ Slide ¡by ¡Shubham ¡Gupta ¡

  5. not � dbpedia.org � Current ¡temperature ¡ ¡ ¡73°F ¡ ¡ Wind ¡ ¡ ¡ ¡ ¡10 ¡mph ¡SW ¡ Humidity ¡ ¡ ¡ ¡51% ¡ Dew ¡Point ¡ ¡ ¡ ¡54° ¡ Events ¡ ¡ ¡ ¡ ¡Transparent ¡Ci+es ¡5/1/2012 ¡REDCAT ¡Theater ¡ ¡ ¡ ¡ ¡ ¡Saving ¡Our ¡Sons ¡: ¡A ¡Community ¡Conversa+o… ¡ ¡ ¡ ¡ ¡ ¡… ¡ Live ¡Twitter ¡Feed ¡ TwiUer ¡Feed ¡ ¡ ¡ ¡Los ¡Angeles ¡becomes ¡the ¡largest ¡U.S. ¡city ¡to ¡ban.. ¡ ¡ ¡ ¡ ¡ ¡Plas+c ¡grocery ¡bags ¡will ¡now ¡be ¡banned ¡in ¡… ¡ ¡ ¡ ¡ ¡ ¡… ¡ Slide ¡by ¡Shubham ¡Gupta ¡

  6. But, ¡the ¡Information ¡is ¡ Available ¡in ¡Web ¡APIs ¡…. ¡ Current ¡temperature ¡ ¡ ¡73°F ¡ ¡ Wind ¡ ¡ ¡ ¡ ¡10 ¡mph ¡SW ¡ Humidity ¡ ¡ ¡ ¡51% ¡ Dew ¡Point ¡ ¡ ¡ ¡54° ¡ Events ¡ ¡ ¡ ¡ ¡Transparent ¡Ci+es ¡5/1/2012 ¡REDCAT ¡Theater ¡ ¡ ¡ ¡ ¡ ¡Saving ¡Our ¡Sons ¡: ¡A ¡Community ¡Conversa+o… ¡ ¡ ¡ ¡ ¡ ¡… ¡ TwiUer ¡Feed ¡ ¡ ¡ ¡Los ¡Angeles ¡becomes ¡the ¡largest ¡U.S. ¡city ¡to ¡ban.. ¡ ¡ ¡ ¡ ¡ ¡Plas+c ¡grocery ¡bags ¡will ¡now ¡be ¡banned ¡in ¡… ¡ ¡ ¡ ¡ ¡ ¡… ¡ Slide ¡by ¡Shubham ¡Gupta ¡

  7. Current ¡temperature ¡ ¡ ¡73°F ¡ ¡ Wind ¡ ¡ ¡ ¡ ¡10 ¡mph ¡SW ¡ Humidity ¡ ¡ ¡ ¡51% ¡ Dew ¡Point ¡ ¡ ¡ ¡54° ¡ Events ¡ ¡ ¡ ¡ ¡Transparent ¡Ci+es ¡5/1/2012 ¡REDCAT ¡Theater ¡ ¡ ¡ ¡ ¡ ¡Saving ¡Our ¡Sons ¡: ¡A ¡Community ¡Conversa+o… ¡ ¡ ¡ ¡ ¡ ¡… ¡ TwiUer ¡Feed ¡ ¡ ¡ ¡Los ¡Angeles ¡becomes ¡the ¡largest ¡U.S. ¡city ¡to ¡ban.. ¡ ¡ ¡ ¡ ¡ ¡Plas+c ¡grocery ¡bags ¡will ¡now ¡be ¡banned ¡in ¡… ¡ ¡ ¡ ¡ ¡ ¡… ¡ Slide ¡by ¡Shubham ¡Gupta ¡

  8. The ¡Problem ¡ Web-­‑service ¡ JSON/XML ¡ Invocation ¡request ¡ http://free.worldweatheronline.com/feed/…. format=csv ? ¡ ? ¡ RDF ¡ RDF/SPARQL ¡Query ¡ Slide ¡by ¡Shubham ¡Gupta ¡

  9. Modeling ¡APIs ¡ • Input ¡ – Examples ¡of ¡the ¡request ¡URLs ¡ – Ontology ¡ • Output ¡ – A ¡semantic ¡model ¡of ¡the ¡API ¡built ¡interactively ¡ Slide ¡by ¡Mohsen ¡Taheriyan ¡

  10. Approach ¡ API Invocation Annotating Inputs and Outputs Extracting Relationships Slide ¡by ¡Mohsen ¡Taheriyan ¡

  11. Service ¡Invoca+on ¡ KARMA ¡ Sample ¡Request ¡ ¡ URLs ¡ Invoking ¡ API ¡ Inputs ¡ Outputs ¡ Slide ¡by ¡Mohsen ¡Taheriyan ¡

  12. Annota+ng ¡Inputs ¡and ¡Outputs ¡ • Using ¡Conditional ¡Random ¡Fields ¡(CRF) ¡to ¡assign ¡a ¡ semantic ¡type ¡ to ¡each ¡column ¡ • Semantic ¡Types ¡ – Class ¡ – Data ¡property ¡and ¡domain ¡ • Example ¡ – OWL ¡Class: ¡State ¡ • http://dbpedia.org/page/California ¡ – OWL ¡Data ¡Property, ¡Domain ¡class: ¡State.name ¡ • Califonia ¡ Slide ¡by ¡Mohsen ¡Taheriyan ¡

  13. Weather ¡Ontology ¡ windSpeed WindEvent windDirection description hasWindEvent humidity WeatherObesrvation hasDate temperature hasObservation hasTemperatureEvent WeatherReport name TemperatureEvent hasStation Station icao dewPoint hasLocation in SpatialThing name City State Slide ¡by ¡Mohsen ¡Taheriyan ¡

  14. windSpeed WindEvent windDirection description hasWindEvent humidity WeatherObesrvation hasDate temperature hasObservation hasTemperatureEvent WeatherReport TemperatureEvent name hasStation Station icao dewPoint hasLocation in SpatialThing name City State WeatherObserva<on.descrip<on ¡ City.name ¡ Sta<on.ICAO ¡ WindEvent.windSpeed ¡ State.name ¡ WeatherObserva<on.humidity ¡ WeatherReport.hasDate ¡ TemperatureEvent.tempeature ¡ Wrong ¡Label ¡ TemperatureEvent.temperature ¡ Slide ¡by ¡Mohsen ¡Taheriyan ¡

  15. Extrac+ng ¡the ¡Rela+onships ¡ • Construct ¡a ¡graph ¡from ¡ – Assigned ¡Semantic ¡Types ¡ – Ontology ¡Graph ¡ • Select ¡minimal ¡tree ¡that ¡connects ¡all ¡semantic ¡types ¡ – A ¡customized ¡Steiner ¡tree ¡algorithm ¡ • Steiner ¡minimal ¡tree ¡(SMT) ¡ ¡ – G=(V,E) ¡ ¡, ¡S ¡ ⊂ ¡V, ¡ ¡c: ¡E ¡ →ℜ ¡(S: ¡Steiner ¡Nodes) ¡ – Shortest ¡network ¡connecting ¡vertices ¡of ¡T ¡ – Approximation ¡Alg. ¡[Kou ¡& ¡Markowsky, ¡1981] ¡ • O(|V| 2 |S|) ¡, ¡Approximation ¡Ratio: ¡less ¡than ¡2 ¡ Slide ¡by ¡Mohsen ¡Taheriyan ¡

  16. Construc+ng ¡Graph ¡ • Graph ¡Initialization ¡ – Add ¡one ¡node ¡for ¡each ¡semantic ¡type ¡ – For ¡data ¡property ¡types, ¡also ¡add ¡the ¡domain ¡(if ¡not ¡added ¡before) ¡ name name City State description temperature hasDate icao humidity windSpeed temperature WeatherReport Station WeatherObesrvation WindEvent TemperatureEvent Slide ¡by ¡Mohsen ¡Taheriyan ¡

  17. Construc+ng ¡Graph ¡ • Compute ¡Nodes ¡Closure ¡ – Object ¡Property ¡or ¡ hasSubClass ¡relations ¡ Spa<alThing ¡– ¡hasSubClass ¡  ¡City ¡ SpatialThing name name City State description temperature hasDate icao humidity windSpeed temperature WeatherReport Station WeatherObesrvation WindEvent TemperatureEvent Slide ¡by ¡Mohsen ¡Taheriyan ¡

  18. Construc+ng ¡Graph ¡ Adding ¡the ¡Links ¡ • – Put ¡a ¡link ¡with ¡w=1 ¡from ¡the ¡domains ¡to ¡data ¡property ¡nodes ¡ – For ¡every ¡pair ¡of ¡class ¡nodes ¡like ¡A ¡and ¡B: ¡ • Put ¡a ¡link ¡with ¡w=1 ¡from ¡A ¡to ¡B ¡if ¡there ¡is ¡a ¡direct ¡or ¡inferred ¡object ¡property ¡in ¡the ¡ ontology ¡ • If ¡B ¡is ¡a ¡direct ¡or ¡inferred ¡subclass ¡of ¡A, ¡put ¡a ¡link ¡with ¡w=1/ ε ¡from ¡A ¡to ¡B ¡ description windspeed hmidity hasDate WindEvent temperature WeatherObesrvation WeatherReport TemperatureEvent temperature Station icao hasLocation 1/ ε ¡ 1/ ε ¡ name SpatialThing name State City in Slide ¡by ¡Mohsen ¡Taheriyan ¡

  19. Steiner ¡Tree ¡ description windSpeed HUMIDITY hasDate WindEvent temperature WeatherObesrvation WeatherReport TemperatureEvent temperature Station icao hasLocation 1/ ε ¡ 1/ ε ¡ name SpatialThing name State City in Wrong ¡ Slide ¡by ¡Mohsen ¡Taheriyan ¡ Link ¡ Steiner ¡Nodes: ¡Semantic ¡Types ¡(Blue ¡Ovals) ¡

  20. Visualizing ¡Model ¡in ¡Karma ¡ Slide ¡by ¡Mohsen ¡Taheriyan ¡

  21. Refinement ¡– ¡Change ¡Seman+c ¡Types ¡ Slide ¡by ¡Mohsen ¡Taheriyan ¡

  22. Refinement ¡– ¡Adjust ¡the ¡links ¡ Click ¡on ¡State ¡ Slide ¡by ¡Mohsen ¡Taheriyan ¡

  23. Final ¡Model ¡in ¡Karma ¡ Slide ¡by ¡Mohsen ¡Taheriyan ¡

  24. Status ¡ Web-­‑service ¡ JSON/XML ¡ Invocation ¡request ¡ http://free.worldweatheronline.com/feed/…. format=csv Karma ¡ RDF ¡ RDF/SPARQL ¡Query ¡ Slide ¡by ¡Pedro ¡Szekely ¡

  25. Generate ¡Other ¡Models? ¡ MSM ¡ Model ¡ LOS ¡ Karma ¡ Model ¡ Model ¡ LIDS ¡ Model ¡ Slide ¡by ¡Pedro ¡Szekely ¡

  26. Challenge ¡1: ¡Live ¡Weather ¡in ¡DBPedia ¡(For ¡Every ¡City) ¡ Current ¡temperature ¡ ¡ ¡73°F ¡ ¡ Wind ¡ ¡ ¡ ¡ ¡10 ¡mph ¡SW ¡ Humidity ¡ ¡ ¡ ¡51% ¡ Dew ¡Point ¡ ¡ ¡ ¡54° ¡ Slide ¡by ¡Pedro ¡Szekely ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend