Visual RFC.
ALL RFCs / RFC 8141
Read the RFC ↗
RFC 8141 / UNIFORM RESOURCE NAMES

Apply a query and a client fragment

05

A q-component can become the query of a returned locator. A fragment is interpreted for the retrieved representation, normally at the client.

RFC 8141 · § 2.3.2EXAMPLE
4 / 4
04
Do not invent a query-merging rule.

Independent case: the returned locator already has ?lang=en. RFC 8141 leaves combination behavior unspecified and says resolvers SHOULD document their strategy. This guide stops automatic merging and asks for that policy.

Apply a query and a client fragmentIndependent case: the returned locator already has ?lang=en. RFC 8141 leaves combination behavior unspecified and says resolvers SHOULD document their strategy. This guide stops automatic merging and asks for that policy.Separate case: locator already has queryReturned: https://books.example/read?lang=enOriginal q: view=shortno universal merge ruleResolver SHOULD document its strategyNo automatic query combination

Source for this drawing: RFC 8141 · Read RFC section 2.3.2 ↗

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

KEY POINT

Query parameters and fragments serve different consumers.

  • For a URN resolved to a locator, copy q into the locator’s query. If that locator already has a query, RFC 8141 specifies no required combination behavior; resolvers SHOULD document their strategy.
  • A fragment identifies a part or region according to the representation’s media type. For a single returned locator, f can usually be applied by the client as that locator’s fragment.
  • q and f do not affect URN-equivalence. Their general interpretation is undefined here if the URN does not resolve to a locator; the chapter assumes a returned HTTP locator and meaningful application parameters.
DETAILS

Hypothetical fixture: urn:example:book-7?=view=short#part maps to https://books.example/read. The q keyword view and fragment part have only the chosen application’s meaning. Fragment contents are not sent in an HTTP request target. This is not a generic rule to merge existing queries or resolve every URN.

Read the RFC section ↗

All chapters in RFC 8141

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗