Examples

by AaronSwartz, The Semantic Web In Breadth

  1. XML (eXtensible Markup Language)

  1. a document in plain text:
    I just got a new cat.

  2. using an (own) XML-based markup language:

    <sentence> <person href="http://aaronsw.com/">I</person> just got a new <animal>cat</animal>. </sentence>

  3. identifying markup elements by xml-namespaces:

    <sentence     xmlns="http://example.org/xml/documents/"     xmlns:c="http://animals.example.net/xmlns/" ><c:person c:href="http://aaronsw.com/">I</c:person> just got a new <c:animal>cat</c:animal>.
    </sentence>

  • RDF (Resource Description Framework)
    1. a document in plain text:
      I really like Tim Berners-Lee's book "Weaving the Web."

    2. written as the simplest RDF statement (N-Triples):
      <http://aaronsw.com/> <http://love.example.org/terms/reallyLikes> <http://www.w3.org/People/Berners-Lee/Weaving/>.

    3. XML representation of RDF (RDF/XML):
      <?xml version="1.0"?>
      <rdf:RDF
         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:love="http://love.example.org/terms/"
      >
      <rdf:Description rdf:about="http://aaronsw.com/">
      <love:reallyLikes rdf:resource="http://www.w3.org/
                 People/Berners-Lee/Weaving/" />
      </rdf:Description>
      </rdf:RDF>
    
    
    start         (C) W.Sander-Beuermann, University of Hannover, RRZN, SearchEngineLab