我发现这个NuGet软件包很有趣:基于C#的嵌入式rdf数据库,基于OpenLink Virtuoso,并具有MIT许可...
但是,当我尝试找到有关用法或API参考的任何说明时,我找不到它...
我从NuGet安装了TinyVirtuoso.win v 7.2.1 ...
“ First Steps”中的示例代码为什么不起作用?
它无法识别VirtuosoConnection()
或IStore
using Semiodesk.TinyVirtuoso;
using Semiodesk.VirtuosoInstrumentation;
// Create a new Virtuoso store in a directory named 'Data', located in your app folder.
var virtuoso = new TinyVirtuoso("Data");
// You can have multiple separate database instances which contain different data.
// This will create a directory "Data/ExampleProject" in your app directory.
var instance = virtuoso.GetOrCreateInstance("ExampleProject");
// Start the embedded database server instance.
instance.Start();
// a) You can access the store using the Semiodesk Trinity graph database API.
// Please refer to our Trinity documentation and examples for more information.
IStore store = StoreFactory.CreateStore(instance.GetTrinityConnectionString());
// b) Alternatively, you can use it with plain ADO.Net to use the relational
// database features and SQL (make sure to install OpenLink.Data.Virtuoso).
var connection = new VirtuosoConnection();
connection.ConnectionString = instance.GetAdoNetConnectionString();
connection.Connect();
// When you are done, stop the embedded database server instance.
instance.Stop();
答案 0 :(得分:2)
快速查看一下,我认为TinyVirtuoso并不是“ C#中的嵌入式RDF数据库”(这并不奇怪,因为这将需要移植整个基于C的VOS(Virtuoso开源)项目)。请注意,their wiki says —
TinyVirtuoso不会以任何方式链接到OpenLink Virtuoso。它只是提供了一种启动,停止和配置软件的方法。
Elsewhere in that wiki,他们说他们依赖Open Source Virtuoso project,但是尚不清楚他们是否完全安装了Virtuoso,只是安装了ADO.NET客户端库,还是介于两者之间。
我确实注意到了this advice-
该软件受Semiodesk支持。如果您有任何疑问,建议或想告诉我们您在使用哪个项目的库,请不要犹豫到hello@semiodesk.com。
-导致我在somewhat more informative (and I think more recently updated) page上遇到了Semiodesk's website,这表明他们确实打算捆绑主要的Virtuoso二进制文件,除其他外,我认为您尚未安装
Documentation of Virtuoso本身和its ADO.NET Provider(Installation/Configuration和Programming/API)都可以在OpenLink网站上找到。
我希望这会有所帮助...