--alt
OBJECTIVE
The issue of what to call these things we're defining has been discussed at
length. First it was Universal Document Identifier. The name has changed as
the objective has been refined. The latest name is Universal Resource
Locator. The provisional charter is;
To define a printable string syntax to the allow
The expression of the address on the network of any accesable object
using existing information retrieval protocols;
The expression of the name of any object held in a directory system or
unique naming space on the network;
The distinction to be made easily in the syntax between such protocols
and directories and name spaces;
New protocols, directories and naming schemes to be included as and when
they are developed. [1]
Clearly what we are about is defining a language, i.e. a syntax and
semantics for communicating some information.
The information is the location and/or identity of some information
object in the global hypertext. It's a citation or a reference or a
hypertext link anchor.
I propose a specification for the language of URLs, in the context of a
specification for a language of global hypertext references.
These global hypertext references include more semantics than just
differentiating between protocols and accessing data. There are also
issues of determining the type and the identity of the referent data.
SGML as a syntactic specification tool
That's what it's for, after all. What I propose is a DTD that (with the
default SGML declaration) defines the language of global hypertext
references.
Some examples of the language:
<http host="info.cern.ch" path="hypertext/TheProject.html">
<http host="info.cern.ch" path="hypertext/people.html" anchor="timbl">
<http host="info.cern.ch" path="XFIND" search="SGML">
<prospero host="archie.mgil.ca" path="pub/ftp">
<file host="snoopy" path="~connolly/bin/cgrep.pl" type=appl subtype=x-perl>
<ftp host="export.lcs.mit.edu" dir="contrib"
name="XcRichText-1.2.tar.Z">
<usenet group="comp.infosystems.gopher">
<usenet article="<[email protected]>">
<wais host="quake.think.com" database="INFO" search="help">
<wais host="quake.think.com" database="INFO" wtype="TEXT" size=1000
path="/usr/local/wais/README" >
<telnet host="info.cern.ch">
<gopher host="boombox.umn.edu" port=70>
<gopher host="boombox.umn.edu" selector="foo "bar"" gtype=0 >
The DTD uses only the most basic features of SGML, and thus the resulting
language is not very complex. Implementation of a parser for this particular
SGML language is a vastly more simple task than implementing an SGML parser.
At the same time, we get the benefits of a rigorously defined language based
on established standards.
Note: I haven't studied the HyTime standard very carefully.
I think it's beyond the scope of the task at hand, but
I'd like to have that opinion substantiated by someone
who really knows. In particular, its Finite Coordinate
Systems could be used to model positions within
documents: characters, lines, paragraphs.
RELAVENT ISSUES
Verbosity This syntax is somewhat verbose, but I think that
implicit markup (punctuation rather than names) will
lead to a mass of quoting in many cases. And the
consistency between schemes is not necessarily very
high.
Long URLs Extra whitespace between tokens has no effect. There
is still the problem of quoted strings that are longer
than a mailer allows. Certainly there's some SGML
feature that I'm not aware of that addresses the
issue.
I don't believe there's a way to restrict the length of an element, though
there is a 960 character limit on the length of an
attribute value (in the default SGML declaration).
Quoting The SGML numeric character reference (e.g. €)
allows an attribute value literal to represent any
sequence of bytes.
NAMELEN The default SGML declaration specifies that names of
elements and attributes be 8 characters or less. It's
a conceptually simple matter to operate under an SGML
declaration where NAMELEN is higher.
Extensibility One problem with the current UDI syntax specification
is that it seems to allow new schemes to add arbitrary
complexity to the grammar. This specification limits
the language to an SMGL start tag.
If we adopt this spec, we need to give it a public text identifier, and
maintain a registry of the names used (probably with
the IANA).
DEPLOYMENT AND USAGE
The first place to try this specification out is in the WWW browser. (I'll
try to make the code changes if I find time). It's a simple matter of
elevating UDI's as SGML attributes to URLs as SGML elements. I'd like to
have someone who really knows SGML to have a look at this DTD and see if it
can be improved. And I'd like to study the HyTime standard, the Davenport
DASH, the CFCM standard, etc. to see how this element meshes with their
citation strategies. Also, it would be nice to have explicit support from
WAIS and Gopher clients -- drag and drop comes to mind.
SGML and semantics
SGML is famous for being divorced from application semantics. Most of the
semantics of URLs is in the constituent protocols. All we need to do is
define a way to parse a URL and pass the various bits to the protocol. But
as long as we're going to all the trouble to gather information accessible
with all these protocols into one specification, it makes sense to define
some semantics common to most applications that will use URLs.
DATA TYPES
Some of the schemes have explicit type information (wais, gopher), some have
implicit typing (html, USENET), and some have no typing at all (file, ftp).
The MIME content-type system is general and useful enough to warrant
support. An application should be able to determine the content-type of the
data regardless of the protocol.
RESOURCE IDENTITY
Many applications have use for determining whether two URLs refer to the
same information. Various schemes (such as USENET article id's) may have
semantics for identifying resources. But I think this capability is so
widely useful that it should be coherently supported for all protocols.
[email protected]
--alt
Content-Type: text/x-html
<!DOCTYPE html SYSTEM>
<title>Using SGML to define Universal Resource Locators</title>
<H1>Objective</H1>
The issue of what to call these things we're defining has been
discussed at length. First it was Universal Document Identifier. The
name has changed as the objective has been refined. The latest name is
Universal Resource Locator. The provisional charter is;
<a HREF="x-message-id:<[email protected]>">
<h4>To define a printable string syntax to the allow</h4>
<ol>
<li>The expression of the address on the network of any accesable
object using existing information retrieval protocols;
<li>The expression of the name of any object held in a directory
system or unique naming space on the network;
<li>The distinction to be made easily in the syntax between such
protocols and directories and name spaces;
<li>New protocols, directories and naming schemes to be included as
and when they are developed.
</ol>
</a>
<p>
Clearly what we are about is defining a language, i.e. a syntax and
semantics for communicating some information.
<p>
The information is the location and/or identity of some information
object in the global hypertext. It's a citation or a reference or a
hypertext link anchor.
<p>
I propose a specification for the language of URLs, in the context of
a specification for a language of global hypertext references.
<p>
These global hypertext references include more semantics than just
differentiating between protocols and accessing data. There are also
issues of determining the type and the identity of the referent data.
<H2>SGML as a syntactic specification tool</H2>
That's what it's for, after all. What I propose is a DTD that
(with the default SGML declaration) defines the language of
global hypertext references.
<p>
<h4>Some examples of the language:</h4>
<XMP>
<http host="info.cern.ch" path="hypertext/TheProject.html">
<http host="info.cern.ch" path="hypertext/people.html" anchor="timbl">
<http host="info.cern.ch" path="XFIND" search="SGML">
<prospero host="archie.mgil.ca" path="pub/ftp">
<file host="snoopy" path="~connolly/bin/cgrep.pl" type=appl subtype=x-perl>
<ftp host="export.lcs.mit.edu" dir="contrib"
name="XcRichText-1.2.tar.Z">
<usenet group="comp.infosystems.gopher">
<usenet article="<[email protected]>">
<wais host="quake.think.com" database="INFO" search="help">
<wais host="quake.think.com" database="INFO" wtype="TEXT" size=1000
path="/usr/local/wais/README" >
<telnet host="info.cern.ch">
<gopher host="boombox.umn.edu" port=70>
<gopher host="boombox.umn.edu" selector="foo "bar"" gtype=0 >
</XMP>
The DTD uses only the most basic features of SGML, and thus
the resulting language is not very complex. Implementation
of a parser for this particular SGML language is a vastly
more simple task than implementing an SGML parser.
At the same time, we get the benefits of a rigorously
defined language based on established standards.
<dl><dt>Note:
<dd>I haven't studied the HyTime standard very
carefully. I think it's beyond the scope of the task at
hand, but I'd like to have that opinion substantiated by someone
who really knows. In particular, its Finite Coordinate Systems
could be used to model positions within documents: characters,
lines, paragraphs.
</dl><p>
<h3>Relavent Issues</h3>
<dl>
<dt>Verbosity <dd>This syntax is somewhat verbose, but I think that
implicit markup (punctuation rather than names) will lead to a mass of
quoting in many cases. And the consistency between schemes is not
necessarily very high.
<dt>Long URLs
<dd>Extra whitespace between tokens has no effect. There is still
the problem of quoted strings that are longer than a mailer allows.
Certainly there's some SGML feature that I'm not aware of that
addresses the issue.
<p>
I don't believe there's a way to restrict the length of an element,
though there is a 960 character limit on the length of an attribute
value (in the default SGML declaration).
<dt>Quoting
<dd>The SGML numeric character reference (e.g. €) allows
an attribute value literal to represent any sequence of bytes.
<dt>NAMELEN
<dd>The default SGML declaration specifies that names of
elements and attributes be 8 characters or less. It's a
conceptually simple matter to operate under an SGML declaration
where NAMELEN is higher.
<dt>Extensibility
<dd>One problem with the current UDI syntax specification is that it
seems to allow new schemes to add arbitrary complexity to the grammar.
This specification limits the language to an SMGL start tag.
<p>
If we adopt this spec, we need to give it a public text identifier,
and maintain a registry of the names used (probably with the IANA).
</dl>
<h3>Deployment and Usage</h3>
The first place to try this specification out is in the
WWW browser. (I'll try to make the code changes if I find
time). It's a simple matter of elevating UDI's as SGML
attributes to URLs as SGML elements.
I'd like to have someone who really knows SGML to have a look
at this DTD and see if it can be improved. And I'd like
to study the HyTime standard, the Davenport DASH, the CFCM
standard, etc. to see how this element meshes with their
citation strategies.
Also, it would be nice to have explicit support from WAIS and Gopher
clients -- drag and drop comes to mind.
<h2>SGML and semantics</h2>
SGML is famous for being divorced from application semantics.
Most of the semantics of URLs is in the constituent protocols.
All we need to do is define a way to parse a URL and pass
the various bits to the protocol.
But as long as we're going to all the trouble to gather information
accessible with all these protocols into one specification, it makes
sense to define some semantics common to most applications that will
use URLs.
<h3>Data Types</h3>
Some of the schemes have explicit type information (wais, gopher),
some have implicit typing (html, USENET), and some have no typing at
all (file, ftp). The MIME content-type system is general and useful
enough to warrant support. An application should be able to determine
the content-type of the data regardless of the protocol.
<h3>Resource Identity</h3>
Many applications have use for determining whether two URLs refer
to the same information. Various schemes (such as USENET article
id's) may have semantics for identifying resources. But I think this
capability is so widely useful that it should be coherently supported
for all protocols.
<address>[email protected]</>