如何使用Alignment API生成Alignment Format文件? [英] How to use Alignment API to generate a Alignment Format file?

查看:220
本文介绍了如何使用Alignment API生成Alignment Format文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要参加OAEI的实例匹配,现在我需要将结果转换为对齐格式".为了实现它,我已经学习了官方教程.(link: http://alignapi.gforge.inria.fr/tutorial/tutorial1/index.html ). 但是,所教的方法和我想要的方法之间有很多差异.换句话说,我无法理解API.


这是我的情况: 我有2个rdf文件(分别为person11.rdf和person12.rdf.数据链接为 http: //oaei.ontologymatching.org/2010/im/index.html ,PR数据集),每个文件都有许多人的信息.我想找到coreferent实体,结果必须以对齐格式"打印.我使用SPARQL找到了结果,但是我不知道如何以对齐格式"打印它.


所以,我有三个问题:


首先,如果要生成路线格式"文件,方法是唯一的方法吗?


第二,您能给我您的方法(更好的代码)来生成对齐格式"文件吗?也许我从一开始就错了,您能给我一些建议吗?


第三,如果您参加了OAEI或对实例匹配有所了解,可以给我一些建议吗?我想找到coreferent实体.


谢谢!

解决方案

第一个问题:我想提到的方法"是tutorial1中的方法.这是不合适的,因为您必须编写程序以输出对齐格式,并且这是命令行界面教程.在这种情况下,最好查看 http://alignapi.gforge. inria.fr/tutorial/tutorial2/index.html

然后,基本上有两种方法可以做到:

建议您(出于多种原因并参加OAEI)遵循这些教程,在其中创建空的对齐方式,从SPARQL查询的结果中创建对应关系并进行呈现.教程涵盖了所有内容,但涉及您的SPARQL查询的部分.假设您正在使用Java进行编程.

不建议使用的解决方案(主要是不建议使用,因为您将不得不调试自己的渲染器)是要用任何您希望程序输出格式(与您引用的格式相对应)的程序语言编写. /p>

考虑一下:您如何期望Alignment API知道SPARQL查询的结果?如果您提出了一个不错的解决方案,请与API开发人员联系,他们可能会对其进行集成,而其他人则可能会受益.

第二个问题:我不能做得比上面更好.

第三个问题:太笼统了.阅读OAEI结果( http://oaei.ontologymatching.org )并查看其他代码. /p>

祝你好运!

I am going to attend the Instance Matching of OAEI, now I need to make my results to Alignment Format. In order to achieve it, I have learned official tutorials.(link:http://alignapi.gforge.inria.fr/tutorial/tutorial1/index.html). But there are many differences between the method taught and the method I want. In other words, I can't understand the API.


This is my situation: I have 2 rdf file(person11.rdf and person12.rdf respectively.data link is http://oaei.ontologymatching.org/2010/im/index.html, the PR dataset), each file has information of many person. I want to find the coreferent entities, the results must be printed in Alignment Format. I find the results by using SPARQL, but I don't know how to print it in Alignment Format.


So, I have three questions:


First, if I want to generate a Alignment Format file, is the method taught the only way?


Second, can you give me your method(code better) to generate the Alignment Format file? Maybe I am wrong from the beginning, can you give me some suggestions?


Third, if you attended OAEI or know something about Instance Matching, can you give me some advice? I want to find the coreferent entities.


Thank you!

解决方案

First question: I guess that the "mentioned method" is the one in tutorial1. It is not the appropriate one since you have to write a program to output the alignment format and this is a command line interface tutorial. In this case, you'd better look at http://alignapi.gforge.inria.fr/tutorial/tutorial2/index.html

Then, there are basically two ways to do:

The advised one (for several reasons and for participating to OAEI) is to follow these tutorials, to create an empty alignment in it, to create the correspondences from the results of your SPARQL query and to render it. Everything is covered by the tutorials but the part concerning your SPARQL queries. This assumes that you are programming in Java.

The non-advised solution (primarily non advised because you will have to debug your own renderer), is to write, in any programming language that you want a program that output the format (which corresponds to what you cite).

Think about it: how would you expect that the Alignment API knows the results of your SPARQL query? If you come up with a nice solution, contact the API developers, they may integrate it and others could benefit.

Second question: I cannot do better than what is above.

Third question: too general. Read the OAEI results (http://oaei.ontologymatching.org) and look at the code of others.

Good luck!

这篇关于如何使用Alignment API生成Alignment Format文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆