URI: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Elf (talk | contribs)
moving nonCOLLADA definition into here
SteveT (talk | contribs)
No edit summary
Line 1: Line 1:
A '''universal resource identifier''' (URI) is a standard way of referencing elements, objects, files,and so on.
A '''uniform resource identifier''' (URI) is a standard way of referencing elements, objects, files, and so on.


The basic URI file scheme syntax is:
The basic URI syntax is:
  ''scheme''://''authority''/''filepath''?''query''#''fragment''
  ''scheme''://''authority''/''path''?''query''#''fragment''


URIs are either absolute or relative:
URIs are either absolute or relative:
*An ''absolute URI'' contains a scheme and an authority.  
*An ''absolute URI'' contains a scheme and a colon separator.  
*A ''relative URI'' is any URI that does not contain both a scheme and an authority. A relative URI can be a relative path, an absolute path, or just a fragment.
*A ''relative URI'' is any URI that does not contain both a scheme and a colon separator. A relative URI can be a relative path, an absolute path, or just a fragment.


The ''fragment'' portion references an element that can be found within the same document as the URI. An example of this:
The ''fragment'' portion references an element that can be found within the same document as the URI. An example of this:
Line 16: Line 16:


==External links==
==External links==
* [http://en.wikipedia.org/wiki/Uniform_Resource_Identifier Definition of URI]
* [http://gbiv.com/protocols/uri/rfc/rfc3986.html The URI spec]
* [http://en.wikipedia.org/wiki/Uniform_Resource_Identifier URI article on Wikipedia]
* [http://en.wikipedia.org/wiki/URI_scheme Discussion of URI file scheme]
* [http://en.wikipedia.org/wiki/URI_scheme Discussion of URI file scheme]


[[Category:Terminology]]
[[Category:Terminology]]

Revision as of 19:48, 25 May 2007

A uniform resource identifier (URI) is a standard way of referencing elements, objects, files, and so on.

The basic URI syntax is:

scheme://authority/path?query#fragment

URIs are either absolute or relative:

  • An absolute URI contains a scheme and a colon separator.
  • A relative URI is any URI that does not contain both a scheme and a colon separator. A relative URI can be a relative path, an absolute path, or just a fragment.

The fragment portion references an element that can be found within the same document as the URI. An example of this:

#redMaterial

See also

External links