- From: John Erickson <olyerickson@gmail.com>
- Date: Tue, 12 Jun 2012 11:19:16 -0400
- To: public-lod <public-lod@w3.org>, semantic-web <semantic-web@w3.org>
If I understand correctly, the problem is to embed an RDF "island" in an HTML document, to be managed by a (presumably RDF clueless) CMS. How about following the approach described in the W3C "Microdata to RDF: Transformation from HTML+Microdata to RDF" working draft <http://www.w3.org/TR/2012/WD-microdata-rdf-20120112/> There are a number of examples in that draft which seem compatible with the problem statement, including embedded JSON (that can be easily extracted and consumed as RDF) On Tue, Jun 12, 2012 at 11:12 AM, Gannon Dick <gannon_dick@yahoo.com> wrote: > Hello Sebastian, > > You are making me nostalgic for a dispute I lost by shout-down with with the > developers of RDFa :o) > > Oops. Mr Erickson just beat me to the punch ... the critical point is that > HTML has two bowls of tag soup (HEAD, BODY) related by proximity not by > authority. It's easy to assume that the HEAD is "global" to the BODY or > vice-versa. What you really want to do is cite a bibliographic reference to > a set of RDF triples. > > You can link to that file, or if you want to get fancy, embed an XML > Bibliographic Reference format like MODS from the LoC[1]. Embedding in the > BODY is more polite, and reassuring if questions arise about download size. > > --Gannon > > [1] Sorry, I have not looked at this in years so there will be some syntax > issues. The idea is simple, MathML for people who do math, MODS for people > who keep track of written stuff. > http://www.rustprivacy.org/FunForLibrarians.pdf > > > ________________________________ > From: John Erickson <olyerickson@gmail.com> > To: Sebastian Hellmann <hellmann@informatik.uni-leipzig.de> > Cc: public-lod <public-lod@w3.org>; semantic-web <semantic-web@w3.org> > Sent: Tuesday, June 12, 2012 9:32 AM > Subject: Re: best practice RDF in HTML > > Sebastian, is the requirement that the RDF not be *integrated* with > the content of the page --- in other words, you just want to embed a > "dump" of some RDF? > > Why not link to a RDF or TTL file? > > On Tue, Jun 12, 2012 at 10:02 AM, Sebastian Hellmann > <hellmann@informatik.uni-leipzig.de> wrote: >> Dear list, >> What are the best practice to include a set of RDF triples in HTML. >> *Please note*: I am not looking for the RDFa way to include triples. I >> just >> want to add a set of triples somewhere in an HTML document. They are not >> supposed to show up like "Wikinomics", "Don Tapscott" in the following >> example: >> >> <div xmlns:dc="http://purl.org/dc/elements/1.1/" >> about="http://www.example.com/books/wikinomics"> >> <span property="dc:title">Wikinomics</span> >> <span property="dc:creator">Don Tapscott</span> >> <span property="dc:date">2006-10-01</span> >> </div> >> >> I don't want to use the strings in the HTML document as objects in the >> triples. My use case is that I just have a large set of triples, e.g. 1000 >> that I want to include as a bulk somewhere and ship along with the html. >> Which way is the best? Do the examples below work? >> All the best, >> Sebastian >> >> ******************************************* >> Include in head >> ****************************************** >> <html> >> <head> >> <script type="application/rdf+xml"> >> <rdf:RDF >> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" >> xmlns:cd="http://www.recshop.fake/cd#"> >> >> <rdf:Description >> rdf:about="http://www.recshop.fake/cd/Empire Burlesque"> >> <cd:artist>Bob Dylan</cd:artist> >> <cd:dbpedia rdf:resource="http://dbpedia.org/resource/Empire_Burlesque" > >> </rdf:Description> >> </rdf:RDF> >> </script> >> </head> >> <body> >> </body> >> </html> >> ****************************** >> attach after html >> ***************************** >> <html> >> <head> >> </head> >> <body> >> </body> >> </html> >> <rdf:RDF >> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" >> xmlns:cd="http://www.recshop.fake/cd#"> >> >> <rdf:Description >> rdf:about="http://www.recshop.fake/cd/Empire Burlesque"> >> <cd:artist>Bob Dylan</cd:artist> >> <cd:dbpedia rdf:resource="http://dbpedia.org/resource/Empire_Burlesque" > >> </rdf:Description> >> </rdf:RDF> >> >> >> -- >> Dipl. Inf. Sebastian Hellmann >> Department of Computer Science, University of Leipzig >> Projects: http://nlp2rdf.org , http://dbpedia.org >> Homepage: http://bis.informatik.uni-leipzig.de/SebastianHellmann >> Research Group: http://aksw.org >> >> > > > > -- > John S. Erickson, Ph.D. > Director, Web Science Operations > Tetherless World Constellation (RPI) > <http://tw.rpi.edu> <olyerickson@gmail.com> > Twitter & Skype: olyerickson > > > -- John S. Erickson, Ph.D. Director, Web Science Operations Tetherless World Constellation (RPI) <http://tw.rpi.edu> <olyerickson@gmail.com> Twitter & Skype: olyerickson
Received on Tuesday, 12 June 2012 15:19:54 UTC