- From: Manu Sporny <msporny@digitalbazaar.com>
- Date: Sat, 11 Oct 2014 22:13:24 -0400
- To: Melvin Carvalho <melvincarvalho@gmail.com>, Web Payments <public-webpayments@w3.org>
Hey Melvin, I went through and did a huge update to the Commerce vocab tonight wrt. ensuring that the RDFa is correct and you can content-negotiate for HTML+RDFa 1.1, TURTLE, NTriples, and JSON-LD. Here are a couple of examples on how to do conneg: You can provide an accept header to a generic resource: curl -L -H "Accept: text/turtle" https://w3id.org/commerce or you can provide a file extension at the destination resource: curl https://web-payments.org/vocabs/commerce.nt curl https://web-payments.org/vocabs/commerce.jsonld Hitting the URL in a browser will give you the vocabulary document: https://w3id.org/commerce All commerce classes and properties now have labels, descriptions, domains, and ranges. There are also examples of typical resources that use the property being described. I've tried very hard to veer away from the confusing "Domain" and "Range" language of RDF and instead use a more conversational English to describe what's happening w/ each property. So, for example: """ 4.2 amount The amount property is used to specify the total value of a financial resource or action such as an account, transfer, or transaction. Status: unstable Attribute of: Thing Typically used by: Deposit, Transaction, Transfer, Withdrawal Associated value must be a: Literal """ Hope that helps you out. -- manu -- Manu Sporny (skype: msporny, twitter: manusporny, G+: +Manu Sporny) Founder/CEO - Digital Bazaar, Inc. blog: The Marathonic Dawn of Web Payments http://manu.sporny.org/2014/dawn-of-web-payments/
Received on Sunday, 12 October 2014 02:13:56 UTC