An alternative to LinqToRDF, a library for transferring Linq data to RDF?

LinqToRDF ( http://code.google.com/p/linqtordf/ ) is a well-known library for transferring Linq data to RDF. But he has not been active for almost two years.

So I'm looking for an alternative. My basic requirement is to provide a basic Linq function with shared RDF data sources. A commercial library is also welcome.

Any suggestions are welcome.

Ying

+4
source share
1 answer

You can try my dotNetRDF library, which is designed so that many things can be accessed in Linq style, i.e. There is significant and widespread use of IEnumerable<T> as the return type throughout the library.

But it does not have the full Linq API, such as LinqToRdf, which I mean, it does not have the methods that LinqToRdf had, so you could write something like the following and translate the library into SPARQL or some other appropriate language queries under the hood:

 MusicDataContext ctx = new MusicDataContext(@"http://localhost/linqtordf/SparqlQuery.aspx"); var q = (from t in ctx.Tracks where t.Year == "2006" && t.GenreName == "History 5 | Fall 2006 | UC Berkeley" orderby t.FileLocation select new {t.Title, t.FileLocation}).Skip(10).Take(5); 

My library is much lower level, either you will need to write the equivalent SPARQL query yourself, or write a block of code that extracts the various triples used to determine something and makes the appropriate comparisons that you want.

In the end, I intend to connect LinqToRdf to using dotNetRDF as the base library for accessing RDF, but at the moment it's pretty low on the priority list, since I'm working on a major release of the main library, which adds a lot of new features related to SPARQL 1.1

In terms of commercial options, take a look at the Intellidimension Semantics Framework , which is a commercial library, although there is a free express version - I did not use the library, so I have no idea how convenient it is for Linq. The main disadvantage of the free version is its very strict redistribution policy.

+3
source

Source: https://habr.com/ru/post/1314152/


All Articles