John Dyer

Technology and web development in curly bracket languages {Javascript, C#, ActionScript}

Data Portability Pack for BlogEngine.NET

by John Dyer 14. February 2008 22:45

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

imageEach 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

  1. Download Data Portability Pack for BlogEngine.NET
  2. Copy the *.cs files into your /App_Code/Extensions folder (you can also create a sub-directory within that folder)
  3. 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"/>	
    	
  4. 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.
    image
  5. Optionally, you can add links to each of these files (as I have on the upper right)

Future Work

  • 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.

kick it on DotNetKicks.com

Comments

2/15/2008 3:53:13 PM # Tuukka Hastrup Tuukka Hastrup | Reply
Just some small suggestions:

You could use SIOC browser in the hyperlinks, as in sparql.captsolo.net/browser/browser.py?url=http%3A%2F%2Fjohndyer.name%2Ffoaf.axd

The APML document shouldn't be served with "Content-Type: application/rdf+xml".
2/20/2008 1:41:29 AM # Roman Clarkson Roman Clarkson United States | Reply
This is so cool.  I appreciate it and am now using it.  However, with the download you provide the DP_foaf.cs file has a double entry which causes a BE.N 1.3 site to fail.  I had to comment out one of the lines and all works well from what I can tell.  The error said there were two "foaf" controls, yada yada.

BlogEngine.Core.Post.Serving += new EventHandler<ServingEventArgs>(Post_Serving);
//BlogEngine.Core.Page.Serving += new EventHandler<ServingEventArgs>(Post_Serving);
Roman Clarkson's last post: www.romanclarkson.us/.../...d-AspNet-Gridview.aspx" rel="nofollow">jQuery and Asp.Net Gridview
4/5/2008 10:10:03 PM # pingback johnbreslin.com | Reply
Pingback from johnbreslin.com

Tales from the SIOC-o-sphere #7 at Cloudlands
6/13/2008 2:24:17 PM # Luis Luis Spain | Reply
Thanks for the information! It's really interesting!
8/10/2008 8:42:00 AM # Alexander Higgins Alexander Higgins United States | Reply
You can delete this comment.

1) You comment box is blowing out the page in Ie7, it extends beyond the right edge of your main table.

2) Images are broken when browsing via the SIOC browser,
sparql.captsolo.net/browser/browser.py?url=http%253A%2F%2Fjohndyer.name%2Fsioc.axd%253Fsioc_type%253Dpost%2526sioc_id%253D69be6175-0700-4143-9082-278d11ce77b8

You may want to consider hardcoding the absolute uri instead of the relative path.

Great Job btw!!
Alexander Higgins's last post: blog.alexanderhiggins.com/.../" rel="nofollow">BP Gulf Oil Spill Fishing Waters Opened East Of Mississippi River Despite Oil Just A Few Miles Away
9/14/2008 9:46:24 PM # Chris Saad Chris Saad | Reply
I just fond your site John -not sure how it didn't come up in other Google searches.

Love your work on DP and APML Smile
11/11/2008 9:18:55 AM # Alojaweb Alojaweb Peru | Reply
thanks for sharing your knowledge.
12/20/2008 5:36:59 AM # David David Spain | Reply
OK
Love your work on DP and APML
espondilitis.eu
1/7/2009 9:35:45 PM # Andy Andy | Reply
Nice work--thanks for helping out the less skillful--Andy
3/16/2009 9:54:23 AM # Cricut Cricut United States | Reply
Hey John,
Okay not to sound stupid or anything but, don't you think SIOC sucks compared to RSS why would anyone even use SIOC when RSS is totally Mainstream even to those computer illiterate users.
5/5/2010 12:54:52 AM # pingback johndyer.name | Reply
Pingback from johndyer.name

John Dyer | SIOC implementation for BlogEngine.NET
johndyer.name's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
5/5/2010 1:11:10 AM # pingback endyear2012.com | Reply
Pingback from endyear2012.com

auto glass repair «  End Year 2012
5/29/2010 1:30:44 PM # Dieran Blog Dieran Blog Indonesia | Reply
I found your website perfect for my needs. It contains wonderful and helpful posts. I have read most of them and got a lot from them. To me, you are doing the great work. Carry on this. work at home In the end, I would like to thank you for making such a nice website.
6/21/2010 1:37:33 PM # Kimara Williams Kimara Williams United States | Reply
I have read a lot of the comments and I just wonder why people say the things they do, I mean they can find the bad in anything.  I guess that is where we are in this world. Just hurt hurt hurt, no matter what the subject is. Lawrence Williams  www.trybw.com  Fort Myers, Naples, Bonita,Cape Coral  Computer Repair Service
7/2/2010 3:52:31 PM # villasin spain villasin spain United Kingdom | Reply
Normally I wouldn’t comment on posts but I felt that I had to as your writing style is actually good. You have broken down a tough area so that it easy to understand.
7/6/2010 8:43:58 PM # Mazda Mazda United States | Reply
This is so cool.  I appreciate it and am now using it.  However, with the download you provide the DP_foaf.cs file has a double entry which causes a BE.N 1.3 site to fail.  I had to comment out one of the lines and all works well from what I can tell.  The error said there were two "foaf" controls, yada yada.
Mazda's last post: http://expcars.com/the-myth-of-premium-gasoline" rel="nofollow">The Myth of Premium Gasoline
7/16/2010 2:30:19 PM # fiona fiona United Kingdom | Reply
Technical stuff. Phew!
fiona 's last post: www.theindiaphile.com/.../#comment-265" rel="nofollow">Comment on Which Indian guidebook ??? by Love Travel Guides tops the list – Best guidebooks for India. Thank you indiaphile.
7/30/2010 8:19:38 AM # electronic cigarette electronic cigarette United States | Reply
This is so cool.  I appreciate it and am now using it.  However, with the download you provide the DP_foaf.cs file has a double entry which causes a BE.N 1.3 site to fail.  I had to comment out one of the lines and all works well from what I can tell.  The error said there were two "foaf" controls, yada yada.
electronic cigarette's last post: www.electroniccigarettehub.com/.../...althier.html" rel="nofollow">Electronic Cigarettes - A Healthier Alternative To Smoking

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Web Statistics