Working
with the Angle Brackets
This section provides a few
techniques that the RDF community has found useful in RDF’s brief history.
Here is a way to add RDF to
HTML: Put it inside the HEAD element in the HTML page. Be sure to add the RDF namespace
declarations so that an RDF processor can make use of the RDF markup, as shown
in Listing 23.3.
LISTING 23.3 Embedding
RDF into HTML
<HTML>
<HEAD>
<rdf:RDF
xmlns:rdf=”http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:my=”[mySchema]”>
<rdf:Description rdf:about=”[URI of the enclosing HTML document]”>
<my:RDF1=”data”> <my:RDF2=”data”> </rdf:Description>
</rdf:RDF>
</HEAD>
...
</HTML>
Of course, you can substitute
a more well-known URI for
Dublin Core at
http://purl.org/dc/elements/1.0/Creator). [mySchema] (for example,
If all fails, make the RDF a
separate document and use an HTML LINK element with the URI of the document as
the value for the href attribute and meta as the value of the rel attribute, as
shown in Listing 23.4.
LISTING 23.4 Embedding
RDF into HTML
<LINK rel=”meta”
href=”[myRDFdocument]”>
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.