Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Hypermicrodata Client
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Kunihiko Ito
November 29, 2014
Programming
85
0
Share
Hypermicrodata Client
TokyuRuby会議08 の "Hypermicrodata Client" の発表資料
Kunihiko Ito
November 29, 2014
More Decks by Kunihiko Ito
See All by Kunihiko Ito
データでふりかえるToyama.rb #100 2024
kunitoo
0
53
富山Ruby会議01 をふりかえる
kunitoo
0
72
Using Ractor
kunitoo
0
190
introduction neo4j
kunitoo
0
180
vim operation and my hotkey
kunitoo
0
180
Introduction Neo4j oblove calendar
kunitoo
0
1.5k
アジャイルソフトウェア開発の概要と現場での実践
kunitoo
0
2.2k
Introduction of neo4j
kunitoo
0
2k
Ruby 2.3 のてざわり
kunitoo
2
500
Other Decks in Programming
See All in Programming
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
2.2k
さぁV100、メモリをお食べ・・・
nilpe
0
130
プロパティの順序で型推論が壊れる!? TypeScript6.0の修正からContext-Sensitivityの仕組みを追う
bicstone
2
1.3k
ローカルLLMを使ってB2Bサービスを作っていての学び
yaotti
0
120
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
140
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
12k
Oxlintのカスタムルールの現況
syumai
5
990
エージェンティックRAGにAWSで入門しよう!
har1101
7
700
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
340
SPMマルチモジュールで テストカバレッジを取得する技法
yosshi4486
0
140
TSKaigi 2026 TypeScriptバックエンドのオブザーバビリティ戦略 — Datadog × NestJSの実践
taiseiyamamotoan
2
280
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
2.7k
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
GraphQLとの向き合い方2022年版
quramy
50
15k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.5k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.6k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
570
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Scaling GitHub
holman
464
140k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Transcript
Hypermicrodat a client Kunihiko Ito 永和システムマネジメント
はじめに Ruby Kaigi 2014 参加しました?
今日話すこと Ruby Kaigi 2014 で感じたこと 試してみたこと
参加しました? Hypermedia: The Missing Element to Building Adaptable Web APIs
in Rails
聞いていない方 Video: http:// rubykaigi.org/2014/ presentation/S- ToruKawamura
はじめまして 初参加 Kunihiko Ito @kunitoo
概要 Hypermedia: The Missing Element to Building Adaptable Web APIs
in Rails 疎結合なAPI 状態遷移をレスポンスに含める 設計 WEB API
hypermicrodata HTMLをJSONに変換 HTMLから抽出 mirodata リンク フォーム
あらためて Video: http:// rubykaigi.org/2014/ presentation/S- ToruKawamura
感じたこと サーバは簡単に作成できそう クライアント難しくなりそう
実際に作ってみよう! rails g scaffold User name email view に microdata
を付加
show.html.haml .person{itemscope: true, itemtype: 'http://schema.org/Person', itemid: users_url(@user), data: {main_item: true}}
.media .media-body %p#notice= notice %p %strong Name: %span{itemprop: 'name'}= @user.name %p %strong Email: %span{itemprop: 'email'}= @user.email = link_to 'Edit', edit_user_path(@user), rel: 'edit' | \#{link_to 'Back', users_path, rel: 'collection', itemprop: 'isPartOf'}
uber+json { "uber":{ "version":"1.0", "data":[ { "url":"http://localhost:3000/users.1", "name":"Person", "data":[ {
"name":"name", "value":"Kunihiko Ito" }, { "name":"email", "value":"
[email protected]
" }, { "name":"isPartOf", "rel":"collection", "url":"/users" }, { "rel":"edit", "url":"/users/1/edit" } ] } ] } }
アイディア クライアントが hypermicrodata と 同じルールで読みとれれば 簡単に作れるようになるのでは?
やってみて microdata の付加が難しい http://schema.org/ メタ的に考える必要がある もっとデフォルトでできるとう れしい
hypermicrodata client みなさんも挑戦してみて下さい