Matches in LOV for { <http://purl.org/vocab/relationship/examples/2> ?p ?o. }
Showing items 1 to 3 of
3
with 100 items per page.
- 2 type SchemaExample.
- 2 comment "<p>\n\n The relationship vocabulary can be used to describe relationships with the people linked from a web page. This is particularly useful for blogrolls or contact lists but can be used with any type of link. The HTML <code>a</code> element provides two attributes, <a href=\"http://www.w3.org/TR/html401/struct/links.html#adef-rel\">rel and rev</a>, that can be used to specify the relationship. Both <code>rel</code> and <code>rev</code> take a space separated list of keywords as their value. To use a term from the relationship vocabulary just drop the <code>http://purl.org/vocab/relationship/</code> namespace to leave the property name, e.g. <code>http://purl.org/vocab/relationship/worksWith</code> would become <code>worksWith</code> which can be added as the value of <code>rel</code> or <code>rev</code>.\n </p>\n <dl>\n <dt>\n <code>rel</code>\n </dt>\n <dd>\n <p>\n The <code>rel</code> attribute specifies a relationship that the author of the <em>linked</em> page has with the author of the <em>linking</em> page.\n For example:\n </p>\n <pre><code><span class=\"elem\"><a</span><span class=\"attr\">href</span>=\"<span class=\"attrVal\">http://example.com/boats</span>\" <span class=\"attr highlight\">rel</span>=\"<span class=\"attrVal\">childOf</span>\"<span class=\"elem\">></span><span class=\"text\">The boat we restored</span><span class=\"elem\">\"</a></span></code></pre>\n <p>This link states that the author of <code>http://example.com/boats</code> is a child of the author of the html above. </p>\n </dd>\n <dt>\n <code>rev</code>\n </dt>\n <dd>\n <p>\n The <code>rev</code> attribute specifies a relationship that the author of the <em>linking</em> page has with the author of the <em>linked</em> page. The example here is:\n </p>\n <pre><code><span class=\"elem\"><a</span><span class=\"attr\">href</span>=\"<span class=\"attrVal\">http://example.com/boats</span>\" <span class=\"attr highlight\">rev</span>=\"<span class=\"attrVal\">childOf</span>\"<span class=\"elem\">></span><span class=\"text\">The boat we restored</span><span class=\"elem\">\"</a></span></code></pre>\n <p>In this case the meaning of the link is reversed: the author of the html above is a child of the author of <code>http://example.com/boats</code>.</p>\n </dd>\n </dl>\n <p>The HTML and XHTML recommendations require an HTML document to declare a custom profile if it uses any non-standard <code>rel</code> or <code>rev</code> types. This is done by adding a <code>profile</code> attribute with a value of <code>http://purl.org/vocab/relationship/</code> to the document's <code>head</code> element. </p>\n <pre><code> <head profile=\"http://purl.org/vocab/relationship/\">\n <title>People I Know</title>\n </head></code></pre>\n <h3>Complete Example</h3>\n <pre><code> <html profile=\"http://purl.org/vocab/relationship/\">\n <head>\n <title>People I Know</title>\n </head>\n <body>\n <p>Here are the people I know:</p>\n <ul>\n <li><a href=\"http://example.com/~freddy\" rel=\"closeFriendOf\">Freddy (he's cool!)</a></li>\n <li><a href=\"http://frooble.com/\" rel=\"mentorOf\">Jimbo</a></li>\n <li><a href=\"http://mmmm.com/klm\" rel=\"friendOf\">Katie</a></li>\n <li><a href=\"http://example.com/~omah\" rel=\"worksWith\">Omah (does the coding)</a></li>\n <li><a href=\"http://example.com/~jason\" rev=\"closeFriendOf employedBy\">Jason, my henchman</a></li>\n </ul>\n </body>\n </html>\n</code></pre>\n <h3>RDF Interpretation</h3>\n <p>Custom parsers that extract RDF from (X)HTML can use the relationships expressed in the links to infer the\n equivilent RDF triples. It should be remembered that the relationship is between the authors of the pages not between\n the pages themselves. Given the following link on a document at <code>http://example.com/mypage.html</code>:\n </p>\n <pre><code><span class=\"elem\"><a</span><span class=\"attr\">href</span>=\"<span class=\"attrVal\">http://example.com/boats</span>\" <span class=\"attr highlight\">rel</span>=\"<span class=\"attrVal\">childOf</span>\"<span class=\"elem\">></span><span class=\"text\">The boat we restored</span><span class=\"elem\">\"</a></span></code></pre>\n <p>a suggested RDF extraction is:</p>\n <pre><code> <foaf:Person>\n <foaf:maker rdf:resource=\"http://example.com/boats\"/>\n <rel:childOf>\n <foaf:Person>\n <foaf:maker rdf:resource=\"http://example.com/mypage.html\"/>\n </foaf:Person>\n </rel:childOf>\n </foaf:Person></code></pre>\n".
- 2 label "Using With HTML and XHTML".