Re: Currency Mints (Re: The UN Millenium declaration)

On 16 December 2011 03:11, Manu Sporny <msporny@digitalbazaar.com> wrote:
> On 12/14/2011 09:26 AM, Melvin Carvalho wrote:
>>>
>>> {
>>>   "@context": "http://example.com/contexts/IOU",
>>>   "type": "com:Transfer",
>>>   "forTransaction":
>>> "http://redbankexample.com/transactions/20110104#7827982";
>>>   "source": "http://redbankexample.com/accounts/12345#account",
>>>   "destination": "http://greencardexample.com/accounts/54321#account",
>>>   "amount": "8.00",
>>>   "currency": "USD",
>>>
>>>   "comment": "Transfer of $8.00 on 2010-10-16 at 12:34pm - Paying Jane
>>> back
>>> for pizza last Monday"
>>> }
>>
>>
>> Thanks Manu, this version looks great.  Assume I can replace
>> com:Transfer with just Transfer?
>
>
> Yup :)
>
> If you need some guidance creating the @context file, just let us know.
> Would be happy to give an example of what it should look like. Keep in mind
> that JSON-LD @context syntax was changed just recently (as in this week), so
> the specs haven't been updated fully... yet.

So I believe I have version 0.1 of the Distributed IOU Protocol ready.

Best viewed using the json ld playground at:

http://is.gd/Km1iOA

In JSON-LD

{

   "@id": "#1234567890",

   "http://payswarm.com/vocabs/commerce#source": {

      "@id": "http://melvincarvalho.com#me"

   },

   "http://payswarm.com/vocabs/commerce#destination": {

      "@id": "http://webr3.org/nathan#me"

   },

   "http://payswarm.com/vocabs/commerce#amount": "5",

   "http://payswarm.com/vocabs/commerce#currency": "EUR",

   "http://www.w3.org/2000/01/rdf-schema#comment": "Just a test IOU",

   "http://purl.org/dc/terms/created": "2011-12-20T15:42:41.030Z",

   "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": {

      "@id": "http://payswarm.com/vocabs/commerce#Transfer"

   }

}

In Turtle:

<#1234567890>
   <http://payswarm.com/vocabs/commerce#amount> "5";
   <http://payswarm.com/vocabs/commerce#currency> "EUR";
   <http://payswarm.com/vocabs/commerce#destination>
<http://webr3.org/nathan#me>;
   <http://payswarm.com/vocabs/commerce#source> <http://melvincarvalho.com#me>;
   <http://purl.org/dc/terms/created> "2011-12-20T15:42:41.030Z";
   <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://payswarm.com/vocabs/commerce#Transfer>;
   <http://www.w3.org/2000/01/rdf-schema#comment> "Just a test IOU".

Feedback appreciated!

>
>
> -- manu
>
>
> --
> Manu Sporny (skype: msporny, twitter: manusporny)
> Founder/CEO - Digital Bazaar, Inc.
> blog: The Need for Data-Driven Standards
> http://manu.sporny.org/2011/data-driven-standards/
>

Received on Tuesday, 20 December 2011 20:29:17 UTC