X hits on this document

453 views

0 shares

1 downloads

0 comments

80 / 142

RDF

<rdf:Description rdf:about="http://dewey.library.nd.edu/eresources/literature.htm <dc:title>All Literature resources</dc:title> <dc:description>This is a list of all the literature resources in the system.</dc:description> <dc:subject> <rdf:Bag> <rdf:li>Literature</rdf:li> <rdf:li>Philosophy</rdf:li> </rdf:Bag> </dc:subject> </rdf:Description>

</rdf:RDF>

RDF encodings are intended to be embedded in other XML files or exist as stand alone documents. For example, RDF encodings could be embedded in the notesStmt element of TEI files and provide a stand- ardized way to describe the files' content. Sets of TEI files could be read by computers and a catalog could be created accordingly. Unfortunately this doesn't always work because things like the TEI DTD don't support the addition of RDF data. Even though the TEI file might be syntactically valid, the se- mantic described by the DTD does not take into account RDF. To include RDF data in HTML/XHTML documents, it is suggested by the standard to include a link element in the HTML file's header pointing to the RDF description, something like this: <link rel="meta" type="application/rdf+xml" href="myfile.rdf" />. A computer program could then follow the href attribute in order to read the RDF file.

Exercise

  • 1.

    In this exercise you will expose the characteristics of Internet documents using RDF.

    • A.

      Open the file named rdf.xml in NotePad.

    • B.

      Select the entire contents of the file and copy it to the clipboard.

    • C.

      Point your Web browser to the RDF Validator [http://www.w3.org/RDF/Validator/] .

    • D.

      Paste the copied text into the textarea and submit the form.

    • E.

      Examine the resulting graph, and it should look something like this:

72

Document info
Document views453
Page views459
Page last viewedFri Dec 09 06:44:37 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments