Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify OpenIE output into the TTL format supported by AutoIndex #65

Open
Suganya31 opened this issue Jul 2, 2018 · 3 comments
Open
Assignees

Comments

@Suganya31
Copy link
Contributor

Suganya31 commented Jul 2, 2018

Currently the open IE extractor returns a Jena model like this for the input "Obama was born in the USA."

@Prefix : http://example.org/ .
@Prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .

:Obama :be :bear ;
http://example.org/be%20bear%20in
:USA .

@Suganya31
Copy link
Contributor Author

@RicardoUsbeck Hi Ricardo, I was able to modify the Open-IE output to the following
FINALIE.txt

When I stored them in the DB they are displayed as shown in the following file.
openieindb

When I checked FOX, they also use RDFDataMgr.write(StringWriter, graph, TTL);
I assume this way of writing models using RDFDataMgr.write does not add label to the predicate. Please tell me your view.

.

@RicardoUsbeck
Copy link
Contributor

RicardoUsbeck commented Jul 11, 2018

It is definitely better but not as usable as FOX output. We need to combine that with a Named Entity Disambiguation Approach such as AGDISTIS for entities (https://github.com/dice-group/AGDISTIS) and NLIWOD for properties (https://github.com/dice-group/NLIWOD/tree/master/qa.annotation/src/main/java/org/aksw/qa/annotation/index) on top of OpenIE. In the end, the output should look like the following given (Obama, born, USA):

@prefix dbo:   <http://dbpedia.org/ontology/> .
@prefix dbr:   <http://dbpedia.org/resource/> .
@prefix ex: <http://example.org/> .

dbr:USA <http://www.w3.org/2000/01/rdf-schema#label>  "USA" .
dbo:born <http://www.w3.org/2000/01/rdf-schema#label>  "born" .
dbr:Obama <http://www.w3.org/2000/01/rdf-schema#label>  "Obama" .
dbr:Obama dbo:born dbr:USA.

However, this is a task for @hjshah142 for next semester.

@Suganya31
Copy link
Contributor Author

@RicardoUsbeck Thanks for explaining.
@hjshah142 Good Luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants