Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Verb Definitions....
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
James M Snell  
View profile  
 More options May 7 2012, 6:56 pm
From: James M Snell <jasn...@gmail.com>
Date: Mon, 7 May 2012 15:56:21 -0700
Local: Mon, May 7 2012 6:56 pm
Subject: Verb Definitions....
Following the recent discussions around the introduction of new verbs,
I've been working up a basic format for a "verb description" ...
here's what I have currently.. consider this a strawman.. feedback is
welcome...

The verb description will itself be an activity stream object type
with the following properties:

- value = the value label for the verb
- synonyms = array of synonymous verbs
- antonyms = array of opposite verbs
- hypernyms = array of verbs for which this verb is a hyponyms
- templates = localized display template structure ... explanation below

The templates property allows the verb description to provide
localized templates for displaying the verb... it allows the templates
to be made specific to the activity "object" and a language range...
for instance...

 {
   "objectType": "verb",
   "displayName": "Play",
   "value": "play",
   "hypernyms": [ "consume" ],
   "templates": {
     "*": {
       "*": "{actor} played {object}",
       "video": "{actor} watched {object}",
       "audio": "{actor} listened to {object}"
     },
     "fr-*": {
       "*": "{actor} a joué {object}",
       "video": "{actor} vu {object}",
       "audio": "{actor} écouté {object}"
     }
   }
 }

Given this, we can see that:

- "play" is a hyponym of "consume"
- When the "object" has objectType=video, and the locale matches fr-*,
the display template is "{actor} vu {object}"
- When the "object" has objectType=audio, and the locale is anything
other than fr-*, the display template is "{actor} listened to
{object}"
- When the "object" has any other object type and locale matches fr-*,
the display template is "{actor} a joué {object}"

Again, this is just a strawman for now. Thoughts? Comments?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Atkins  
View profile  
 More options May 7 2012, 7:07 pm
From: Martin Atkins <m...@degeneration.co.uk>
Date: Mon, 07 May 2012 16:07:27 -0700
Local: Mon, May 7 2012 7:07 pm
Subject: Re: Verb Definitions....
On 05/07/2012 03:56 PM, James M Snell wrote:

Do you intend tho use the hypernyms as a mechanism to inherit templates?

That is, so I can define a template for some base verb and then
selectively override it in more specific verbs.

What are the use-cases for the synonyms and antonyms? The former I guess
is just an aliasing mechanism, but I'm not sure what you'd do with the
latter.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Monica Wilkinson  
View profile  
 More options May 7 2012, 7:08 pm
From: Monica Wilkinson <monica.kel...@gmail.com>
Date: Mon, 7 May 2012 16:08:52 -0700
Local: Mon, May 7 2012 7:08 pm
Subject: Re: Verb Definitions....

Cool ! Replies below

On Mon, May 7, 2012 at 3:56 PM, James M Snell <jasn...@gmail.com> wrote:

> Following the recent discussions around the introduction of new verbs,
> I've been working up a basic format for a "verb description" ...
> here's what I have currently.. consider this a strawman.. feedback is
> welcome...

+1 on better verb descriptions

> The verb description will itself be an activity stream object type
> with the following properties:

> - value = the value label for the verb
> - synonyms = array of synonymous verbs
> - antonyms = array of opposite verbs
> - hypernyms = array of verbs for which this verb is a hyponyms
> - templates = localized display template structure ... explanation below

I would also add here commonly used object types and base the templates per
object type...

+1 on machine readable

> Given this, we can see that:

> - "play" is a hyponym of "consume"
> - When the "object" has objectType=video, and the locale matches fr-*,
> the display template is "{actor} vu {object}"
> - When the "object" has objectType=audio, and the locale is anything
> other than fr-*, the display template is "{actor} listened to
> {object}"
> - When the "object" has any other object type and locale matches fr-*,
> the display template is "{actor} a joué {object}"

Perfect

> Again, this is just a strawman for now. Thoughts? Comments?

Love it lets do it. But can continue to use the yaml files to describe the
verbs and obj types ?

Just imagine this in yaml
https://gist.github.com/6fae5162d19ac649239d


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James M Snell  
View profile  
 More options May 7 2012, 7:10 pm
From: James M Snell <jasn...@gmail.com>
Date: Mon, 7 May 2012 16:10:31 -0700
Local: Mon, May 7 2012 7:10 pm
Subject: Re: Verb Definitions....

On Mon, May 7, 2012 at 4:07 PM, Martin Atkins <m...@degeneration.co.uk> wrote:
>[snip]

> Do you intend tho use the hypernyms as a mechanism to inherit templates?

> That is, so I can define a template for some base verb and then selectively
> override it in more specific verbs.

This is an open question. Short answer is: I don't know yet.

> What are the use-cases for the synonyms and antonyms? The former I guess is
> just an aliasing mechanism, but I'm not sure what you'd do with the latter.

Yes, synonyms is for aliases.

Antonyms may be useful to describe mutually exclusive options
presented within a UI, but I'm still working through the use cases.

- James


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James M Snell  
View profile  
 More options May 7 2012, 7:19 pm
From: James M Snell <jasn...@gmail.com>
Date: Mon, 7 May 2012 16:19:07 -0700
Local: Mon, May 7 2012 7:19 pm
Subject: Re: Verb Definitions....
While there's no technical reason yaml couldn't be used for this, I'd
rather avoid impls from having to be able to handle two separate
syntaxes. Impls are already going to be implemented to create/parse
JSON... the yaml stuff was only ever used for our own registry
website...

that said, if folks prefer yaml over json, then we can go with that...
even if it is the wrong choice ;-P ....

- James

On Mon, May 7, 2012 at 4:08 PM, Monica Wilkinson

<monica.kel...@gmail.com> wrote:

[snip]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Monica Wilkinson  
View profile  
 More options May 7 2012, 7:21 pm
From: Monica Wilkinson <monica.kel...@gmail.com>
Date: Mon, 7 May 2012 16:21:57 -0700
Local: Mon, May 7 2012 7:21 pm
Subject: Re: Verb Definitions....

Ah not exactly what I meant.

My point was simply that this data should be filled out when submitting a
new verb to the registry which is yaml files.

This will help developers reuse existing verbs

On Mon, May 7, 2012 at 4:19 PM, James M Snell <jasn...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James M Snell  
View profile  
 More options May 7 2012, 7:25 pm
From: James M Snell <jasn...@gmail.com>
Date: Mon, 7 May 2012 16:25:25 -0700
Local: Mon, May 7 2012 7:25 pm
Subject: Re: Verb Definitions....
Oh! sorry... right... yeah different use cases but even then I think
we can recast our registry using the JSON format so that we're using
the same format we'd be recommending that others use.

- James

On Mon, May 7, 2012 at 4:21 PM, Monica Wilkinson


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Monica Wilkinson  
View profile  
 More options May 7 2012, 8:32 pm
From: Monica Wilkinson <monica.kel...@gmail.com>
Date: Mon, 7 May 2012 17:32:11 -0700
Local: Mon, May 7 2012 8:32 pm
Subject: Re: Verb Definitions....
yaml is more human friendly so I would keep it in yaml for authors
Less typing.

For readers/apps we can provide  json in addition to yaml for compatibility

On May 7, 2012, at 4:25 PM, James M Snell <jasn...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James M Snell  
View profile  
 More options May 8 2012, 12:01 pm
From: James M Snell <jasn...@gmail.com>
Date: Tue, 8 May 2012 09:01:02 -0700
Local: Tues, May 8 2012 12:01 pm
Subject: Re: Verb Definitions....
+1 ... I'll likely write up the initial draft for the JSON syntax
today or tomorrow.

On Mon, May 7, 2012 at 5:32 PM, Monica Wilkinson


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »