SlideShare a Scribd company logo
1 of 22
Download to read offline
Alexa, AWS Lambda
& Wikidata
Ciao
I’m Giorgio Cefaro
Lead Software Engineer
at
@giorrrgio
WE ARE
HIRING!frontend developer needed
👉 giorgio.cefaro@hootsuite.com
1.
Creare skill
Invocation name, intents e slot
Invocation Name
Il nome che se pronunciato attiverà la skill
■ Alexa chiedi a Previsioni del tempo che
tempo farà domani
■ Alexa chiedi a Gattini di fare le fusa
Intents
I possibili comportamenti di una skill
■ Alexa chiedi a Previsioni del tempo che
tempo farà domani
■ Alexa chiedi a Gattini di fare le fusa per
un minuto
Utterances
Le variazioni dello stesso intent per
migliorare l’esperienza utente
■ Alexa chiedi a Gattini di fare le fusa per
un minuto
■ Alexa chiedi a Gattini di riprodurre le
fusa per un minuto
Attenzione! Una skill, anche se ben programmata, potrebbe essere rifiutata in fase di review per
mancanza di flessibilità nelle Utterance!
Slot
La parte variabile di una utterance
■ Alexa chiedi a Previsioni del tempo che
tempo farà domani
■ Alexa chiedi a Gattini di fare le fusa per
un minuto
2.
Sviluppare skill
con AWS Lambda
Scegli tra i linguaggi disponibili, dimenticati dei server,
piano gratuito già sufficiente per i primi passi
3.
Usare wikidata
Un database immenso interrogabile attraverso
SPARQL con api liberamente utilizzabili
WIKIDATA
Wikidata è un database delle conoscenze. Contiene
molte dichiarazioni come “la capitale del Canada è
Ottawa”, o “La Gioconda è un dipinto a olio su tavola di
legno di pioppo”, o “l'oro ha una capacità termica di 25
418 joule per mole-kelvin”.
https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/it
SPARQL
SPARQL è un linguaggio per formulare domande (query)
per i database delle conoscenze. Con il giusto database,
una query SPARQL può rispondere a domande come “qual
è la tonalità più popolare nella musica?” o “quale
personaggio è stato interpretato dal maggior numero di
attori?” o “qual è la distribuzione del tipo di sangue?” o
“quali opere e di quali autori sono entrate nel pubblico
dominio quest'anno?
https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/it
https://query.wikidata.org
Interrogare Wikidata con SPARQL
SELECT ?book ?book_label ?authorLabel ?genre_label ?series_label ?publicationDate ?year
WHERE {
?author ?label "Agatha Christie"@it.
?book wdt:P31 wd:Q571.
?book wdt:P50 ?author.
?book rdfs:label ?book_label.
OPTIONAL {
?book wdt:P136 ?genre.
?genre rdfs:label ?genre_label.
FILTER((LANG(?genre_label)) = "it")
}
OPTIONAL { ?book wdt:P577 ?publicationDate. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it". }
BIND(YEAR(?publicationDate) AS ?year)
FILTER((LANG(?book_label)) = "it")
}
http://tinyurl.com/y6q494o
o
Mostraci il codice!
https://github.com/giorrrgio/alexa-aws-wikidata
Thanks!
Any questions?
@giorrrgio

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Alexa, AWS lambda & wikidata (ITA)

  • 2. Ciao I’m Giorgio Cefaro Lead Software Engineer at @giorrrgio
  • 3. WE ARE HIRING!frontend developer needed 👉 giorgio.cefaro@hootsuite.com
  • 5. Invocation Name Il nome che se pronunciato attiverà la skill ■ Alexa chiedi a Previsioni del tempo che tempo farà domani ■ Alexa chiedi a Gattini di fare le fusa
  • 6. Intents I possibili comportamenti di una skill ■ Alexa chiedi a Previsioni del tempo che tempo farà domani ■ Alexa chiedi a Gattini di fare le fusa per un minuto
  • 7. Utterances Le variazioni dello stesso intent per migliorare l’esperienza utente ■ Alexa chiedi a Gattini di fare le fusa per un minuto ■ Alexa chiedi a Gattini di riprodurre le fusa per un minuto Attenzione! Una skill, anche se ben programmata, potrebbe essere rifiutata in fase di review per mancanza di flessibilità nelle Utterance!
  • 8. Slot La parte variabile di una utterance ■ Alexa chiedi a Previsioni del tempo che tempo farà domani ■ Alexa chiedi a Gattini di fare le fusa per un minuto
  • 9. 2. Sviluppare skill con AWS Lambda Scegli tra i linguaggi disponibili, dimenticati dei server, piano gratuito già sufficiente per i primi passi
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. 3. Usare wikidata Un database immenso interrogabile attraverso SPARQL con api liberamente utilizzabili
  • 17. WIKIDATA Wikidata è un database delle conoscenze. Contiene molte dichiarazioni come “la capitale del Canada è Ottawa”, o “La Gioconda è un dipinto a olio su tavola di legno di pioppo”, o “l'oro ha una capacità termica di 25 418 joule per mole-kelvin”. https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/it
  • 18. SPARQL SPARQL è un linguaggio per formulare domande (query) per i database delle conoscenze. Con il giusto database, una query SPARQL può rispondere a domande come “qual è la tonalità più popolare nella musica?” o “quale personaggio è stato interpretato dal maggior numero di attori?” o “qual è la distribuzione del tipo di sangue?” o “quali opere e di quali autori sono entrate nel pubblico dominio quest'anno? https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/it
  • 20. Interrogare Wikidata con SPARQL SELECT ?book ?book_label ?authorLabel ?genre_label ?series_label ?publicationDate ?year WHERE { ?author ?label "Agatha Christie"@it. ?book wdt:P31 wd:Q571. ?book wdt:P50 ?author. ?book rdfs:label ?book_label. OPTIONAL { ?book wdt:P136 ?genre. ?genre rdfs:label ?genre_label. FILTER((LANG(?genre_label)) = "it") } OPTIONAL { ?book wdt:P577 ?publicationDate. } SERVICE wikibase:label { bd:serviceParam wikibase:language "it". } BIND(YEAR(?publicationDate) AS ?year) FILTER((LANG(?book_label)) = "it") } http://tinyurl.com/y6q494o o