10 Regeln für persistente URIs

Phil Archer hat eine Studie zur Gestaltung von URIs veröffentlicht. Praktischerweise gibt er eine knackige Zusammenfassung in Form von 10 Regeln, die es zu beachten gilt:

Follow the pattern
e.g. http://{domain}/{type}/{concept}/{reference}
Avoid stating ownership
e.g. http://education.data.gov.uk/ministryofeducation/id/school/123456
Re-use existing identifiers
e.g. http://education.data.gov.uk/id/school/123457
Avoid version numbers
e.g. http://education.data.gov.uk/doc/school/v01/123456
Link multiple representations
e.g. http://data.example.org/doc/foo/bar.rdf
e.g. http://data.example.org/doc/foo/bar.html
Avoid using auto-increment
e.g. http://education.data.gov.uk/id/school/123456
e.g. http://education.data.gov.uk/id/school/123457
Implement 303 redirects for real-world objects
e.g. http://www.example.com/id/alice_brown
e.g. http://www.example.com/doc/alice_brown
Avoid query strings
e.g. http://education.data.gov.uk/doc/school?id=123456
Use a dedicated service
i.e. independent of the data originator
Avoid file extensions
http://education.data.gov.uk/doc/schools/123456.csv

Die Erläuterungen zu den einzelnen Thesen sind unbedingt zu lesen, und zwar in der “Study on Persistent URIs with identification of best practices and recommendations on the topic for the Member States and the European Commission”.