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

Re: Standard way to qualify occurrences of resources as objects?

From: Aaron Swartz <aswartz@upclink.com>
Date: Sun, 23 Sep 2001 12:44:44 -0500
Message-Id: <200109231748.f8NHmK827688@theinfo.org>
Cc: www-rdf-interest@w3.org, Art Barstow <barstow@w3.org>
To: Patrick.Stickler@nokia.com
On Friday, September 21, 2001, at 01:38  AM, 
Patrick.Stickler@nokia.com wrote:

> I thought that I could do something like the following
>
>   <x:foo>
>      <rdf:Description>
>         <rdf:resource rdf:resource="urn:abc:xyz"/>
>         <x:bar>jkl</x:bar>
>      </rdf:Description>
>   </x:foo>
>
> but as pointed out by Art Barstow, rdf:resource can only be
> an attribute, not an element.

The correct way to do this is:

   <x:foo>
      <rdf:Description>
         <rdf:value rdf:resource="urn:abc:xyz"/>
         <x:bar>jkl</x:bar>
      </rdf:Description>
   </x:foo>

(replace rdf:resource with rdf:value)

Hope this helps,
--
       "Aaron Swartz"      | ...schoolyard subversion...
  <mailto:me@aaronsw.com>  |  <http://aaronsw.com/school/>
<http://www.aaronsw.com/> | because school makes kids dumb
Received on Sunday, 23 September 2001 13:44:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:51 GMT