Andrew Matthews

Announcing LinqToRdf v0.7

Advertisements

I’m proud to say that I’ve finally uploaded version 0.7 of LinqToRdf. This is by far the best release of LinqToRdf (so far), and it now contains full support for relationship navigation out of the box. Relationship support has always been possible (provided you were intimately familiar with various undocumented parts of LINQ:), but with the automated support for instance URIs that came in version 0.6, it’s now automatic.

The high points of the release are:

I’ve been meaning to do all of this for quite a while now, but it took some prompting by Carl Blakeley of OpenLink (back at the beginning of May) to force me to get my act together. My apologies to Carl for taking so long to come up with the goods – I’m sure you used EntitySets in the end, but now you have Instance URIs that you can plug into them to make the code cleaner. Enjoy.

The following is now actively supported by designer-generated code.

public void Foo()
{
    var ctx = new MusicDataContext(@"Some SPARQL Endpoint");
    var track = (from t in ctx.Tracks
                 where t.HasInstanceUri("Some Instance URI")
                 select t).First();

    Debug.WriteLine("Track was " + track.Title);
    Debug.WriteLine("Album was " + track.Album.Name);

    foreach (var t in track.Album.Tracks)
    {
        Debug.WriteLine("Album Track was " + track.Title);
    }
}

Please download it. Give it a try. Any and all feedback is much appreciated.

Advertisements

Advertisements