Data Portability Pack for BlogEngine.NET
What it Does
This is an initial release of 3 extensions which will add the follow protocols to your BlogEngine.NET blog:
- SIOC – Somewhat like RSS, but utilizes RDF to describe connections to other sites and between users and posts (example).
- APML – Creates an "attention profile" of your interests based on tags and categories. Each is given a value based on its frequency (example).
- FOAF – A list of your friends, their websites, and a hashed version of their email for a unique key (example).
You can see examples of each of these by clicking on the links on the upper right of this blog. To learn more about data portability, see this post. The following links show this data in a browsable format:
How it Works
Each of these has a Handler, a Generator, and an Extension file. The extension files automatically add <meta> discovery files to your <head> tag.
Note: Currently, the FOAF information is stored in two different Extension files due to a limitation in BE.NET 1.3 (it cannot store both scalar and table data). One extension is for your personal information and the other is for your friends' data. BE 1.4 will allow these to be merged into one file.
Warning: BE.NET currently deletes extension data when you change *.cs files, so please backup your extension file when adding or changing extensions.
Installation and Usage
- Download Data Portability Pack for BlogEngine.NET
- Copy the *.cs files into your /App_Code/Extensions folder (you can also create a sub-directory within that folder)
- Add the following to your web.config file
<add verb="*" path="sioc.axd" type="BlogEngine.DataPortability.SiocHandler, App_Code" validate="false"/> <add verb="*" path="foaf.axd" type="BlogEngine.DataPortability.FoafHandler, App_Code" validate="false"/> <add verb="*" path="apml.axd" type="BlogEngine.DataPortability.ApmlHandler, App_Code" validate="false"/>
- Go to your Admin->Extensions page and you should see 4 extensions prefixed with "DP_". The FoafFriends and MyProfile extensions need data entered, the other ones you can just leave as their defaults.
- Optionally, you can add links to each of these files (as I have on the upper right)
- Merge FOAF extensions for BE 1.4
- Possibly store FOAF data in a separate file rather than as Extension data
- Add additional settings to APML such as parsing blog roll
- If you also add OpenID support to your blog, then you will have everything that is currently on the data portability standards list.