Search code examples
c#rdfdotnetrdflinkedmdb

Save graph from URI


My question is how to save all the triples in my graph variable from URI. When I execute my code:

IGraph g = new Graph();
g.LoadFromUri(new Uri("http://data.linkedmdb.org/page/film/14931"));

I get only 2 triples in that graph, my question is how can I get others like actors, director, editor,...?

Those 2 triples are:

{http://data.linkedmdb.org/page/film/14931 , http://www.w3.org/1999/xhtml/vocab#stylesheet , http://data.linkedmdb.org/snorql/style.css}
{http://data.linkedmdb.org/page/film/14931 , http://www.w3.org/1999/xhtml/vocab#alternate , http://data.linkedmdb.org/data/film/14931}

Solution

  • The LinkedMDB homepage includes:

    Start Exploring

    It sounds like you should request http://data.linkedmdb.org/resource/film/14931 instead. (Note that retrieving that in a web browser, you'll get redirected to the first. Be sure to try it in your code, not just in a web browser.)