What is now several weeks ago, Christoph Görn hacked a bit on my FOAF Output plugin, and asked for seeAlso links to be included. Short of the mythical WordPress triple store (factory?) I couldn’t see a better way to do it than building on the concept from the Semantic Visits add-on: Using the link manager.
I challenged Danny Ayers to write the plugin/add-on, but he’s been busy lately, with the RSS book and all, so here it is, the seeAlso’s Plugin (view source). While I was at it, I also fixed a few buglets in the FOAF Output Plugin and added trust ratings for friends and bio:olb
.
The current version is 1.0 (this blog entry will serve as a changelog).
- Features:
-
- Extends the FOAF profile document with
rdfs:seeAlso
links to other documents (example, near the bottom).
- Extends the FOAF profile document with
- Requirements:
-
- WordPress 1.2 (later versions not tested but might work).
- A working installation of the FOAF Output Plugin version 1.7 or later.
- Installation:
-
- Download the seeAlso’s Plugin, rename to
seealsos.php
and place it in the plugins directory. - Activate it in the administration interface under Plugins.
- Create a link category named “seeAlso” in the administration interface under Links > Link Categories. Remember to enter “0” in the Limit field for the link category unless you also want the list of links to show up alongside the other links in the side bar.
- Download the seeAlso’s Plugin, rename to
- Managing seeAlso’s:
- A seeAlso is just a link, but there’s a tiny configurable bit: The type or description of the linked document can be entered into the Short description field. If the field contains a QName, e.g.
foaf:Document
orrss:channel
, the linked document will be typed as such (remember to check that the namespace prefix is defined in the FOAF output). Otherwise, it will be assumed that the document is aPersonalProfileDocument
, and if the description field is non-empty, the text will be used asdc:description
for the document.
3 thoughts on “WordPress Plugin: seeAlso’s”
Comments are closed.