Discussion
Loading...

Discussion

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
@reiver ⊼ (Charles) :batman:
@reiver@mastodon.social  ·  activity timestamp 3 days ago

2/

How could you represent a quotation in ActivityPub‽

...

I suppose there are 2 major approaches.

Either use an existing Object Type. Maybe:

type="Note"

Or create a new Object Type:

type="Quotation"

...

Here is the interesting thing though —

#ActivityPub#ActivityStreams#FediDev#Fediverse#ObjectTypeNote#ObjectTypeQuotation

  • Copy link
  • Flag this post
  • Block
silverpill
@silverpill@mitra.social replied  ·  activity timestamp 3 days ago

@reiver I think a <blockquote> element could be used:

How could you represent a quotation in ActivityPub‽

A link to the original object could be added with FEP-e232.

Codeberg.org

fep/fep/e232/fep-e232.md at main

fep - Fediverse Enhancement Proposals

: The Block Quotation element - HTML | MDNMDN

The
HTML element indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see Notes for how to change it). A URL for the source of the quotation may be given using the cite attribute, while a text representation of the source can be given using the element.
  • Copy link
  • Flag this comment
  • Block
@reiver ⊼ (Charles) :batman:
@reiver@mastodon.social replied  ·  activity timestamp 3 days ago

3/

Apparently the Bookwyrm developer had the exact same idea!

(Which isn't too surprising.)

Here is how it works —

...

#ActivityPub#ActivityStreams#FediDev#Fediverse#ObjectTypeNote#ObjectTypeQuotation

Object types

•  Note: On services like Mastodon, Notes are the primary type of status. They contain a message body, attachments, can mention users, and be replies to statuses of any type. Within BookWyrm, Notes can only be created as direct messages or as replies to other statuses.

• Review: A review is a status in response to a book (indicated by the inReplyToBook field), which has a title, body, and numerical rating between 0 (not rated) and 5.

•  Comment: A comment on a book mentions a book and has a message body.

• Quotation: A quote has a message body, an excerpt from a book, and mentions a book.
Object types • Note: On services like Mastodon, Notes are the primary type of status. They contain a message body, attachments, can mention users, and be replies to statuses of any type. Within BookWyrm, Notes can only be created as direct messages or as replies to other statuses. • Review: A review is a status in response to a book (indicated by the inReplyToBook field), which has a title, body, and numerical rating between 0 (not rated) and 5. • Comment: A comment on a book mentions a book and has a message body. • Quotation: A quote has a message body, an excerpt from a book, and mentions a book.
Object types • Note: On services like Mastodon, Notes are the primary type of status. They contain a message body, attachments, can mention users, and be replies to statuses of any type. Within BookWyrm, Notes can only be created as direct messages or as replies to other statuses. • Review: A review is a status in response to a book (indicated by the inReplyToBook field), which has a title, body, and numerical rating between 0 (not rated) and 5. • Comment: A comment on a book mentions a book and has a message body. • Quotation: A quote has a message body, an excerpt from a book, and mentions a book.
  • Copy link
  • Flag this comment
  • Block
@reiver ⊼ (Charles) :batman:
@reiver@mastodon.social replied  ·  activity timestamp 3 days ago

4/

Apparently, Bookwyrm stores quotations with:

type="Quotation"

And if one Bookwyrm server talks to another Bookwyrm server, then — the ActivityPub / ActivityStreams representation of the quotation will have:

type="Quotation"

...

BUT — if a non-Bookwyrm server talks to a Bookwyrm server, then — the ActivityPub / ActivityStreams representation of the quotation will have:

type="Note"

#ActivityPub#ActivityStreams#FediDev#Fediverse#ObjectTypeNote#ObjectTypeQuotation

  • Copy link
  • Flag this comment
  • Block
just small circles 🕊
@smallcircles@social.coop replied  ·  activity timestamp 3 days ago
@span reiver

There are examples of the #ActivityPub extensions #Bookwyrm makes, which are on the (commonly taken) path of protocol decay and whack-a-mole programming by their #LinkedData non-conformance, unfortunately.

Yet that means there's opportunity for #FEP's if there are more #interoperability parties. 😃

Here's an example of Quotation, which has no LD context:

https://github.com/bookwyrm-social/bookwyrm/blob/main/bookwyrm/tests/data/ap_quotation.json

And here of Edition which is incorrectly placed in #ActivityStreams context:

https://github.com/bookwyrm-social/bookwyrm/blob/main/bookwyrm/tests/data/bw_edition.json

  • Copy link
  • Flag this comment
  • Block
Raphael Lullis
@raphael@activitypub.lullis.net replied  ·  activity timestamp 3 days ago

@smallcircles @reiver 1) What does a bookwyrm server returns if we asked for the object directly?

2) The Quotation types could be useful, but why not provide it in a proper LD context?

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.2.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login