Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best practices for #hashtags #63

Closed
evanp opened this issue Jan 13, 2015 · 5 comments
Closed

Best practices for #hashtags #63

evanp opened this issue Jan 13, 2015 · 5 comments

Comments

@evanp
Copy link
Collaborator

evanp commented Jan 13, 2015

Many social systems use a in-band mechanism to let users define a category or topic for an object. For example, "#topic" will mark an image or text as being related to the topic "topic".

It would be worthwhile to note that Activity Streams 2.0 processors should not have to parse the "content" or other properties of activity objects to determine this category information.

Instead, the stream creator SHOULD add a "tag" property to the object and MAY change the "#topic" content to a link to a page about that topic (for example, one showing a stream of all objects related to that topic).

@akuckartz
Copy link

Is this issue about annotations ?

@jasnell
Copy link
Collaborator

jasnell commented Jan 20, 2015

The issue is about using inline hashtags in text fields such as comment, summary, etc and whether activity streams implementations ought to be required to rely on those. The decision of the WG was that no, publishers should make use of appropriate structured property fields to communicate tagging information. AS2 has the "tag" property.

So rather than just saying...

{ "@type": "Note", "content": "A test #note" }

We'd have something like:

{ "@type": "Note", "content": "A test #note",
  "tag": { "@type": "Link", "href": "http://example.org/tags/note" } }

This makes tagging explicit without requiring processing of the text content.

@akuckartz
Copy link

The "#note" in "A test #note" has no AS2 semantics different from "note" in "A test note", correct?

Or does "#" have an additional semantic in AS2 ?

EDIT: I just noticed that this is in the "non-normative" section of the document:
http://jasnell.github.io/w3c-socialwg-activitystreams/activitystreams2.html#microsyntaxes

That is something which could be improved (I hope).

@jasnell
Copy link
Collaborator

jasnell commented Jan 20, 2015

Right, there are no additional semantics in AS2 for the #.

@jasnell
Copy link
Collaborator

jasnell commented Feb 10, 2015

Addressed in the current published working draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants