Concept Architecture
Uniform Resource Identifier (URI)
URIs are the names that web standards give to things, written as short strings with a fixed outline. The Internet Engineering Task Force (IETF) sets their shared syntax, and the Resource Description Framework and the other semantic web standards use them to name the things and relations in each statement. A web address is the familiar case, yet the same form also names drugs, code systems and abstract ideas that cannot be downloaded. For health economists the practical stake is matching, since a cost, an outcome or a clinical code can be joined automatically across datasets only when both sides use the same identifier or a stated mapping links them.
The IETF standard and the origin of the term
The generic syntax is RFC 3986, published by the IETF in January 2005 as Internet Standard 66. It replaced RFC 2396, which had merged the earlier specification of Uniform Resource Locators (RFC 1738, December 1994) and relative URLs into one syntax for all URIs. RFC 3986 traces the idea to the World Wide Web initiative, whose use of such identifiers dates from 1990.
In chapter 1 of Semantic Web for the Working Ontologist, Allemang, Hendler and Gandon present URIs as the web's way of naming things, with web addresses the most common kind. They note that authors who have not agreed on names will choose different URIs for the same real-world thing.
Five components of a URI
Every URI begins with a scheme name, and each scheme has its own specification that may narrow the syntax further. Up to four more components can follow, the authority, the path, the query and the fragment, and only the scheme and the path are required. The table splits two identifiers from the Health Economics Ontology (HEO) into these parts.
| Component | Concept identifier | Property identifier |
|---|---|---|
| Full URI | https://healtheconomics.wiki/concept/qaly | https://healtheconomics.wiki/ontologies/heo#isTypeOf |
| Scheme | https | https |
| Authority | healtheconomics.wiki | healtheconomics.wiki |
| Path | /concept/qaly | /ontologies/heo |
| Query | none | none |
| Fragment | none | isTypeOf |
RFC 3986 defines a fragment as identifying a secondary resource by reference to a primary one, so HEO's relationship properties share one namespace document while each keeps its own identifier. The Linked Data (Semantic Web) page covers how this hash pattern keeps a thing apart from its describing page.
Naming a resource without retrieving it
RFC 3986 sets no limit on what counts as a resource. Its examples include people, corporations, bound library books and abstract concepts. The RFC calls it a common misunderstanding that URIs refer only to accessible resources, since the URI itself only identifies. A URI for the incremental cost-effectiveness ratio as a concept is therefore a name first and a link second.
Nothing in the RFC requires a URI to keep identifying the same resource over time, though it calls that a common goal of all schemes, and it leaves any guarantee of later retrieval to whoever controls the namespace.
URI, URL, URN and IRI compared
RFC 3986 classes a URI as a locator, a name or both. A URL is a URI that also gives a means of locating the resource through its primary access mechanism, and URN has been used for URIs under the urn scheme and for any URI with the properties of a name. The RFC asks future documents to use the general term URI.
RFC 3987 adds the internationalised resource identifier (IRI), a string of Unicode characters with a defined mapping to a URI. The mapping writes each character outside the URI repertoire as UTF-8 bytes, each shown as a % sign and two hexadecimal digits, and every URI is by definition an IRI. RDF 1.1 names resources with absolute IRIs and states that every absolute URI and URL is an IRI. The WHATWG URL Standard, which sets rules for web browsers, aims to make RFC 3986 and RFC 3987 obsolete and to use the single term URL, because "URI and IRI are just confusing".
| Term | Main source | What it adds | Example |
|---|---|---|---|
| URI | RFC 3986 (2005) | Generic syntax shared by every scheme | https://healtheconomics.wiki/concept/qaly |
| URL | RFC 1738 (1994), RFC 3986 | Says how to reach the resource | http://loinc.org |
| URN | RFC 8141 (2017) | urn scheme, meant to be persistent and location-independent | urn:iso:std:iso:3166 |
| IRI | RFC 3987 (2005) | Unicode characters, mapped to a URI by %-encoding | https://example.org/coût becomes https://example.org/co%C3%BBt (illustrative) |
Deciding whether two identifiers match
Software cannot compare resources directly, so RFC 3986 settles matches by comparing strings and describes a ladder of methods, the cheapest being simple string comparison. Syntax-based normalisation treats the scheme and host as case-insensitive, and scheme-based normalisation applies one scheme's rules, such as the default port 80 of http. No rung removes every false negative, and comparison can never prove that two URIs name different resources, since one owner may serve the same resource under two domains.
RDF sits at the strict end. RDF 1.1 Concepts treats two IRIs as equal only under simple string comparison and forbids further normalisation, so it advises minting IRIs in normal form, without uppercase scheme or domain names or an explicitly stated default port. HL7 FHIR likewise treats URIs as case-sensitive and says applications should not create URIs that differ only by case.
Identifiers in HEO and in clinical code systems
HEO, published at healtheconomics.wiki/ontologies/heo, gives each concept an IRI made of healtheconomics.wiki/concept/ and the page's short name, so the concept's identifier is also its page address, and the page's JSON-LD names the page separately. The version 2.0.0 Turtle file names 5,201 concepts this way. Of these, 1,192 are retired concepts kept with their identifiers and marked deprecated, which leaves 4,009 in use. The file also links 602 concepts to Wikidata entity identifiers through the exactMatch property of the Simple Knowledge Organization System, all written with the http scheme, so a dataset that copies them with https will not match them by string.
In HL7 FHIR a coded value carries a system URI that names the code system, and the specification states that the pair of system and code is unique. FHIR R5 lists the URIs for external code systems, including SNOMED CT and LOINC, and asks implementers to allow for the rare case in which a code system URI changes. In a cost study built on real-world data, a diagnosis code taken from a FHIR record can be read correctly only with its system URI.
Worked example matching resource use to unit costs
All identifiers, quantities and unit costs here are hypothetical and illustrative. A costing team publishes a unit cost list with a URI for each item, and a trial team records resource use per 100 patients against identifiers typed by hand.
| Item | URI in cost list | URI in trial data | Quantity | Unit cost (GBP) |
|---|---|---|---|---|
| 1 GP consultation | http://example.org/cost/gp | http://example.org/cost/gp | 180 | 40 |
| 2 Nurse appointment | http://example.org/cost/nurse | http://EXAMPLE.org/cost/nurse | 260 | 12 |
| 3 Emergency attendance | http://example.org/cost/ae | http://example.org:80/cost/ae | 15 | 200 |
| 4 Outpatient attendance | http://example.org/cost/opd | https://example.org/cost/opd | 20 | 150 |
| 5 Physiotherapy session | http://example.org/cost/physio | http://example.org/cost/Physio | 40 | 35 |
Step 1. With every record matched, the item costs are 180 × 40 = 7,200, 260 × 12 = 3,120, 15 × 200 = 3,000, 20 × 150 = 3,000 and 40 × 35 = 1,400, a total of GBP 17,720 per 100 patients.
Step 2. Under simple string comparison, the rule RDF applies, only item 1 matches. The costed total is GBP 7,200 per 100 patients, understating it by 17,720 − 7,200 = GBP 10,520.
Step 3. Under RFC 3986 normalisation, item 2 also matches because the host is case-insensitive, and item 3 because 80 is the default http port, giving 7,200 + 3,120 + 3,000 = GBP 13,320. Item 4 still fails because the scheme differs, and item 5 because the path is case-sensitive, leaving 3,000 + 1,400 = GBP 4,400 uncosted.
Step 4. In an inner join, unmatched records drop out without any error, so the reported cost is lower. The remedy lies upstream, by minting each identifier once in normal form and copying it exactly. A Shapes Constraint Language check requiring every usage record to reach a unit cost would list the failures before any total is computed.
Limits and common misreadings
RFC 3986 warns against assuming that an identifier defines or embodies the identity of what it names, so a URI ending in qaly says nothing about how a QALY is calculated. RDF 1.1 Concepts adds that the owner sets what a URI denotes by social convention, and users who ignore that meaning may lose interoperability.
Shared URIs make digital interoperability possible without guaranteeing it. Two publishers may still mint different URIs for one thing, and their data stay apart until someone links them, for example with the sameAs property of the Web Ontology Language, though different strings do not prove different things. RFC 3986 also notes that URIs are often displayed, bookmarked and logged in clear text, which argues for keeping patient identifiers out of identifiers minted for published health data.
Sources
- Allemang D, Hendler J, Gandon F. Semantic Web for the Working Ontologist: Effective Modeling for Linked Data, RDFS, and OWL. 3rd edition. ACM Books; 2020. Chapter 1, pp 12 to 18.
- Berners-Lee T, Fielding R, Masinter L. Uniform Resource Identifier (URI): Generic Syntax. RFC 3986, STD 66. IETF; January 2005. https://www.rfc-editor.org/rfc/rfc3986
- Berners-Lee T, Masinter L, McCahill M. Uniform Resource Locators (URL). RFC 1738. IETF; December 1994. https://www.rfc-editor.org/rfc/rfc1738
- Cyganiak R, Wood D, Lanthaler M, eds. RDF 1.1 Concepts and Abstract Syntax. W3C Recommendation, 25 February 2014. https://www.w3.org/TR/rdf11-concepts/
- Duerst M, Suignard M. Internationalized Resource Identifiers (IRIs). RFC 3987. IETF; January 2005. https://www.rfc-editor.org/rfc/rfc3987
- HL7 International. FHIR Release 5 (v5.0.0), sections 4.1 Using Codes in Resources, 4.3 Code Systems and 2.1.28 Datatypes. 2023. https://hl7.org/fhir/R5/terminologies.html
- Saint-Andre P, Klensin J. Uniform Resource Names (URNs). RFC 8141. IETF; April 2017. https://www.rfc-editor.org/rfc/rfc8141
- van Kesteren A. URL Standard. WHATWG Living Standard, last updated 19 November 2026. https://url.spec.whatwg.org/
Related Concepts (3)
Frequently Asked Questions (6)
What is Uniform Resource Identifier?
A Uniform Resource Identifier (URI) is a short string of characters, beginning with a scheme such as https or urn, that names a resource on or off the web.
Source: Berners-Lee et al. 2005
How does a Uniform Resource Identifier differ from a URL and a URN?
RFC 3986, the IETF standard for Uniform Resource Identifier syntax, classes a URI as a locator, a name or both. A URL is a URI that also gives a means of reaching the resource through its primary access mechanism, such as an http address. The term URN has been used for URIs under the urn scheme, which are meant to stay globally unique and persistent, and for any other URI with the properties of a name. RFC 3986 asks later documents to use the general term URI, and an http URI is both a URI and a URL.
Source: Berners-Lee et al. 2005
What is the difference between a Uniform Resource Identifier and an internationalised resource identifier in RDF?
An internationalised resource identifier (IRI) extends the Uniform Resource Identifier to a wider range of Unicode characters. Each IRI maps to a URI by encoding characters outside the URI repertoire as UTF-8 bytes written in %-encoded form, and every absolute URI and URL is also an IRI. RDF 1.1 Concepts names resources with IRIs, requires them to be absolute and allows a fragment identifier. Two IRIs in an RDF graph are equal only when their strings are identical, and no further normalisation is performed before comparing them.
Source: Cyganiak et al. 2014
Why must a Uniform Resource Identifier be copied exactly when linking health economics datasets in RDF?
RDF 1.1 Concepts treats two identifiers as equal only under simple string comparison and forbids further normalisation, so a Uniform Resource Identifier copied with a different scheme, letter case or port will not join with the original. In a costing exercise that uses an inner join, a resource use record whose identifier differs by one character from the unit cost list drops out, and the total cost looks lower without any error. The specification therefore advises minting identifiers once in normalised form. Lowercase scheme and domain names and no explicitly stated default port are among the forms it recommends.
Source: Cyganiak et al. 2014
Does a Uniform Resource Identifier have to point to a web page that can be downloaded?
RFC 3986 calls it a common misunderstanding that a Uniform Resource Identifier refers only to accessible resources, since the identifier itself only provides identification. The standard sets no limit on what a resource can be, and its examples include people, corporations, bound library books and abstract concepts. A URI can therefore name a drug, a diagnosis or an idea such as the QALY without anything being retrievable from it. RFC 3986 also leaves any guarantee that a URI will keep returning the same information to whoever controls its namespace.
Source: Berners-Lee et al. 2005
How does HL7 FHIR use a Uniform Resource Identifier to identify a clinical code system?
In HL7 FHIR, a coded value carries a system element holding a Uniform Resource Identifier that names the code system, alongside the code itself. FHIR states that the combination of the code system URI and the code is unique, so a code string can be interpreted only together with its system. The FHIR R5 specification lists URIs for external code systems such as SNOMED CT and LOINC and treats URIs as case-sensitive for comparison. In cost studies built on real-world data, a diagnosis code extracted from a FHIR record therefore needs its system URI to be read correctly.
Source: HL7 International 2023
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 21 Nov 2026
Content version: 1.0.1
Canonical Identity
- Term code
- HS-HP-DH-133
Stable URI · Machine-readable · Resolvable · CC BY 4.0
