Dear John,
I know that linking would be the clean solution, but sometimes this is
difficult.
The HTML gets send around by web services orchestrated by a CMS. It
would be difficult to create temporary links to include in the HTML,
e.g. you would have to set a time to life and do extra access
authorization. So just adding it to HTML is much simpler process-wise.
So yes, I want embed a dump of some RDF.
Another requirement is that the thing is not some hack, but a clean and
simple engineering solution, that might be adopted by a wide range of CMS.
All the best,
Sebastian
On 06/12/2012 04:32 PM, John Erickson wrote:
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
<hellm...@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
--
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