| 18 | |
| 19 | You should probably use [http://en.wikipedia.org/wiki/Content_negotiation Content Negotation] using the HTTP Accept: header. That way you can return HTML and RDF under the same URI. However, it's fine for the time being to just accept a ".rdf" suffix or a "%format=rdf" URL parameter. |
| 20 | |
| 21 | At [http://www.uniprot.org UniProt], we use content negotiation for our OWL documentation, but not (yet) for the actual data. Example: |
| 22 | {{{ |
| 23 | > wget --header='Accept: application/rdf+xml' http://purl.uniprot.org/core/recommendedName |
| 24 | [...] |
| 25 | Saving to: `recommendedName.rdf |
| 26 | |
| 27 | > wget --header='Accept: text/html' http://purl.uniprot.org/core/recommendedName |
| 28 | [...] |
| 29 | Saving to: `recommendedName.html |
| 30 | }}} |