on 02-14-2007 2:08 AM
what's the difference between urn and url?
Hi,
URN: Uniform Resource Name
urn:sap-com:xi:demo (URI with out protocol assignment)
URL: Uniform Resource Locator
Award points if helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
The namespace could be any string that uniquely defines the scope of those determined fields of the XML file. Usually, you use a URI to define that unique string, and since URLs are the most common URIs, people tend to use plain http URLs as the namespace (it doesn't need to be a valid url). But using "urn:test" for example isn't wrong.
From the specification:
URI
URI = Uniform Resource Identifier
There are two types of URIs: URLs and URNs
URL
URL = Uniform Resource Locator
<protocol>:// <host> :<port> <path> ? <query>
URN
URN = Uniform Resource Name.
URNs define XML schemas.
urn:<namespace>:<string>
URL: URI that specify a common Internet protocol such as HTTP or FTP are also called URLs. URL is an informal term an is not used in technical specifications.
http://www.foo.com/files/reports/marketing/report.html
URN: A URN is an identifier the uniquely indentifies a resource but does not specify how to access that resource.
ISBN: 1-930110-59-6
Where we use this
This is used in XI as a way to group your developments. Each Software Component Version can have several namespaces. These namespaces can be of the format
or
urn:sap.com.namespace2
This allows you to give objects the same names if they are in different namespaces as they can still be differentiated.
Also all development objects must belong to a specific namespace.
Please reward points if it helps
Please reward points if it helps
Thanks
Vikranth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is an URL
An Uniform Resource Locator (URL) is the term used to identify an Internet resource, and can be specified in a single line of text.
What is an URN
An Uniform Resource Name (URN) is the term used to identify an Internet resource, without the use of a scheme, and can be specified in a single line of text.
What is an URI
An Uniform Resource Identifier (URI) is used by a browser to identify a single document, and it too can be specified in a single line of text
The general form of an URL has four parts
A scheme followed by a colon.
Invokes a TCP/IP-based application level protocol
Schemes are: http, https, ftp, news, mailto, file, telnet.
A server name.
A // followed by the host name or IP address of the server
Not needed if the server is the default
news server
mail server
An optional port number. Standard or default port numbers are:
ftp *
ssh 22
telnet 23
smtp 25
gopher 70
http 80
nntp 119
SSL 443
A path.
Consisting of folders and/or files.
May include a file extension which identifies the type of document.
May also include a QUERY_STRING with arguments.
Ftp uses port 20 for data and port 21 for flow control.
DIFFERENCE BETWEEN URN & URI
The idea is that a URL is a mechanical link to a resource's location, where it can be downloaded. For this reason, a URL contains a hostname and a local part, all of which can be resolved anywhere on the Internet.
What a URN tries to do is different. It tries to give a description of a resource without actually pointing at it. For example:
urn:isbn:90-365-17273
-
URI: is a string that identifies any resource. Indentifying the resource does not necessarily mean we can retrieve it. URI is a superset of URL and URN.
files/reports/marketing/report.html
URL: URI that specify a common Internet protocol such as HTTP or FTP are also called URLs. URL is an informal term an is not used in technical specifications.
http://www.foo.com/files/reports/marketing/report.html
URN: A URN is an identifier the uniquely indentifies a resource but does not specify how to access that resource.
ISBN: 1-930110-59-6
I hope it helps
Best Regards
chandrakanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<b>What is an URL</b>
An Uniform Resource Locator (URL) is the term used to identify an Internet resource, and can be specified in a single line of text.
<b>What is an URN</b>
An Uniform Resource Name (URN) is the term used to identify an Internet resource, without the use of a scheme, and can be specified in a single line of text.
<b>What is an URI</b>
An Uniform Resource Identifier (URI) is used by a browser to identify a single document, and it too can be specified in a single line of text
<b>The general form of an URL has four parts</b>
A scheme followed by a colon.
Invokes a TCP/IP-based application level protocol
Schemes are: http, https, ftp, news, mailto, file, telnet.
<b>A server name.</b>
A // followed by the host name or IP address of the server
Not needed if the server is the default
news server
mail server
<b>An optional port number. Standard or default port numbers are:</b>
ftp *
ssh 22
telnet 23
smtp 25
gopher 70
http 80
nntp 119
SSL 443
<b>A path.</b>
Consisting of folders and/or files.
May include a file extension which identifies the type of document.
May also include a QUERY_STRING with arguments.
Ftp uses port 20 for data and port 21 for flow control.
<b>DIFFERENCE BETWEEN URN & URI</b>
The idea is that a URL is a mechanical link to a resource's location, where it can be downloaded. For this reason, a URL contains a hostname and a local part, all of which can be resolved anywhere on the Internet.
What a URN tries to do is different. It tries to give a description of a resource without actually pointing at it. For example:
urn:isbn:90-365-17273
-
<b>URI:</b> is a string that identifies any resource. Indentifying the resource does not necessarily mean we can retrieve it. URI is a superset of URL and URN.
files/reports/marketing/report.html
<b>URL:</b> URI that specify a common Internet protocol such as HTTP or FTP are also called URLs. URL is an informal term an is not used in technical specifications.
http://www.foo.com/files/reports/marketing/report.html
<b>URN:</b> A URN is an identifier the uniquely indentifies a resource but does not specify how to access that resource.
ISBN: 1-930110-59-6
I hope it helps
Best Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Uniform Resource Identifier (URI)
It addresses a resource in the Internet in the following way:
By name
This is called Uniform Resource Name (URN).
By location,
This is called Uniform Resource Locator (URL).
Uniform Resource Locator (URL)
It addresses a resource in the Internet. The URL is the address you enter into the address
field of your browser. The URL syntax describes a subset of the Uniform Resource Identifier
syntax.
It addresses a resource in the Internet, regardless of its location. The URN syntax follows the
rules of the URI. A URN can also be used to define distinct entities without being associated
to an existing resource. The name spaces in the portal make use of this feature. A URN has
the prefix: urn://. For further information about the syntax, see the description for RFC
2141 at www.ietf.org.
Please see below links
http://www.xfront.com/URLversusURN.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/e2/74e493cee04a168a163472c696c8e7/frameset.htm
Regards
Chilla..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kalpana,
>> URI (Uniform resource Identifier) is same as URL(Uniform resource locator) but it is not necessarily point to web resource.
>>URN is same as URI but dont have protocol assignment.
Cheers,
prasanthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The namespace could be any string that uniquely defines the scope of those determined fields of the XML file. Usually, you use a URI to define that unique string, and since URLs are the most common URIs, people tend to use plain http URLs as the namespace (it doesn't need to be a valid url). But using "urn:test" for example isn't wrong.
From the specification:
URI
URI = Uniform Resource Identifier
There are two types of URIs: URLs and URNs
URL
URL = Uniform Resource Locator
<protocol>:// <host> [:<port>] [<path> [? <query>]]
URN
URN = Uniform Resource Name.
URNs define XML schemas.
urn:<namespace>:<string>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.