Re: linked open data and PDF

Larry,

IMO mixing RDF/XML with JSON doesn't make sense. Why not keep it
RDF/XML? Like this (not tested):

<x:xmpmeta xmlns:x="adobe:ns:meta/">
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
   <rdf:Description rdf:about=""
      xmlns:pdf="http://ns.adobe.com/pdf/1.3/"
      xmlns:lod="http://5stardata.info/ns/linked-data"
      xmlns:xmp="http://ns.adobe.com/xap/1.0/"
      xmlns:dc="http://purl.org/dc/elements/1.1/"
      xmlns:owl="http://www.w3.org/2002/07/owl#sameAs"
      xmlns:meteo="http://purl.org/ns/meteo#"
      xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
   <pdf:Producer>Acrobat editing after Mac OS X 10.5.8 Quartz
PDFContext</pdf:Producer>
   <xmp:CreateDate>2012-01-22T15:00:00-08:00</xmp:CreateDate>
   <dc:title>Temperature forecast for Galway, Ireland</dc:title>
   <dc:creator>http://sw-app.org/mic.xhtml#i</dc:creator>
   <xmpMM:DocumentID>uuid:80f41db9-628f-48aa-9b7a-b7f5c2629304</xmpMM:DocumentID>
  </rdf:Description>
  <rdf:Description rdf:about="#Galway">
   <rdf:type rdf:resource="http://purl.org/ns/meteo#Place"/>
   <owl:sameAs rdf:resource="http://dbpedia.org/resource/Galway"/>
   <meteo:forecast rdf:resource="#forecast20101113"/>
   <meteo:forecast rdf:resource="#forecast20101114"/>
   <meteo:forecast rdf:resource="#forecast20101115"/>
  </rdf:Description>
  <rdf:Description rdf:about="#temp">
   <rdf:seeAlso rdf:resource="http://dbpedia.org/resource/Temperature"/>
   <owl:sameAs rdf:resource="http://dbpedia.org/resource/Celsius"/>
  </rdf:Description>
  <rdf:Description rdf:about="#forecast20101113">
   <meteo:predicted
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-11-13T00:00:00Z</meteo:predicted>
   <meteo:celsius
rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2</meteo:celsius>
  </rdf:Description>
  <rdf:Description rdf:about="#forecast20101114">
   <meteo:predicted
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-11-14T00:00:00Z</meteo:predicted>
   <meteo:celsius
rdf:datatype="http://www.w3.org/2001/XMLSchema#double">4</meteo:celsius>
  </rdf:Description>
  <rdf:Description rdf:about="#forecast20101115">
   <meteo:predicted
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-11-15T00:00:00Z</meteo:predicted>
   <meteo:celsius
rdf:datatype="http://www.w3.org/2001/XMLSchema#double">7</meteo:celsius>
  </rdf:Description>
 </rdf:RDF>
</x:xmpmeta>

Martynas

On Tue, Jan 20, 2015 at 2:04 AM, Larry Masinter <masinter@adobe.com> wrote:
> I made a little example PDF based on the example at http://5stardata.info/  where document metadata is in the XMP itself, but document data is just a string value (this example uses JSON).
>
> The same data from http://5stardata.info/gtd-5.html should be available in the attached, starting from http://5stardata.info/gtd-1.pdf.
>
> I thought a concrete example would help
>
>
> <x:xmpmeta xmlns:x="adobe:ns:meta/">
>   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
>    <rdf:Description rdf:about=""
>       xmlns:pdf="http://ns.adobe.com/pdf/1.3/"
>       xmlns:lod="http://5stardata.info/ns/linked-data"
>       xmlns:xmp="http://ns.adobe.com/xap/1.0/"
>       xmlns:dc="http://purl.org/dc/elements/1.1/"
>       xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
>    <pdf:Producer>Acrobat editing after Mac OS X 10.5.8 Quartz PDFContext</pdf:Producer>
>      <lod:JSON-Data> {"#Galway":{"rdf:type":["http://purl.org/ns/meteo#Place"],"http://www.w3.org/2002/07/owl#sameAs": ["http://dbpedia.org/resource/Galway"],"http://purl.org/ns/meteo#forecast":["#forecast20101113","#forecast20101114","#forecast20101115"]},"#temp":{"http://www.w3.org/2000/01/rdf-schema#seeAlso":["http://dbpedia.org/resource/Temperature"],"http://www.w3.org/2002/07/owl#sameAs":["http://dbpedia.org/resource/Celsius"]},"#forecast20101113":{"http://purl.org/ns/meteo#predicted":["2010-11-13T00:00:00Z"],"http://purl.org/ns/meteo#temperature":["#temp20101113"]},"#temp20101113":{"http://purl.org/ns/meteo#celsius":["2"]},"#forecast20101114":{"http://purl.org/ns/meteo#predicted":["2010-11-14T00:00:00Z"],"http://purl.org/ns/meteo#temperature":["#temp20101114"]},"#temp20101114":{"http://purl.org/ns/meteo#celsius":["4"]},"#forecast20101115":{"http://purl.org/ns/meteo#predicted":["2010-11-15T00:00:00Z"],"http://purl.org/ns/meteo#temperature":["#temp20101115"]},
> "#temp20101115":{"http://purl.org/ns/meteo#celsius":["7"]}}</lod:JSON-Data>
>    <xmp:CreateDate>2012-01-22T15:00:00-08:00</xmp:CreateDate>
>    <dc:title>Temperature forecast for Galway, Ireland</dc:title>
>    <dc:creator>http://sw-app.org/mic.xhtml#i</dc:creator>
>    <xmpMM:DocumentID>uuid:80f41db9-628f-48aa-9b7a-b7f5c2629304</xmpMM:DocumentID>
>   </rdf:Description>
>  </rdf:RDF>
> </x:xmpmeta>
>

Received on Tuesday, 20 January 2015 01:34:51 UTC