John Doe

From semantic-mediawiki.org
Jump to: navigation, search
 [[foaf:name::John Doe]] has the homepage [[foaf:homepage::http://johndoe.org]].
 His best friend is [[foaf:knows::Jane Doe]]. 
 [[Category:Person]]

John Doe has the homepage http://example.org/johndoe. His best friend is Jane Doe. FOAF file

Statements in the exported RDF

  <Foaf:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">John Doe</foaf:name>
  <Foaf:homepage rdf:resource="http://johndoe.org"/>
  <Foaf:knows rdf:resource="http://wiki.ontoworld.org/index.php/Jane_Doe"/>
  <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>

RDF Export

Linking external FOAF files

If you already have a FOAF file, you will want to connect it with your article within this wiki. This is indeed very simple: just write

 [[see also::http://the.location.of/your/FOAF/file]]

on your page to include an rdfs:seeAlso pointer. An even easier way to link a single FOAF file is to use the parameter "FOAF" of the template Template:Person which is very handy for building personal pages anyway.