Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21a8c7c4cdc5751

Jump to content

// Workers AI · dad joke modeWhat did Curie say to her date? You're radioactive to my heart.

From Wikipedia, the free encyclopedia

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. 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] and the final version of the specification was released 16 December 2010. CURIE was never able to reach Recommendation status since the W3C XHTML2 Working Group's charter expired while the specification was in the Candidate Recommendation stage, but the final version of the specification notes that the CURIE specification was "considered mature and stable by the working group" at the time of publication.[2]

Example

[edit]

This example is based on one from the aforementioned draft,[1] 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>
  • Line 1: Prefix definition: <html xmlns:wikipedia="http://en.wikipedia.org/wiki/">
  • Line 5: Hyperlinked CURIE: [wikipedia:Biome]

See also

[edit]

References

[edit]
  1. 1 2 Birbeck, Mark; McCarron, Shane, eds. (7 March 2007). CURIE Syntax 1.0: A Syntax for Expressing Compact URIs (W3C Working Draft).
  2. Birbeck, Mark; McCarron, Shane, eds. (16 December 2010). CURIE Syntax 1.0: A Syntax for Expressing Compact URIs (W3C Working Group Note).