Nest Those Rails Resources Or Make Baby Semantic Web Cry
Proper web architecture dictates that a you should " Assign distinct URIs to distinct resources ." And Cool URIs for the Semantic Web states that: There should be no confusion between identifiers for Web documents and identifiers for other resources. URIs are meant to identify only one of them, so one URI can't stand for both a Web document and a real-world object. So we know that a URI should refer to one and only one resource. (Of course, you may have many URIs all referring to the same resource.) So why do so many web sites have URIs like http://www.example.org/myaccount ? That same URI is used to refer to any account in the system, depending on who is logged in. And that makes Baby Semantic Web cry. Why is the baby sobbing? A generic URI like http://www.example.com/myaccount isn't useful on the semantic web, because it's very difficult to make meaningful statements about that URI. Let's go and try. http://www.example.com/myaccount is the account ...