CURIE

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

In computing, a CURIE (or Compact URI) defines a generic, abbreviated syntax for expressing Uniform Resource Identifiers (URIs). It is an abbreviated URI expressed in a compact syntax, and may be found in both XML and non-XML grammars. A CURIE may be considered a datatype.

An example of CURIE syntax: [isbn:0393315703]

The square brackets may be used to prevent ambiguities between CURIEs and regular URIs, yielding so-called safe CURIEs.

QNames (the namespace prefixes used in XML) often are used as a CURIE, and may be considered a type of CURIE. CURIEs, as defined by the W3C, will be better defined and may include checking. Unlike QNames, the part of a CURIE after the colon does not need to conform to the rules for XML element names.

The first W3C Working Draft of CURIE syntax was released 7 March 2007.[1]

The final recommendation was released 16 December 2010. [2]

Example

This example is based on one from the W3C Working Draft 7 March 2007, using a QName syntax within XHTML.

<html xmlns:wikipedia="http://en.wikipedia.org/wiki/">
    <head>...</head>
    <body>
        <p>
            Find out more about <a href="[wikipedia:Biome]">biomes</a>.
        </p>
    </body>
</html>
  • The definition ("<html xmlns:wikipedia="http://en.wikipedia.org/wiki/">") is highlighted in yellow
  • The CURIE ("[wikipedia:Biome]") is highlighted in green

See also

References

  1. ^ Working Draft CURIE Syntax 1.0
  2. ^ CURIE Syntax 1.0 Final Recommendation

External links

  • W3C Candidate Recommendation 16 January 2009 [1]
Retrieved from "https://en.wikipedia.org/w/index.php?title=CURIE&oldid=867887356"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/CURIE
This page is based on the copyrighted Wikipedia article "CURIE"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA