问题标签 [virtuoso]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
240 浏览

java - 将两个或多个结果集合并为格式化的 JSON 格式

我正在运行一个查询,该查询输出从 RDF 图中检索到的一些 JSON 结果。结果打印为:

我想做的是将两个结果合并为一个具有不同 URI 和标签的结果。这是我用来获取结果的代码:

我使用注释部分来仅显示 URI,但这并不是真正需要的!我需要整个结果集,但合并了。如下所示:

0 投票
1 回答
557 浏览

rdf - Sparql 查询不工作

我在端点上尝试以下 SPARQL 查询,但它告诉我

Virtuoso 37000 错误 SP030:SPARQL 编译器,第 4 行:“选择”之前的“联合”处的语法错误

0 投票
1 回答
451 浏览

rdf - OpenLink Virtuoso 查询本地/远程 .rdf 文件

在 Virtuoso 开源版本中是否可以从本地端点查询本地或远程 .rdf / .n3 / .turtle 文件?还是三元组必须在数据库中?我在某处读到可以直接查询文件,但找不到如何做到这一点......

如果不是,我如何在本地 virtuoso 端点上查询 dbpedia 等远程端点?

我尝试使用 FROM, FROM NAMED 但无法让它在 SPARQL 查询中工作。从文件和远程端点返回 0 个结果...

谢谢!

0 投票
0 回答
119 浏览

java - 在 Virtuoso Sponger 中包含 Java 插件

我有一个问题。我用 Java 编写了一个程序,它从一个网站中提取数据并以 RDF(乌龟类型)格式返回给我,例如(用 输出System.out.println()):

语法是正确的,因为我在 Protege 程序中检查过。我通过以下方式阅读了本教程: http://docs.openlinksw.com/virtuoso/virtuososponger.html,但是在这里我还没有看到如何在 Virtuoso Sponger 中使用此墨盒,在哪里上传 .java 文件,我只是注册了墨盒,但是哪里没有上传 .java 文件或任何使用它的选项。

如果有人已经为 Virtuoso spener 开发了自定义 Java 盒,请给我链接你是如何将它包含在 VS 中的,或者写信告诉我你是如何将它包含在 VS 中的。非常感谢!

0 投票
1 回答
592 浏览

virtuoso - 在 CentOS 上安装 Virtuoso Conductor 时出错

我在CentOs上使用 yum安装了最新版本的Virtuoso。我第一次能够成功地做到这一点。但是,当我在上传数据集/CSV 文件后重新启动 virtuoso 服务器时,我在 webUI 中看不到“指挥选项卡”

我认为出了点问题 - 并尝试进行全新安装。但是这次我不知何故设法完全松开了导体。以下是 .log 的日志片段virtuoso-t

0 投票
1 回答
545 浏览

sparql - RDF 文件未在 virtuoso 中上传

我正在尝试使用ld_dir命令将 .rdf 文件单独上传到 virtuoso,如下所示:

操作似乎完成了,虽然需要 1 毫秒;这不合逻辑..但是当我尝试使用以下命令查看 grapgh 的内容时:

它只是不显示任何结果。在另一个图表上执行相同的查询会产生结果。

0 投票
1 回答
671 浏览

bash - Shell 使用 SPARQL 选择数据并上传到 virtuoso

我正在尝试运行以下脚本将 RDF 数据加载到 Virtuoso 存储中。该脚本运行良好,但似乎没有任何内容上传到 Virtuoso,因为 SPARQL 查询不显示任何结果。任何想法为什么?

0 投票
1 回答
882 浏览

python - 在本地将 Dbpedia 数据和本体加载到 virtuoso 中

我正在尝试借助 virtuoso 三重存储在本地设置 dbpedia sparql 端点。我关注了两个链接。

  1. 借助文件夹加载数据
  2. 借助符号链接加载数据

从这些链接。我按照第二个链接进行了配置,并尝试仅将“en”文件夹和 dbpedia-owl.owl 文件中的数据加载到“en”文件夹本身。我尝试使用以下命令将这个 en 文件夹加载到 isql

我为提交这些数据做了进一步的处理。然后将数据检查到本地端点“localhost:8890/sparql”。但是前缀“dbpedia-owl”似乎不见了。我还检查了“命名空间前缀”列表。但是“dbpedia-owl”似乎不见了。加载数据时我做错了什么?我也尝试添加 dbpedia-owl.gz 文件。但是“dbpedia-owl”似乎仍然不能在端点上工作。

当我试图查询这个

我得到的结果为

所以这个结果显示了来自本体文件的数据。但是“dbpedia-owl”没有链接到这个本体文件。帮助表示赞赏。

0 投票
2 回答
512 浏览

rdf - Using semantic ontologies to convert a Relational Database to RDF

I have been lately trying to describe a given RDB(Relational Database) with specific semantic ontologies, using Virtuoso. The ontologies that i want to use are: dc,foaf,dct,bibo,cito(I am new to this so I didnt quite understand if dc and dct are the same thing).
I have been following this tutorial on how to do this: http://virtuoso.openlinksw.com/whitepapers/relational%20rdf%20views%20mapping.html
My problem is that in this tutorial classes are created from zero while I need to use existing ones. Unfortunately I am not allowed to post the links of the ontologies too.
In particular I want to describe:

An "author" table(a published paper author) that has the following columns:

AuthorID, AuthorName, AuthorMiddleName, AuthorSurname, AuthorURL, AuthorEmail, Department

A "Keywords" table(publication's keywords) with the columns:

PublicationID, Keyword(type of string), KeywordOrder(type of Integer),

A "Publications" table with the columns:

PublicationID, PublicationTitle, MediaType(type of string), PublicationType(Integer), MediaTitle, MediaPublisher, MediaEditors, MediaVolInfo, PublicationYear, PublicationNoOfPages, PublicationPagesInMedium, PublicationFileName, PublicationComments, PublicationRelatedURL, PublicationRelatedURLText, PublicationLocation, PublicationPubURL, DisplayOnMLKD(type of Integer), DisplayOnISKP(type of Integer), DisplayOnWeb(type of Integer)

A "References" table (publication's references) with the columns:

RefID, RefPaperID, RefDetails, RefYear

A "Rights" table (publication's rights) with the columns:

PublicationID, AuthorID, AuthorOrder

I tried doing some of this work but I think I might have some problems.
For example, I am currently trying to express the "Publications" table and in my file I have the following:

Question 1:

So this is just a fragment but my question here is how do I express that the "Publication" is a class of an existing ontology? As you can see above I am defining from zero the class "Publication".

Question 2(more important):

As you can see in the tutorial, somehow the tables that were imported in the virtuoso tool were mapped to a specific URL. However, I wasn't able to find the URL to each table that I imported to virtuoso and I just put some placeholder URLs (These are the localhost URLs). How can i find out the URL to each of the tables that I imported to virtuoso?

PS. Any information at all would be extremely useful, thank you.

PPS. This is my first post so please excuse my formatting if it's wrong.

0 投票
0 回答
261 浏览

rdf - 将插入的数据限制为在 Virtuoso 的 RDF Schema 中声明的属性的三元组?

我正在使用 Open Link Virtuoso,但我遇到了一些问题。我已经通过Linked data > Quad Store Upload加载了我的 RDF 文件,现在我想加载一些 RDF Schema 以防止错误插入。(我想确保任何插入的数据只使用我声明的属性。)我该怎么做?我在图中插入了一个三元组:

我希望这样可以确保如果用户插入三元组,那么三元组必须具有myns:my_property作为属性。我知道插入了三元组,因为如果我运行这个查询,我会得到以下结果:

然而,当我尝试禁止插入时,如下所示,它是允许的。没有错误,数据被插入。