Re: [whatwg] microdata questions

2014-04-01 Thread Ian Hickson
On Mon, 10 Feb 2014, Eric Devine wrote: > > 1. Section 5.5.1 of the Microdata spec prescribes how microdata should > be respresented as JSON, but it does provide a MIME type. I'm writing a > REST API that I would like to be able to return JSON in microdata > format, but I need the client to exp

Re: [whatwg] microdata questions

2014-02-10 Thread Eric Devine
I found the answer to my first question "application/microdata+json" from W3C, but I would still appreciate feed back on my second question below. Thanks, Eric On Mon, Feb 10, 2014 at 11:16 AM, Eric Devine wrote: > 1. Section 5.5.1 of the Microdata spec prescribes how microdata should be > res

Re: [whatwg] Microdata status

2013-05-30 Thread Karl Dubost
Le 30 mai 2013 à 12:39, Michael[tm] Smith a écrit : > Alex or somebody else writes up an alternative API proposal they can be > happier with, it seems unlikely they're going to be re-implementing > anything based on the current Microdata API spec. In the process, if it ever happens, I would love

Re: [whatwg] Microdata status

2013-05-29 Thread Ojan Vafai
On Wed, May 29, 2013 at 9:39 PM, Michael[tm] Smith wrote: > +Ojan, +Alex > > Jirka Kosek , 2013-05-14 17:22 +0200: > > > Hi, > > > > are there any plans to change Microdata API? From the following > > conversation between Chromium developers it's not clear to me whether > > they consider API itse

Re: [whatwg] Microdata status

2013-05-29 Thread Michael[tm] Smith
+Ojan, +Alex Jirka Kosek , 2013-05-14 17:22 +0200: > Hi, > > are there any plans to change Microdata API? From the following > conversation between Chromium developers it's not clear to me whether > they consider API itself bad or only their implementation. > > https://groups.google.com/a/chrom

Re: [whatwg] Microdata status

2013-05-28 Thread Ian Hickson
On Tue, 14 May 2013, Jirka Kosek wrote: > > are there any plans to change Microdata API? From the following > conversation between Chromium developers it's not clear to me whether > they consider API itself bad or only their implementation. > > https://groups.google.com/a/chromium.org/forum/m/#

Re: [whatwg] Microdata feedback

2011-12-09 Thread Philip Jägenstedt
On Thu, 08 Dec 2011 22:04:41 +0100, Ian Hickson wrote: I changed the spec as you suggest. Thanks! -- Philip Jägenstedt Core Developer Opera Software

Re: [whatwg] microdata: itemprop in tag

2011-12-08 Thread Ian Hickson
On Sun, 16 Oct 2011, David Karger wrote: > > One natural way to represent a collection of structured items is in an > html table. this can coexist with microdata, by using > and tags. But by ignoring the structure of the table, > this creates a lot of redundant attribute specification. > >

Re: [whatwg] Microdata - Handling the case where a string is upgraded to an object

2011-12-08 Thread Ian Hickson
On Thu, 14 Jul 2011, Tab Atkins Jr. wrote: > > It seems that this may be a useful problem to solve in Microdata. We > can expose either an attribute or a privileged property name for the > object's "name"/"title"/"string representation". Then, when using the > .items accessor, objects can be r

Re: [whatwg] Microdata feedback

2011-12-08 Thread Ian Hickson
On Sat, 9 Jul 2011, Philip Jägenstedt wrote: > On Sat, 09 Jul 2011 01:19:02 +0200, Ian Hickson wrote: > > On Sat, 9 Jul 2011, Philip Jägenstedt wrote: > > > > > > Step 11 is "If current has an itemprop attribute specified, add it > > > to results." but should be "If current has one or more prope

Re: [whatwg] microdata: itemprop in tag

2011-10-16 Thread Tab Atkins Jr.
On Sun, Oct 16, 2011 at 7:47 PM, David Karger wrote: > One natural way to represent a collection of structured items is in an html > table.  this can coexist with microdata, by using and itemprop> tags.  But by ignoring the structure of the table, this creates a > lot of redundant attribute spec

Re: [whatwg] Microdata getItems()

2011-08-10 Thread Rob Crowther
On 09/08/11 20:48, Ian Hickson wrote: On Tue, 9 Aug 2011, Rob Crowther wrote: Correct. Browsers aren't expected to know about the vocabularies, let alone validate them. Thanks. I think this could be made more clear in the spec. However if I remove itemscope from the element the Opera beta

Re: [whatwg] Microdata getItems()

2011-08-09 Thread Ian Hickson
On Tue, 9 Aug 2011, Rob Crowther wrote: > > I just want to confirm that my understanding of this is correct: > getItems() will return a NodeList of top level microdata items and this > is irrespective of whether or not the items are actually valid in terms > of their type? That is, it is the de

Re: [whatwg] Microdata - Handling the case where a string is upgraded to an object

2011-07-19 Thread Philip Jägenstedt
On Mon, 18 Jul 2011 22:01:37 +0200, Tab Atkins Jr. wrote: On Mon, Jul 18, 2011 at 4:20 AM, Philip Jägenstedt As for the solution, are you suggesting that .itemValue return a special object which is like HTMLElement in all regards except for how it toString()s? Yes. Currently, it's spe

Re: [whatwg] Microdata - Handling the case where a string is upgraded to an object

2011-07-18 Thread Tab Atkins Jr.
On Mon, Jul 18, 2011 at 4:20 AM, Philip Jägenstedt wrote: > There is no items IDL attribute, do you mean getItems() or .itemValue > perhaps? Yes, sorry. > I take it the problem is with code like this: > > Foo > Barsson > > var p = document.getItems("person")[0]; > alert(p.properties.namedItem(

Re: [whatwg] Microdata - Handling the case where a string is upgraded to an object

2011-07-18 Thread Philip Jägenstedt
On Thu, 14 Jul 2011 20:49:44 +0200, Tab Atkins Jr. wrote: Some IRC discussion this morning concerned the scenario where an API starts by exposing a property as a string, but later wants to change it to be a complex object. This appears to be a reasonably common scenario. For example, a voca

Re: [whatwg] Microdata feedback

2011-07-12 Thread Ian Hickson
On Tue, 12 Jul 2011, Henri Sivonen wrote: > On Thu, 2011-07-07 at 22:33 +, Ian Hickson wrote: > > The JSON algorithm now ends the crawl when it hits a loop, and > > replaces the offending duplicate item with the string "ERROR". > > > > The RDF algorithm preserves the loops, since doing so is

Re: [whatwg] Microdata feedback

2011-07-12 Thread Philip Jägenstedt
On Tue, 12 Jul 2011 09:41:18 +0200, Henri Sivonen wrote: On Thu, 2011-07-07 at 22:33 +, Ian Hickson wrote: The JSON algorithm now ends the crawl when it hits a loop, and replaces the offending duplicate item with the string "ERROR". The RDF algorithm preserves the loops, since doing so is

Re: [whatwg] Microdata feedback

2011-07-12 Thread Henri Sivonen
On Thu, 2011-07-07 at 22:33 +, Ian Hickson wrote: > The JSON algorithm now ends the crawl when it hits a loop, and replaces > the offending duplicate item with the string "ERROR". > > The RDF algorithm preserves the loops, since doing so is possible with > RDF. Turns out the algorithm almost

Re: [whatwg] Microdata feedback

2011-07-08 Thread Philip Jägenstedt
On Sat, 09 Jul 2011 01:19:02 +0200, Ian Hickson wrote: On Sat, 9 Jul 2011, Philip Jägenstedt wrote: Step 11 is "If current has an itemprop attribute specified, add it to results." but should be "If current has one or more property names, add it to results." Property names are defined in http:

Re: [whatwg] Microdata feedback

2011-07-08 Thread Ian Hickson
On Sat, 9 Jul 2011, Philip Jägenstedt wrote: > > Step 11 is "If current has an itemprop attribute specified, add it to > results." but should be "If current has one or more property names, add > it to results." Property names are defined in > http://www.whatwg.org/specs/web-apps/current-work/mu

Re: [whatwg] Microdata feedback

2011-07-08 Thread Philip Jägenstedt
On Fri, 08 Jul 2011 21:31:49 +0200, Ian Hickson wrote: On Fri, 8 Jul 2011, Philip Jägenstedt wrote: On Fri, 08 Jul 2011 00:33:14 +0200, Ian Hickson wrote: > On Wed, 8 Jun 2011, Tomasz Jamroszczak wrote: > > > > I've been looking into Microdata specification and it struck me, > > that crawling

Re: [whatwg] Microdata feedback

2011-07-08 Thread Ian Hickson
On Fri, 8 Jul 2011, Philip Jägenstedt wrote: > On Fri, 08 Jul 2011 00:33:14 +0200, Ian Hickson wrote: > > On Wed, 8 Jun 2011, Tomasz Jamroszczak wrote: > > > > > > I've been looking into Microdata specification and it struck me, > > > that crawling algorithm is so complex, when it comes to expre

Re: [whatwg] Microdata feedback

2011-07-08 Thread Philip Jägenstedt
On Fri, 08 Jul 2011 00:33:14 +0200, Ian Hickson wrote: On Wed, 8 Jun 2011, Tomasz Jamroszczak wrote: I've been looking into Microdata specification and it struck me, that crawling algorithm is so complex, when it comes to expressing simple ideas. I think that foremost the algorithm should be

Re: [whatwg] Microdata feedback

2010-01-20 Thread Philip Jägenstedt
On Mon, 18 Jan 2010 13:58:16 +0100, Ian Hickson wrote: I'd like at some point to introduce some sort of "semantic" textContent that handles , , , dir="", , , space- collapsing, and newline elimination, but there hasn't been much enthusiasm around the idea, and it's not clear what else it wou

Re: [whatwg] Microdata feedback

2010-01-20 Thread Philip Jägenstedt
On Mon, 18 Jan 2010 16:24:46 +0100, Jeremy Keith wrote: Hixie wrote: Finally on vCard, the final part of the extraction algorithm goes to great trouble to guess what is the family name and what is the given name. This guess will be broken for transliterated east Asian names (CJKV that I know

Re: [whatwg] Microdata feedback

2010-01-19 Thread Ian Hickson
On Mon, 18 Jan 2010, Aryeh Gregor wrote: > On Mon, Jan 18, 2010 at 7:58 AM, Ian Hickson wrote: > > I've made it redirect to the spec. > > Could you say that the URL *should* provide human-readable information > about the vocabulary? We all know the problems with having > centrally-stored mach

Re: [whatwg] Microdata feedback

2010-01-18 Thread Julian Reschke
Aryeh Gregor wrote: On Mon, Jan 18, 2010 at 7:58 AM, Ian Hickson wrote: I've made it redirect to the spec. Could you say that the URL *should* provide human-readable information about the vocabulary? We all know the problems with having centrally-stored machine-readable data about your specs

Re: [whatwg] Microdata feedback

2010-01-18 Thread Aryeh Gregor
On Mon, Jan 18, 2010 at 7:58 AM, Ian Hickson wrote: > I've made it redirect to the spec. Could you say that the URL *should* provide human-readable information about the vocabulary? We all know the problems with having centrally-stored machine-readable data about your specs, but encouraging the

Re: [whatwg] Microdata feedback

2010-01-18 Thread Jeremy Keith
Hixie wrote: Finally on vCard, the final part of the extraction algorithm goes to great trouble to guess what is the family name and what is the given name. This guess will be broken for transliterated east Asian names (CJKV that I know of, maybe others too). Just saying. Also, why is it importan

Re: [whatwg] Microdata DOM API issues

2009-11-14 Thread Philip Jägenstedt
On Sat, 14 Nov 2009 00:34:12 +0100, Tab Atkins Jr. wrote: On Fri, Nov 13, 2009 at 5:14 PM, Philip Jägenstedt wrote: The itemref mechanism allows creating arbitrary graphs of items, rather than the tree of items that is the intended microdata model (right?). Even though my default reacti

Re: [whatwg] Microdata DOM API issues

2009-11-13 Thread Tab Atkins Jr.
On Fri, Nov 13, 2009 at 5:14 PM, Philip Jägenstedt wrote: > The itemref mechanism allows creating arbitrary graphs of items, rather than > the tree of items that is the intended microdata model (right?). Even though > my default reaction to graphs is "oh cool", for microdata when the domain > mode

Re: [whatwg] Microdata DOM API issues

2009-11-13 Thread Philip Jägenstedt
On Fri, 13 Nov 2009 19:27:39 +0100, Philip Jägenstedt wrote: On Thu, 12 Nov 2009 03:23:54 +0100, Philip Jägenstedt wrote: Why are the algorithms for extracting RDF gone? All that's left is the book example with the equivalent Turtle, but it would be nice if it were actually defined ho

Re: [whatwg] Microdata DOM API issues

2009-11-13 Thread Philip Jägenstedt
On Thu, 12 Nov 2009 03:23:54 +0100, Philip Jägenstedt wrote: Why are the algorithms for extracting RDF gone? All that's left is the book example with the equivalent Turtle, but it would be nice if it were actually defined how to extract RDF. The same for the JSON stuff, was that no good?

Re: [whatwg] Microdata feedback

2009-10-17 Thread Ian Hickson
On Thu, 15 Oct 2009, Philip Jägenstedt wrote: > > Is there a reason why HTMLPropertyCollection.namedItem unlike some other > collections' .namedItem don't return an element if there is only 1 > element in the collection at the time the method is called? Perhaps this > is legacy quirks that we do

Re: [whatwg] Microdata feedback

2009-10-15 Thread Philip Jägenstedt
On Wed, 14 Oct 2009 13:53:46 +0200, Ian Hickson wrote: On Fri, 21 Aug 2009, Philip Jägenstedt wrote: Shouldn't namedItem [6] be namedItems? Code like .namedItem().item(0) would be quite confusing. [6] http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#dom-htmlpr

Re: [whatwg] Microdata

2009-08-26 Thread Brian Campbell
On Aug 22, 2009, at 5:51 PM, Ian Hickson wrote: Based on some of the feedback on Microdata recently, e.g.: http://www.jenitennison.com/blog/node/124 ...and a number of e-mails sent to this list and the W3C lists, I am going to try some tweaks to the Microdata syntax. Google has kindly of

Re: [whatwg] Microdata

2009-08-25 Thread Philip Jägenstedt
On Tue, 25 Aug 2009 09:43:58 +0200, Philip Jägenstedt wrote: On Tue, 25 Aug 2009 00:29:06 +0200, Ian Hickson wrote: On Mon, 24 Aug 2009, Philip Jägenstedt wrote: I've found two related things that are a bit problematic. First, because itemprops are only associated with ancestor item e

Re: [whatwg] Microdata

2009-08-25 Thread Philip Jägenstedt
On Tue, 25 Aug 2009 00:29:06 +0200, Ian Hickson wrote: On Mon, 24 Aug 2009, Philip Jägenstedt wrote: I've found two related things that are a bit problematic. First, because itemprops are only associated with ancestor item elements or via the subject attribute, it's always necessary to find o

Re: [whatwg] Microdata

2009-08-24 Thread Ian Hickson
On Mon, 24 Aug 2009, Philip Jägenstedt wrote: > > I've found two related things that are a bit problematic. First, because > itemprops are only associated with ancestor item elements or via the > subject attribute, it's always necessary to find or create a separate > element for the item. This

Re: [whatwg] Microdata

2009-08-24 Thread Philip Jägenstedt
On Sat, 22 Aug 2009 23:51:48 +0200, Ian Hickson wrote: Based on some of the feedback on Microdata recently, e.g.: http://www.jenitennison.com/blog/node/124 ...and a number of e-mails sent to this list and the W3C lists, I am going to try some tweaks to the Microdata syntax. Google has

Re: [whatwg] Microdata

2009-08-22 Thread Edward O'Connor
On Saturday, August 22, 2009, Eduard Pascual wrote: > On Sat, Aug 22, 2009 at 11:51 PM, Ian Hickson wrote: >> >> Based on some of the feedback on Microdata recently, e.g.: >> >>   http://www.jenitennison.com/blog/node/124 >> >> ...and a number of e-mails sent to this list and the W3C lists, I am g

Re: [whatwg] Microdata

2009-08-22 Thread Eduard Pascual
On Sat, Aug 22, 2009 at 11:51 PM, Ian Hickson wrote: > > Based on some of the feedback on Microdata recently, e.g.: > >   http://www.jenitennison.com/blog/node/124 > > ...and a number of e-mails sent to this list and the W3C lists, I am going > to try some tweaks to the Microdata syntax. Google has

Re: [whatwg] Microdata Revisited

2009-08-07 Thread Jonas Sicking
On Mon, Aug 3, 2009 at 2:58 AM, Martin McEvoy wrote: > Hello All > > I have been working on a new proposal for HTML 5 Microdata, I thought you > might all like to take a look at what I have come up with so far. > > please visit http://weborganics.co.uk/test/microdata.html > > Any feed back would be

Re: [whatwg] Microdata and Linked Data

2009-08-03 Thread Martin McEvoy
Hello Ian Ian Hickson wrote: I'm definitely against any in-page indirection mechanism, because we have seen with XML Namespaces (and with RDFa) that prefixes are simply a huge source of problems. They are indeed, XML namespaces fixed one problem calling different things by the same name bu

Re: [whatwg] Microdata and Linked Data

2009-08-03 Thread Ian Hickson
(I trimmed public-html from the CC list to avoid cross-posting, and because the whatwg list has had most of the traffic on this topic so far; please feel free to forward this to public-html if you would rather discuss that there instead.) On Fri, 24 Jul 2009, Peter Mika wrote: > > The use of

Re: [whatwg] Microdata and Linked Data

2009-07-24 Thread Peter Mika
Fair point. Just brainstorming here: how about making about an attribute? http://";> Name: Amanda We still have two identifiers, but at least giving the URI is simplified. Best, Peter Julian Reschke wrote: Peter Mika wrote: Hi All, I've been taking a closer look at microdata. While I li

Re: [whatwg] Microdata and Linked Data

2009-07-24 Thread Peter Mika
Yes, #2 and #4 are quite related in that they both concern the abbreviation mechanism for URIs and might be considered alternative proposals. On the other hand, on #4, you are opening the gate to independent entities (be them organizations or individuals) to define the prefixes they would be u

Re: [whatwg] Microdata and Linked Data

2009-07-24 Thread Julian Reschke
Peter Mika wrote: Hi All, I've been taking a closer look at microdata. While I like the proposal in general, in particular the chance to unite microformat style annotations with some of the Semantic Web formalism (such as URIs for objects), there are still a number of points that I feel could

Re: [whatwg] Microdata and Linked Data

2009-07-24 Thread Eduard Pascual
On Fri, Jul 24, 2009 at 1:07 PM, Peter Mika wrote: > [...] > #2 > > The other area that could be possibly improved is the connection of type > identifiers with ontologies on the web. I would actually like the notion of >  reverse domain names if > > -- there would be an explicit agreement that they

Re: [whatwg] microdata use cases and Getting data out of poorly written Web pages

2009-05-08 Thread Shelley Powers
Ian Hickson wrote: On Fri, 8 May 2009, Shelley Powers wrote: It's difficult to tell where one should comment on the so-called microdata use cases. I'm forced to send to multiple mailing lists. Please don't cross-post to the WHATWG list and other lists -- you may pick either one, I rea

Re: [whatwg] microdata use cases and Getting data out of poorly written Web pages

2009-05-08 Thread Ian Hickson
On Fri, 8 May 2009, Shelley Powers wrote: > > It's difficult to tell where one should comment on the so-called > microdata use cases. I'm forced to send to multiple mailing lists. Please don't cross-post to the WHATWG list and other lists -- you may pick either one, I read all of them. (Cross-po