$Id: mime.txt,v 1.1 2005/11/23 18:25:04 eric Exp $ STATUS: This is a draft of a possible SPARQL Query Language MIME type registration for adding to a WD. This has not been reviewed or approved by the RDF Data Access Working Group. contact: Eric Prud'hommeaux See How to Register a Media Type for a W3C Specification http://www.w3.org/2002/06/registering-mediatype Internet Media Type registration, consistency of use TAG Finding 3 June 2002 (Revised 4 September 2002) http://www.w3.org/2001/tag/2002/0129-mime ---------------------------------------------------------------------- X. Internet Media Type, File Extension and Macintosh File Type (Normative) The Internet Media Type / MIME Type for the SPARQL Query Language is "application/sparql-query". It is recommended that sparql query files have the extension ".rq" (all lowercase) on all platforms. It is recommended that sparql query files stored on Macintosh HFS file systems be given a file type of "TEXT". This information that follows is intended to be submitted to the IESG for review, approval, and registration with IANA. To: ietf-types@iana.org Subject: Registration of media type application/sparql-query Type name: application Subtype name: sparql-query Required parameters: None Optional parameters: None Encoding considerations: The syntax of the SPARQL Query Language is expressed over code points in Unicode[UNICODE 3.0]. The encoding is always UTF-8 [RFC3629]. Unicode code points may also be expressed using an \uXXXX (U+0 to U+FFFF) or \UXXXXXXXX syntax (for U+10000 onwards) where X is a hexadecimal digit [0-9A-F] Security considerations: SPARQL queries using FROM, FROM NAMED, or GRAPH may cause the specified URI to be dereferenced. This may cause additional use of network, disk or CPU resources along with associated secondary issues such as denial of service. The security issues of Uniform Resource Identifier (URI): Generic Syntax [RFC3986] Section 7 should be considered. In addition, the contents of file: URIs can in some cases be accessed, processed and returned as results, providing unintended access to local resources. The SPARQL language permits extensions, which will have their own security implications. Multiple IRIs may have the same appearance. Characters in different scripts may look similar (a Cyrillic "o" may appear similar to a Latin "o"). A character followed by combining characters may have the same visual representation as another character (LATIN SMALL LETTER E followed by COMBINING ACUTE ACCENT has the same visual representation as LATIN SMALL LETTER E WITH ACUTE). Users of SPARQL must take care to construct queries with IRIs that match the IRIs in the data. Further information about matching of similar characters can be found in Unicode Security Considerations [UNISEC] and Internationalized Resource Identifiers (IRIs) [RFC3987] Section 8. Interoperability considerations: There are no known interoperability issues. Published specification: This specification. Applications which use this media type: No known applications currently use this media type. Additional information: Magic number(s): A SPARQL query may have the string 'PREFIX' (case independent) near the beginning of the document. File extension(s): ".rq" Base URI: The SPARQL 'BASE ' term can change the current base URI for relative IRIrefs in the query language that are used sequentially later in the document. Macintosh file type code(s): "TEXT" Person & email address to contact for further information: public-rdf-dawg-comments@w3.org Intended usage: COMMON Restrictions on usage: None Author/Change controller: The SPARQL specification is a work product of the World Wide Web Consortium's RDF Data Access Working Group. The W3C has change control over these specifications. Normative References [RFC3023] Murata, M., St. Laurent, S., and D. Kohn, "XML Media Types", RFC 3023, January 2001. [RFC3629] F. Yergeau, "UTF-8, a transformation format of ISO 10646", RFC 3629, November 2003. [RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, January 2005. [RFC3987] Duerst, M. and M. Suignard, "Internationalized Resource Identifiers (IRIs)", RFC 3987, January 2005. [UNICODE3.0] "The Unicode Standard Version 3.0", Addison Wesley, Reading, MA, ISBN 0-201-61633-5, August 2000. http://www.unicode.org/unicode/standard/standard.html. [UNISEC] Mark Davis, Michel Suignard, "Unicode Security Considerations. http://www.unicode.org/reports/tr36/