W3C home > Mailing lists > Public > www-rdf-interest@w3.org > August 2002

Non-Text Literals

From: Ashley Yakeley <ashley@semantic.org>
Date: Fri, 30 Aug 2002 22:22:21 -0700
Message-Id: <200208310522.WAA16121@mail4.halcyon.com>
To: "RDF Interest Group" <www-rdf-interest@w3.org>

Hi, I just subscribed. Is there a way to represent data other than text 
in RDF? For instance, given this,

  <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns="http://semantic.org/whatever#"
  <Person>
    <name>Ashley Yakeley</name>
    <email>ashley@semantic.org</email>
  </Person>
  </rdf:RDF>

how would I insert a "photograph" property? I thought maybe

  <photograph><something:Literal type="image/jpeg" 
encoding="base64"><![CDATA[
     AAAAAAAfhjeiwlnvlimeibeio etc.
  ]]></something:Literal></photograph>

or maybe this:

  
<photograph><rdf:Resource>data:image/gif;base64,R0lGODlhEAAQAJEAAP///wAAACe
MU//m5iH5BAEAAAAALAAAAAAQABAAAAIrhI+py+1/gpxMDoHFkCmMm2FfEH2gJI6G92Gopq5tCJ
OIFW62MlHQDwwCCwA7</rdf:Resource></photograph>

What's the best way to do this?

-- 
Ashley Yakeley, Seattle WA
Received on Saturday, 31 August 2002 01:22:21 GMT

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