Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some people were already doing this before, but with other formats. I did a little comparison between this and the one Best Buy currently uses, GoodRelations.

https://gist.github.com/1005688

I like this quite a bit better.



Well, the two gists don't quite encode the same information. In the schema.org example, one would still have to write code to parse the string dates. In the RDFa example, one could link several sites on the shared purl.org URL of, e.g., Friday, to answer questions like "which restaurants are open on Monday". That's the whole Linked Data idea.

On the other hand, the RDFa way is more painful when the opening hours differ between the days of the week.


The datetime attribute is designed to be easy to parse. They stick to a consistent format on schema.org. They reference ISO 8601 which is quite a bit more complicated, but hopefully they'll add something saying they only support a tiny subset of what ISO 8601 allows to make it easier to write tools.

http://schema.org/Duration

The tools aren't there yet so it's not as useful for linked data as RDFa right now, but hopefully it will be more useful soon.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: