264 points · by fesja · 14y ago · 109 comments
Have you looked at http://schema.org/docs/schemas.html and the examples there?
Everything in the example given is encapsulated by schema.org and that would describe it in a way that was unambiguous.
I know that schema.org has been dismissed because "The problem is that it's too complicated for a non-developer", but I would say that for a non-developer this file is also too complicated. Most non-developer small business owners can barely use FTP or use the Wordpress admin. These people don't have a robots.txt and won't create a business.txt
I would argue that making business.txt schema.org formatted and then to use a simple generator wizard to produce it would be more accessible to the small business owner than giving them a text file to edit.
They even provide an example for an organization here: http://microformats.org/wiki/hcard#Parsing_Details
It looks like by default, it only intends to have one url but adding more should be as simple as adding a rel type to give some context around it.
My experience with small business clients is that they have no idea what they are doing when it comes to the web. They tend to know exactly what they want, and are usually right. But, they don't know how to translate that to their sites. Usually, it just takes a bit of guidance.
Creating a proper about page for a site that implements schema.org standards makes sense for both the developer and content creator.
Having said that I also believe that a txt file is way more easier than schema for the rest of people who can edit a file. That txt file is done in minutes, the schema file is done in hours :P
What i feel necessary are 2 things:
- Having a separate file
- Doing something that the big websites support so we can "sell" to local businesses.
So if more people believe we should extend schema instead of going with txt, we can work on it.
While I applaud the idea, can we please, please have a meta-tag or header that points to the location of this file if it's available?
We don't need another favicon.ico nor robots.txt
Instead of generating errors from 404s (a lot of noise), try generating errors from the same repeated 404s.
Besides, my frontpage is either heavily fragment- or just page-cached anyways - especially for anonymous user - so it can be served directly from RAM for all intents and purposes, so a hit to the frontpage is really, really cheap.
Because your 404 should be one of the heaviest pages on your site, full of graphics and surprises. Why not make a full-featured game specifically for your 404s?
As an example, a TV station site I follow had a /fullepisodes/ basename page which wasn't updating in sync with their show pages, apparently pulling from a different data store. After about six months of declining updates to that page, they eventually re-vamped it with a more-correct data source. I like to think it happened because I and others kept browsing directly to the easily memorable URL
You are supposed to use the /.well-known/ subfolder.
http://tools.ietf.org/html/rfc5785
If you plan to implement a "standard" please try to review the RFCs that have covered this ground before. There's probably already a standard which may fit. If not, there's probably one that's close you could propose a change to. And if you're trying something genuinely new, you'll at least be on the right foundation.
Explanation:
https://sites.google.com/site/oauthgoog/fedlogininterp/openi...
The core problem is definitely that many small business sites, especially restaurant ones, are really terrible outdated, and really not run by someone who would understand the concept of "upload text file to server".
So perversely, storing the information centrally would be easier, but who would you trust with it? The temptation to create a walled garden and "monetize" all that juicy local business data would be very strong for the maintainers. And then everything falls apart into small localized non-interoperating fiefdoms again, and we're back where we started...
http://support.google.com/webmasters/bin/answer.py?hl=en&...
I'm not sure the argument that these are too complicated for non-developers really works here, after all uploading a file to the root of a web directory is likely also too complicated...
The owner of the local business is the one who knows which is the correct address, phone, opening hours, menu, etc. All the other websites (yelp, foursquare, google places) can be wrong. We just need the local business to tell the rest of the world which is the correct data.
If updating the HTML is too complicated for the website owner (fair enough!) then this should be taken care of in the respective CMS.
I don't mean to sound negative, I know It takes some thought and time to put out a proposal like this :-) Just in this case, this seems to be a problem that was solved a long time ago...
http://support.google.com/webmasters/bin/answer.py?hl=en&...
No. No no no. This is not how the Internet is supposed to work. I search for a restaurant online hoping they have a website with this information on it. If it's a chain, I can find the local location and know the information is correct. If it's a local place with a website, the information is probably outdated anyway because they don't edit the site when their menu and hours change ... which means they're not going to edit business.txt to reflect the changes. So I'm really trying to find a phone number to speak to a human or listen to the answering thingy so that I can verify their hours.
This proposal is to help automate updates on other sites when the restaurant changes their menu or their hours. The only way this is going to work is for the computers that help manage the restaurant are also providing information to the website. Need to change the menu? Great, the changes are also pushed to the website. Changing the hours employees can clock in? Comes with a requisite change to operating hours and is reflected on the website.
For those of you who want to quickly get up to speed on RDF/Schema, "A Semantic Web Primer for Object-Oriented Software Developers"[2] was to me a very good introduction.
[0] From the W3C primer on RDF: "The Resource Description Framework (RDF) is a language for representing information about resources in the World Wide Web."
[1] http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-b...
[2] http://infiniteundo.com/post/25326999628/falsehoods-programm...
Ask yourself if you really need to break out the specific components of the address. In this case you don't. As long as the user knows the correct local format, it's fine.
On the flipside, even Line 1, 2, 3, country isn't sufficient for all addresses. If you have an addressee, additional delivery information (eg a department), need to include a rural route identifier (eg for Canada), or need to store/use bilingual addresses (again for Canada) then you need more than 3 lines. If you want to talk edge cases, having a country code means that places like the Haskell Free Library and Opera House (http://en.wikipedia.org/wiki/Haskell_Free_Library_and_Opera_...) can't be correctly addressed.
Hell, even the Falsehoods programmers believe about time doesn't come close to capturing the intracacies of lunar/lunisolar calendars (eg those with 13 months in a year, or a variable number of months in a year etc).
I guess that my point is that you need to find the balance of utility and complexity. If you need to be able to store every format of everything you wind up with either a hugely complex schema, or a single field that contains everything (and may even not capture everything completely), but that's not useful for anything except end-user display when the user is able to parse (or make a good guess at) the data.
Unfortunately there isn't a single winning approach - so unless you draw an arbitrary line your specification can't encompass every edge case while maintaining simplicity and achieving what it's set out to.
Google places is good but I doubt Yelp does anything, for example, and a ton of other sites. And most people don't even know to trust google places more anyway, they'll just trust the top result on google.
PD: i hate when we have to complicate things because of bad human behaviours!!
• HTTP Headers
• Meta-tags
• <link rel="business"> tags
• RFC 5785 (/.well-known/ folder)
• Microdata
• Microformats
• RDF Schema
No wonder we are in http://xkcd.com/927/ territory...
There are already too many magical files cluttering up the root.
TL;DR: there are existing solutions, micro-formats for example.
You're right. No research was done. Author just threw information that he thought was important into a text file and called it a day. RFC 5785 says to put the file into the .well-known folder, the author only thought about United States addresses when making this, and as you stated the problem has already been addressed.
The only thing I know is that there is a problem local businesses and website providers have. And there isn't an efficient solution yet. I've propose a solution so we can discuss it and see if it makes sense. That's where we are now.
About going international, I'm from Spain, so of course I will be the first one interested in having an international "standard". People are already giving suggestions in github!
Looks like you made a worse version of hcard, http://microformats.org/wiki/hcard.
Adding a frontend to keep a hcard updated would be what makes this more accessible for business workers/managers.
I've used this on one site for several (six??) years or so, examples at http://microformats.org/wiki/hcard-examples-in-wild-reviewed.
Shouldn't this be self-descripting - like indicating language code (use ISO...) of the narrative/description?
Also, how about country codes? I mean - some people use U.K., some UK, some England, some United Kingdom, etc
I think what I really get from this is that each business needs some form of public API.
I propose:
[company/product name] (URL)
score: X/Y
[review text]
--
[next review...]
E.g.: Frank's Pizza Place (http://franks.geocities.com)
score: 8/10
Good service and food. Doesn't accept credit cards.As long as it was called reviews.txt and had that particular format, it'd be valid.
my email is javier at touristeye.com
Please don't take this the wrong way, since I think it's great that you are thinking about these problems, but :
It's not clear what advantage your format offers. On the other hand, it has some pretty clear disadvantages, including generating massive amounts of possibly useless web traffic, not just on the server side, but on the crawling side, since now getting business info takes two requests, instead of one (when it is embedded in a schema.org format on the page).
Additionally, without some tag that tells you whether business.txt would exist, you get to check for every website. This will slow down crawlers.
Given at least most of the companies on the crawling side of this want to support/support the schema.org markup version, ISTM you would be better off spending your time making simple generators for it or adding support for it to wordpress/et al.
FWIW: I have no comment on whether text formats are better than schema.org or anything like that, but to a large degree, it's irrelevant, because getting a large number of folks to support something they believe is already a solved problem is very very difficult.
1. I wrote in another comment here (ctrl+f) but there's overlap with other standards. One of our main multi-million EU projects was about seamless integration of different standards for representing information about resources (i.e. details of a factory) when integrating between very large entities (i.e. BMW and Honda). It was more on the mathematical/computer-science side than technical (i.e. not "Is some path for business.txt better than others"). When two IT departments/armies of consultants use different standards for everything from Address to TaxReceiptCode and you try to integrate it's ugly. When it's a large N of such, you need multi-million EU-sanctioned research projects. Moral of the story: please use standards. That said:
2. There's definitely a turing tarpit[1] situation with RDFs and RDF Schema(s). As you said on github, "Other local businesses may think on adding to their website some metadata (using http://schema.org/). The problem is that it's too complicated for a non-developer". The best standard is the one being used instead of being forgotten in an hundred pages design document. If you find yourself thinking about the problems RDF (and schemas) tries to solve, please take into consideration a clear and standard one-to-one conversion between the specification and some other more established and expressive specification. For example, define an RDF Schema and a clear conversion between RDF using that schema to and from business.txt. The main benefit for the project if you take such a conversion into consideration while designing the document is that it promises a clear way for future spiders to interpret the data regardless of expressiveness and may give the more knowledgeable authors of such document that more expressiveness, where needed. The default should be clear and easy. Case in point:
3. People here commented how the address format is very American. They are right. But for ease of use, maybe the default should be American and add an option to explicitly express the address differently (i.e. different administrative entity than states) and let there be a canonical conversion to something like this, including a way to explicitly express the address using something like the Freebase schema for addresses[2]. Notice how complex are the types for the different fields, like State/Province. This is because encompassing an Address entity globally is a complex problem. Heck, in some countries usage of place descriptors ("fourth junction after the main entrance to town") is still common. I once read some research paper on it, but it eludes me at the moment.
EDIT: 4. Some people here say what's the use. I'm sure you can address this better than myself, but the main "selling point" for me is the ease of use. The focus should be on very easy defaults. Properly defining namespace URIs or microdata itemtype for example is already error-prone/requires too much thinking for the general user. I do think there may be a room for this project.
That's it for now. Too much long of an HN break as it is :-)
I think this is great idea, however Google has something like this already (microformats based) http://maps.google.com/help/maps/richsnippetslocal/ maybe adopting this would be easier?
about rich snippets, go to http://news.ycombinator.com/item?id=4438320
Have you ever written a SAX parser? XML parsing is not "easier". Screw the libraries that "do it for you". You still have to understand the tiered data structure, attributes vs content, namespaces,.... the list goes on. Understanding the schema and all that jazz is WAY more difficult than key: value.
edit: Parsing is just as easy. Here is a one-liner in ruby:
business_data = IO.readlines("business.txt").each_with_object({}) {|l, memo| k, v = l.split(':'); memo[k.strip] = v.strip }
XML is unsexy, but it's only complex because it addresses these issues up front. A clever one-liner doesn't make these issues go away, it just postpones them to an inopportune time later.
The original post doesn't address these issues, and I'm not sure it is ever designed to. If someone wanted to create a globally accessed, multi-language, all-encoding supported fully validated business information XML-RPC protocol they certainly wouldn't have arrived at "business.txt".
The main problem it was trying to solve is to prevent business owners from having to update their information everywhere it ends up - not to ensure proper encoding (99% of applications would be happy with UTF-8) and formatting. In almost all use cases simply copying what was there and plopping it into a string would be fine.
Which brings me back to my point about XML. A lot of the time, XML produces complexity that simply isn't necessary. Following the 80/20 rule, designing it for your specific use case will be multitudes faster and work fine for your target audience, no need to build an enterprise system and standard global protocol out of the gate.
txt: 1, XML: 0
Also, we are following the same pattern as the robots.txt file.
I'm not so sure about the proposal itself, though. For local, small businesses, how much can we assume about technical ability? If they have to pay the people who did their website to keep it up to date, how can we be sure they'll use it?
If you want to have a feed of some kind that is machine-readable then you need to have a spec that is unambiguous. Using JSON or XML helps. Having a clear understanding of what could be in each field, including currencies, timezones, etc, is required.
Disclaimer: My significant other works there. But I wouldn't recommend it if it weren't useful/relevant/awesome.
This is why I like the business.txt idea. Microformats or microdata, however appropriate and simple, are still one level of abstraction above this idea.
I came to this post 45 seconds ago, looked at GH, and could explain what this is for and how it works. That's saying something.