SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
Extending OPDS



            Hadrien Gardeur
            Feedbooks
OPDS is an extension
Basic OPDS catalog

Atom feeds
Same requirements than an Atom entry
 atom:title
 atom:author
 atom:id
 atom:updated

If it’s a publication, the requirement is at least one
acquisition link.
Scary but Cool stuff
element atom:entry {
         atomCommonAttributes,
         (atomAuthor*
          & atomCategory*
          & atomContent?
          & atomContributor*
          & atomId
          & atomLink*
          & atomPublished?
          & atomRights?
          & atomSource?
          & atomSummary?
          & atomTitle            Cool !
          & atomUpdated
         & extensionElement*)
}
Metadata

 Atom
 DublinCore Terms (dcterms:issued)
 Prism (prism:issue)
 New attributes in the OPDS namespace
      (opds:price, opds:gateway)
Link Relations

 For feed-level or entry-level links
 Give a meaning to what you’re linking to
 Different type, different meaning

In OPDS we use:
1. Link relations from the IANA link registry  Link header draft
2. Our own link relations (http://opds-spec.org/relation)
Why ?
More Metadata

 Support new type of publications
 Provide more and better information
… without affecting the user experience on mobile devices
 More meaningful links
New Features

 Comments (implemented on Feedbooks)
 Reviews
 Annotations
 Publishing (implemented on Feedbooks)
 OPDS shopping cart
How ?
Partial & Full Entries

Like in AtomPub, you shouldn’t assume that an entry in a
collection feed is a full entry

A partial entry can link to a full entry
<atom:link rel="alternate" type= "application/atom+xml;type=entry" href=" …" />

 Required & Recommended metadata MUST be in partial
You can add anything you want in full entries
New Link Relations

 Use link relations from the Link Header draft
 New features in OPDS: http://opds-spec.org/relation
 Create your own: http://mydomain.com/relation

Associate a link with a new type
… or media parameters in a type
Use AtomPub !

Don’t limit yourself to GET requests !
CRUD with POST, GET, UPDATE and DELETE

AtomPub = Service Documents, Workspaces and Collections

New link relations: edit, edit-media
Example: Comments
On Feedbooks

Based on the Atom Threading Extension
 Link Relations: replies, in-reply-to
 Attributes: thr:count, thr:updated

AtomPub to POST comment (no UPDATE or DELETE)
In our entries

Nothing in the partial entry, MUST GET full entry

<atom:link rel="replies" thr:count="2" thr:updated="…" />

 thr:count gives the total number of comments
 thr:updated is the timestamp for the last update (last comment)
Collection feed for
                     Comments
A comment is a normal Atom entry
 atom:author for the user
 atom:content for the comment

app:collection to POST content (no service document)
 href attribute for the URI
 app:accept to list the types (application/atom+xml;type=entry)
Best Practices

Don’t create stuff on your own
 search for RFCs
 read and participate on mailing lists: atom-syntax, atom & opds
 Use the IANA link registry and Link Header draft

Use link relations
Metadata not included in the specs MUST be in the full entry
That’s all folks !

Weitere ähnliche Inhalte

Ähnlich wie Extending Opds

STAT Requirement Analysis
STAT Requirement AnalysisSTAT Requirement Analysis
STAT Requirement Analysisstat
 
Api wiki · git hub
Api wiki · git hubApi wiki · git hub
Api wiki · git hubFerry Irawan
 
Open Access Publishing on the Semantic Web
Open Access Publishing  on the  Semantic WebOpen Access Publishing  on the  Semantic Web
Open Access Publishing on the Semantic WebRichard Cave
 
Introduction to the Topaz OTM framework and the Ambra publishing system
Introduction to the Topaz OTM framework and the Ambra publishing systemIntroduction to the Topaz OTM framework and the Ambra publishing system
Introduction to the Topaz OTM framework and the Ambra publishing systemRichard Cave
 
Miyagawa
MiyagawaMiyagawa
Miyagawaguru100
 
KaTe RESTful adapter for SAP Process Integration: Introduction
KaTe RESTful adapter for SAP Process Integration: IntroductionKaTe RESTful adapter for SAP Process Integration: Introduction
KaTe RESTful adapter for SAP Process Integration: IntroductionKate_RESTful
 
Introduction to AtomPub Web Services
Introduction to AtomPub Web ServicesIntroduction to AtomPub Web Services
Introduction to AtomPub Web ServicesBen Ramsey
 

Ähnlich wie Extending Opds (20)

STAT Requirement Analysis
STAT Requirement AnalysisSTAT Requirement Analysis
STAT Requirement Analysis
 
Api wiki · git hub
Api wiki · git hubApi wiki · git hub
Api wiki · git hub
 
Introduction to Hydra
Introduction to HydraIntroduction to Hydra
Introduction to Hydra
 
RSS feeds
RSS feedsRSS feeds
RSS feeds
 
Cs 891 2rev B
Cs 891 2rev BCs 891 2rev B
Cs 891 2rev B
 
Drupal web services
Drupal web servicesDrupal web services
Drupal web services
 
Open Access Publishing on the Semantic Web
Open Access Publishing  on the  Semantic WebOpen Access Publishing  on the  Semantic Web
Open Access Publishing on the Semantic Web
 
Atom and rss
Atom and rssAtom and rss
Atom and rss
 
Rest web service
Rest web serviceRest web service
Rest web service
 
Introduction to the Topaz OTM framework and the Ambra publishing system
Introduction to the Topaz OTM framework and the Ambra publishing systemIntroduction to the Topaz OTM framework and the Ambra publishing system
Introduction to the Topaz OTM framework and the Ambra publishing system
 
Data in RDF
Data in RDFData in RDF
Data in RDF
 
REST Presentation
REST PresentationREST Presentation
REST Presentation
 
PDFArticle
PDFArticlePDFArticle
PDFArticle
 
RAML
RAMLRAML
RAML
 
Miyagawa
MiyagawaMiyagawa
Miyagawa
 
Miyagawa
MiyagawaMiyagawa
Miyagawa
 
Miyagawa
MiyagawaMiyagawa
Miyagawa
 
Miyagawa
MiyagawaMiyagawa
Miyagawa
 
KaTe RESTful adapter for SAP Process Integration: Introduction
KaTe RESTful adapter for SAP Process Integration: IntroductionKaTe RESTful adapter for SAP Process Integration: Introduction
KaTe RESTful adapter for SAP Process Integration: Introduction
 
Introduction to AtomPub Web Services
Introduction to AtomPub Web ServicesIntroduction to AtomPub Web Services
Introduction to AtomPub Web Services
 

Kürzlich hochgeladen

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Kürzlich hochgeladen (20)

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Extending Opds

  • 1. Extending OPDS Hadrien Gardeur Feedbooks
  • 2. OPDS is an extension
  • 3. Basic OPDS catalog Atom feeds Same requirements than an Atom entry  atom:title  atom:author  atom:id  atom:updated If it’s a publication, the requirement is at least one acquisition link.
  • 4. Scary but Cool stuff element atom:entry { atomCommonAttributes, (atomAuthor* & atomCategory* & atomContent? & atomContributor* & atomId & atomLink* & atomPublished? & atomRights? & atomSource? & atomSummary? & atomTitle Cool ! & atomUpdated & extensionElement*) }
  • 5. Metadata  Atom  DublinCore Terms (dcterms:issued)  Prism (prism:issue)  New attributes in the OPDS namespace (opds:price, opds:gateway)
  • 6. Link Relations  For feed-level or entry-level links  Give a meaning to what you’re linking to  Different type, different meaning In OPDS we use: 1. Link relations from the IANA link registry  Link header draft 2. Our own link relations (http://opds-spec.org/relation)
  • 8. More Metadata  Support new type of publications  Provide more and better information … without affecting the user experience on mobile devices  More meaningful links
  • 9. New Features  Comments (implemented on Feedbooks)  Reviews  Annotations  Publishing (implemented on Feedbooks)  OPDS shopping cart
  • 10. How ?
  • 11. Partial & Full Entries Like in AtomPub, you shouldn’t assume that an entry in a collection feed is a full entry A partial entry can link to a full entry <atom:link rel="alternate" type= "application/atom+xml;type=entry" href=" …" />  Required & Recommended metadata MUST be in partial You can add anything you want in full entries
  • 12. New Link Relations  Use link relations from the Link Header draft  New features in OPDS: http://opds-spec.org/relation  Create your own: http://mydomain.com/relation Associate a link with a new type … or media parameters in a type
  • 13. Use AtomPub ! Don’t limit yourself to GET requests ! CRUD with POST, GET, UPDATE and DELETE AtomPub = Service Documents, Workspaces and Collections New link relations: edit, edit-media
  • 15. On Feedbooks Based on the Atom Threading Extension  Link Relations: replies, in-reply-to  Attributes: thr:count, thr:updated AtomPub to POST comment (no UPDATE or DELETE)
  • 16. In our entries Nothing in the partial entry, MUST GET full entry <atom:link rel="replies" thr:count="2" thr:updated="…" />  thr:count gives the total number of comments  thr:updated is the timestamp for the last update (last comment)
  • 17. Collection feed for Comments A comment is a normal Atom entry  atom:author for the user  atom:content for the comment app:collection to POST content (no service document)  href attribute for the URI  app:accept to list the types (application/atom+xml;type=entry)
  • 18. Best Practices Don’t create stuff on your own  search for RFCs  read and participate on mailing lists: atom-syntax, atom & opds  Use the IANA link registry and Link Header draft Use link relations Metadata not included in the specs MUST be in the full entry