FOAF

From Wiki@OntoWorld

Jump to: navigation, search

FOAF is a RDF based Schema to describe Persons and their social network in a semantic way. FOAF could get used within many wikis for annotating user pages, but also describing people that have their own articles. In Semantic MediaWiki, FOAF annotations can be used as imported vocabulary. A list of currenly available FOAF elements is given below.

Using FOAF in Semantic MediaWiki

Using Semantic MediaWiki's feature of importing vocabularies from external ontologies, a number of FOAF properties have been imported into this wiki. Since wiki.intoworld.org is a wiki for the Semantic Web research community, we partially use the common foaf abbreviations for the imported elements. This is also useful since some elements of FOAF have a specific meaning. For example, foaf:knows can only be used between two persons. So if one would represent it by an attribute "knows", it might be used wrongly in contexts such as "Denny knows Karlsruhe" where the object is not a person.

In other contexts, one might also use less technical labels within the wiki (especially, if the wiki is not in English).

The following is a list of currently available elements:

For example, one could write

[[name:=John Doe]] has the homepage [[foaf:homepage:=http://johndoe.org]].
His best friend is [[foaf:knows::Jane Doe]]. 
[[Category:Person]]

to get the following 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"/>

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 paramter "FOAF" of the template Template:Person which is very handy for building personal pages anyway.

See also

  • FOAF 0.1 Vocabulary Specification
  • FOAF Project Homepage
  • RDF
  • SKOS
Personal tools