CURIE
Encyclopedia
A CURIE defines a generic, abbreviated syntax for expressing URIs. It is an abbreviated URI
Uniform Resource Identifier
In computing, a uniform resource identifier is a string of characters used to identify a name or a resource on the Internet. Such identification enables interaction with representations of the resource over a network using specific protocols...

 expressed in CURIE syntax, and may be found in both XML
XML
Extensible Markup Language is a set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards....

 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.

QName
QName
QNames were introduced by XML Namespaces in order to be used as URI references. QName stands for "qualified name" and defines a valid identifier for elements and attributes. QNames are generally used to reference particular elements or attributes within XML documents...

s (the namespace
XML Namespace
xmlns tagged XML namespaces are used for providing uniquely named elements and attributes in an XML document. They are defined in a W3C recommendation. An XML instance may contain element or attribute names from more than one XML vocabulary...

 prefixes used in XML
XML
Extensible Markup Language is a set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards....

) 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.

The final recommendation was released 16 January 2009

Example

This example is based on one from the W3C Working Draft 7 March 2007, using a QName syntax within XHTML
XHTML
XHTML is a family of XML markup languages that mirror or extend versions of the widely-used Hypertext Markup Language , the language in which web pages are written....

.

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

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK