URI question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon Noring

    #1

    URI question

    I am considering a custom URI scheme which identifies various
    resources, such as id's, within a coherent set of multiple XML
    documents using the query component.

    I was told that the syntax I'm considering is not valid per RFC 2396
    (http://www.ietf.org/rfc/rfc2396.txt), or some other related spec. I
    am mystified, but then I am not well-versed in URIs.

    Here's one example of the syntax being considered:

    myscheme:/A123456789?doci d=abc987

    myscheme : name of my custom URI scheme

    A123456789 : unique identifier associated with a coherent set of XML
    documents and resources of other media types

    docid=abc987 : The query which points to the element with ID="abc987"
    in one of the XML documents of the set (it is assumed
    all attribute values of type ID are unique across the
    entire set of XML documents.)


    If the above syntax is invalid for some reason, I would like to know
    why, and suggestions for an alternative syntax which would be valid.

    Thanks in advance for your feedback.

    Jon Noring
  • Julian F. Reschke

    #2
    Re: URI question

    "Jon Noring" <jon@noring.nam e> schrieb im Newsbeitrag
    news:821890f1.0 307021641.1c4d5 887@posting.goo gle.com...[color=blue]
    > I am considering a custom URI scheme which identifies various
    > resources, such as id's, within a coherent set of multiple XML
    > documents using the query component.
    >
    > I was told that the syntax I'm considering is not valid per RFC 2396
    > (http://www.ietf.org/rfc/rfc2396.txt), or some other related spec. I
    > am mystified, but then I am not well-versed in URIs.
    >
    > Here's one example of the syntax being considered:
    >
    > myscheme:/A123456789?doci d=abc987
    >
    > myscheme : name of my custom URI scheme[/color]

    Note that if you define a new URI scheme and plan to use it in generally
    available software, you'll have to register it with the IETF (which is
    likely to come back to you and ask why you need it).
    [color=blue]
    > A123456789 : unique identifier associated with a coherent set of XML
    > documents and resources of other media types
    >
    > docid=abc987 : The query which points to the element with ID="abc987"
    > in one of the XML documents of the set (it is assumed
    > all attribute values of type ID are unique across the
    > entire set of XML documents.)
    >
    >
    > If the above syntax is invalid for some reason, I would like to know
    > why, and suggestions for an alternative syntax which would be valid.[/color]

    If the scheme-specific part starts with a "/", the URI needs to be a
    hierarchical URI as defined in:

    A Uniform Resource Identifier (URI) is a compact string of characters for identifying an abstract or physical resource. This document defines the generic syntax of URI, including both absolute and relative forms, and guidelines for their use; it revises and replaces the generic definitions in RFC 1738 and RFC 1808. This document defines a grammar that is a superset of all valid URI, such that an implementation can parse the common components of a URI reference without knowing the scheme-specific requirements of every possible identifier type. This document does not define a generative grammar for URI; that task will be performed by the individual specifications of each URI scheme.

    [color=blue]
    > Thanks in advance for your feedback.[/color]

    Why don't you just use an existing scheme such as HTTP, for instance:


    `
    ?

    Regards, Julian


    Comment

    Working...