[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Understanding RDF

  • From: John Cowan <cowan@l...>
  • To: XML Dev <xml-dev@i...>
  • Date: Mon, 25 Jan 1999 11:45:18 -0500

rdf terms
Paul Prescod wrote:

> I keep thinking I understand RDF and then I look at DCD and think "I
> guess I don't." DCD is supposed to be an RDF vocabulary, right?

Well, sort of.  It is Microsoft RDF, not W3C RDF.  :-)

> So what are the properties of the DCD node? Just ElementDef and
> AttributeDef?
> Am I to understand that these are vector-valued properties?

Multivalued rather than vector (Sequence, in RDF terms) valued.
A property may have more than one value (in current RDF terms,
there may be multiple sentences with a common subject and
predicate), as you'd expect.
 
> People complain about SGML minimization, but RDF abbreviation is much
> more complicated. Perhaps someone can walk me through the expansion of
> A DCD document into completely described nodes and properties.

I'll try.  Here's the example from clause 1.1:

 <DCD>
  <ElementDef Type="Booking" Model="Elements" Content="Closed">
    <Description>Describes an airline reservation</Description>
    <Group RDF:Order="Seq">
      <Element>LastName</Element> <Element>FirstInitial</Element>
      <Element>SeatRow</Element> <Element>SeatLetter</Element>
      <Element>Departure</Element> <Element>Class</Element>
    </Group>
  </ElementDef>

  <!-- example omits boring field declarations -->
  <ElementDef Type="SeatRow" Model="Data" Datatype="i1" Min="1" Max="72" />
  <ElementDef Type="SeatLetter" Model="Data" Datatype="char" Min="A" Max="K"/>
  <ElementDef Type="Class" Model="Data" Datatype="char" Default="1"/>
 </DCD>

And here's my attempt to make unabbreviated correct RDF:

<RDF:RDF xmlns:RDF="http://w3.org/TR/1999/PR-rdf-syntax-19990105#"
	xmlns="http://w3.org/TR/1998/NOTE-dcd-19980731#">
 <RDF:Description>
 <RDF:type resource="http://w3.org/TR/1998/NOTE-dcd-19980731#DCD"/>
  <RDF:li>
   <RDF:Description>
    <RDF:type resource="http://w3.org/TR/1998/NOTE-dcd-19980731#ElementDef"/>
    <Type>Booking"</Type>
    <Model>Elements</Model>
    <Content>Closed</Content>
    <Description>Describes an airline reservation</Description>
    <Group>
     <Element>LastName</Element> <Element>FirstInitial</Element>
     <Element>SeatRow</Element> <Element>SeatLetter</Element>
     <Element>Departure</Element> <Element>Class</Element>
    </Group>
   </RDF:Description>
  </RDF:li>
  <RDF:li>
   <!-- example omits boring field declarations -->
   <RDF:Description>
    <RDF:type resource="http://w3.org/TR/1998/NOTE-dcd-19980731#ElementDef"/>
    <Type>SeatRow</Type>
    <Model>Data</Model>
    <Datatype>i1</Datatype>
    <Min>1</Min>
    <Max>72</Max>
   </RDF:Description>
  </RDF:li>
  <RDF:li>
   <RDF:Description>
    <RDF:type resource="http://w3.org/TR/1998/NOTE-dcd-19980731#ElementDef"/>
    <Type>SeatLetter</Type>
    <Model>Data</Model>
    <Datatype>char</Datatype>
    <Min>A</Min>
    <Max>K</Max>
   </RDF:Description>
  </RDF:li>
  <RDF:li>
   <RDF:Description>
    <RDF:type>http://www.w3.org/namespaces/DCD#ElementDef</RDF:type>
    <Type>Class</Type>
    <Model>Data</Model>
    <Datatype>char</Datatype>
    <Default>1</Default>
   </RDF:Description>
  </RDF:li>
 </RDF:Description>
<RDF:RDF>

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@c...
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.