.NET dll for Natural language to SQL/SPARQL
Asked Answered
A

2

7

I'm trying to build an interface for my tool to query from Semantic/Relational DB using C#.NET

I now need to have a layer above the query layer to convert NL input to SQL/SPARQL, I read through papers of NLIs, The process of making such a layer is such a load for my project besides, it's not the main target, it's an add-on.

I don't care if the dll supports Guided input only or freely input text and handles unmatchings, I just need a dll to start from and add some code on it.

The fact of whether it should support both SQL and SPARQL doesn't really matter, because I can manage to convert one to another in my project's domain (something local)

any idea on available dlls ?

Auliffe answered 3/2, 2012 at 23:38 Comment(0)
R
1

You could try my Natural Language Engine for .NET. Sample project on Bitbucket and Nuget packages available.

Using TokenPhrase in your rules can match any unmatched strings in the input, or quoted strings.

In the next revision that I'll be releasing soon it also supports 'production rules' and operator precedence which make it even easier to define your grammar.

Uniquely it delivers strongly-typed .NET objects and executes your rules in a manner similar to ASP.NET MVC with controllers, dependency injection and action methods. All rules are defined in code simply by writing a method that accepts the tokens you want to match. It includes tokens for common things like numbers, distances, times, weights and temporal expressions including finite and infinite temporal expressions.

I use it in various applications to build SQL queries so it shouldn't be too hard to use it to create SPARQL queries.

Rescind answered 30/5, 2012 at 6:5 Comment(0)
F
0

Check out Kueri.me

It's not a DLL but rather a server exposing an API, so Currently it doesn't have a wrapper specifically for C#. There's an API exposed via XmlRpc that you can integrate with any language.

It converts English to SQL and gives google-style suggestions If you want to implement a search-box(supports several DB providers - like MySQL, MSSQL etc).

Fletafletch answered 17/7, 2016 at 14:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.