URN 1
' & $ %Uniform Resource Names (URNs)
April 21, 1998
Uniform Resource Names (URNs) & % April 21, 1998 ' $ URN - - PowerPoint PPT Presentation
' $ URN 1 Uniform Resource Names (URNs) & % April 21, 1998 ' $ URN 2 URNs persistent resource identifiers (names) URLs = location for long-lived resources (papers, newspaper article archives, legal records, Dilbert
URN 1
' & $ %April 21, 1998
URN 2
' & $ %URNs
records, Dilbert cartoons, ...)
French)
directory,hints
→ URLs, URCs
April 21, 1998
URN 3
' & $ %Uniform Resource Characteristics (URC)
meta information:
➠ not currently available
April 21, 1998
URN 4
' & $ %URN syntax
[urn:] <NID> ":" <NSS> NID: namespace identifier (ISBN) NSS: namespace specific syntax Examples (fictional): urn:isbn:1-23485-8-29 cid:foo@huh.com
April 21, 1998
URN 5
' & $ %URN resolution
April 21, 1998
URN 6
' & $ %HTTP for URN resolution
N2L: URN → URL: 302 Moved temporarily N2Ls: URN → URLs: <LI> URLs N2R: URN → resource N2C: URN → URC N2Ns: URN → current URN L2Ns: URL → URNs GET /uri-res/N2L/cid:foo@huh.com HTTP/1.0
April 21, 1998
URN 7
' & $ %DNS as URN directory
map service + domain to host(s), ports and protocol (RFC 2052)
April 21, 1998
URN 8
' & $ %NAPTR: Example 1: one-stage resolution
Dunn and Bradstreet company identifiers:
duns.urn.net ;;
regexp replacement IN NAPTR 100 10 "s" "dunslink+N2L+N2C" "" dunslink.udp.isi.dandb.com IN NAPTR 100 20 "s" "rcds+N2C" "" rcds.udp.isi.dandb.com IN NAPTR 100 30 "s" "http+N2L+N2C+N2R" "" http.tcp.isi.dandb.com
sequence
;; Pref Weight Port Target rcds.udp.isi.dandb.com IN SRV 0 0 1000 defduns.isi.dandb.com IN SRV 0 0 1000 dbmirror.com.au IN SRV 0 0 1000 ukmirror.com.uk
➠ three redundant servers
April 21, 1998
URN 9
' & $ %NAPTR: Example 2: two-stage resolution
MIME content identifiers, e.g., urn:cid:199606121851.1@mordred.gatech.edu:
cid.urn.net ;;
regexp replacement IN NAPTR 100 10 "" "" "/.+@([ˆ@]+)/\1/i" .
no “terminal” flag ➠ mordred.gatech.edu NAPTR
*.gatech.edu IN NAPTR ;;
regexp replacement IN NAPTR 100 50 "s" "z3950+N2L+N2C" "" z3950.tcp.gatech.edu. IN NAPTR 100 50 "s" "rcds+N2C" "" rcds.udp.gatech.edu. IN NAPTR 100 50 "s" "http+N2L+N2C+N2R" "" http.tcp.gatech.edu.
April 21, 1998
URN 10
' & $ %NAPTR: Example 3: http mirroring
http://www.foo.com/software/latest-beta.exe
http.urn.net IN NAPTR ;; order pref flags service regexp replacement 100 90 "" "" "/.*\/\/([ˆ\/:]+)/\1/i" .
➠ return everything after the first double slash ➠ www.foo.com
www.foo.com ;;
IN NAPTR 100 100 "s" "http+L2R" "" http.tcp.foo.com IN NAPTR 100 100 "s" "ftp+L2R" "" ftp.tcp.foo.com
April 21, 1998