isi-vista / gaia-interchange

Support for GAIA's proposed interchange format for the DARPA AIDA program
http://www.isi.edu
MIT License
6 stars 2 forks source link

Add missing types to aida_rdf_ontologies.py #45

Open rogerbock opened 6 years ago

rogerbock commented 6 years ago

I think there are some missing types. For example, I don't see anything for Vehicle.

gabbard commented 6 years ago

@rogerbock : What is currently there is just placeholder awaiting #17 and #18 , but it is easier, so if it would be useful it can be split into its own issue so it can get done sooner. Which ontology are you targetting - ColdStart?

rogerbock commented 6 years ago

At the moment I'm hoping to be able to convert the types that will be involved in the TAC SM-KBP eval. I'm not sure if there is an official list of those types, but based on Hoa's email it includes PER, ORG, GPE, LOC, FAC, COM, URL, WEA, VEH, TME.

gabbard commented 6 years ago

@rogerbock : Is that using the same ontology as the AIDA Seedling: https://github.com/isi-vista/gaia-interchange/blob/master/src/main/resources/edu/isi/gaia/seedling-ontology.ttl ?

If so, it should be relatively simple to do the conversion. Maybe @ecurley-nextcentury can comment on when NCC's target date for supporting that on the Python side is?

rogerbock commented 6 years ago

@rgabbard : That is my understanding. Per Hoa, "the ontology to be used in the Month-9 pilot evaluation is the ontology in the seedling corpus." And Clark confirmed that seedling-ontology.ttl is this ontology.

Definitely, let me know if this doesn't match your understanding. :smile:

eaciv commented 6 years ago

Sorry for the late response, gentlemen. After speaking with Clark, it sounds like we should have some AIF support for python by the end of next week. That's the goal at any rate.

It would be ideal if there was an automated way to expose the types from seedling-ontology.ttl in python. If either of you have suggestions on that front, we'd appreciate hearing them.

gabbard commented 6 years ago

@rogerbock : As a work-around for now, note that all the stuff in aida_rdf_ontologies.py is just syntactic sugar. You can always do e.g. URIRef("http://darpa.mil/ontologies/SeedlingOntology/Vehicle") directly

gabbard commented 6 years ago

@ecurley-nextcentury : in aida_rdf_ontologies.py you could load up seedling-ontology.ttl and construct a ClosedNamespace for it directly . You could iterate over all the members of the namespace to create the terms list.