W3C home > Mailing lists > Public > www-rdf-interest@w3.org > May 2001

Re: rdf schema

From: Eric Lease Morgan <eric_morgan@ncsu.edu>
Date: Mon, 07 May 2001 08:47:26 -0400
To: <xml4lib@sunsite.berkeley.edu>, RDF Interest <www-rdf-interest@w3.org>
Message-ID: <B71C119D.E0A%eric_morgan@ncsu.edu>
Aaron Swartz <aswartz@swartzfam.com> wrote:

>> In order to be as complete as possible and kill two birds with one stone,
>> how do I accomplish an RDF declaration? Like this:
>> <rdf:RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>> xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
>> xsi:schemaLocation="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>> http://www.w3.org/2000/07/rdf.xsd>
> What do you mean by "RDF Declaration"?
> Also, RDF doesn't really use XML Schema, so referring to the schemaLocation
> might be a bit confusing.

When I say "RDF Declaration" I mean, what is the XML syntax I use to point
to one or more XSD files as well as one or more RDF "schemas".

If I understand things correctly, then XSD is for validating the data types
in XML. XSD files are an enhanced way of doing what DTDs do. I believe
http://www.w3.org/2000/07/rdf.xsd is an example. Right?

In order enlist one or more vocabularies in my RDF I require RDF "schemas"
to describe what the elements in the vocabularies mean. Examples include the
Dublin Core (http://www.openarchives.org/OAI/dc.xsd) or anything I come up
with myself.

If I wanted to put RDF inside the metadata element of GetRecord OAI response
and I wanted my RDF to declare at least three names spaces (RDF, DC, and
DCQ), then what might my RDF declaration look like? This maybe:

  <rdf:RDF xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xsi = "http://www.w3.org/2000/10/XMLSchema-instance"
    xmlns:dc = "http://purl.org/dc/elements/1.1/
    xsi:schemaLocation = "http://www.w3.org/1999/02/22-rdf-syntax-ns#

Eric Lease Morgan
NCSU Libraries
Received on Monday, 7 May 2001 08:46:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:30 UTC