Warning: This tool or project is no longer maintained and kept available only for archival purposes. Since GoodRelations and schema.org have evolved significantly in the past years, the current status available on this page is unlikely to function as expected. We take no responsibility for any damage caused by the use of this outdated work, to the extent legally possible.

Due to a lack of resources, we are unable to provide support for this project outside of consulting projects or sponsored research. Please contact us if you can contribute resources to update and enhance these resources.

GoodRelations - The Web Vocabulary for E-Commerce

This is the archive of the goodrelations dicussion list

GoodRelations is a standardized vocabulary for product, price, and company data that can (1) be embedded into existing static and dynamic Web pages and that (2) can be processed by other computers. This increases the visibility of your products and services in the latest generation of search engines, recommender systems, and other novel applications.

[goodrelations] semantically modelling a balance

Manu Sporny msporny at digitalbazaar.com
Wed May 8 04:13:37 CEST 2013

On 05/07/2013 05:23 PM, Melvin Carvalho wrote:
> is there a way to model a balance using commerce vocabs?


> for example: alice has 10 euros

I wouldn't model Alice as having 10 Euros... Alice has an account that
contains 10 Euros.

  "@context": "https://w3id.org/payswarm/v1",
  "id": "http://example.com/alice",
  "name": "Alice",
    "id": "http://example.com/alice/accounts/savings",
    "type": "Account",
    "label": "Savings Account",
    "amount": "7563.00",
    "currency": "EUR"

> or account XYZ has 10 bitcoins

  "@context": "https://w3id.org/payswarm/v1",
  "id": "http://example.com/bob/accounts/retirement",
  "type": "Account",
  "label": "Retirement Account",
  "amount": "2.12498",
  "currency": "BTC"

Note that in the above two examples, EUR and BTC will resolve to a
relative URL when they really should resolve to a currency URL like:




Currently, we have only created the USD currency. If you'd like, we can
add EUR and BTC as well. Or, you can submit a pull request for the
PaySwarm context here:


And then some re-direction entries here:


Let me know how you'd like to proceed.

-- manu

Manu Sporny (skype: msporny, twitter: manusporny, G+: +Manu Sporny)
Founder/CEO - Digital Bazaar, Inc.
blog: Meritora - Web payments commercial launch

More information about the goodrelations mailing list