GEGlobalResearch / DARPA-ASKE-TA1

ANSWER Project to demonstrate knowledge-driven extraction of scientific models from code and texts
Other
8 stars 5 forks source link

content assist after "Add" in Dialog #107

Closed crapo closed 4 years ago

crapo commented 4 years ago

@kittaakos , if you have time, could you investigate why there is no content assist available in a Dialog window after the keyword "Add" (or "add")? Should be able to reproduce with any small ontology. The content should be classes and properties.

kittaakos commented 4 years ago

why there is no content assist available

It's not implemented yet.

crapo commented 4 years ago

Is this a lot of effort to implement? I guess I don't understand how much CA is inherited from sadl and how much is unique implementation in Dialog.

kittaakos commented 4 years ago

Is this a lot of effort to implement?

No, but I am still working on the rename/refactoring. (#104)

crapo commented 4 years ago

Great!! :-) I am very excited about that major improvement!

kittaakos commented 4 years ago

The content should be classes and properties.

Did you mean SADL resources with either OntConceptType.CLASS or OntConceptType.CLASS_PROPERTY type? Can you please refine the requirements a bit? Thank you!

crapo commented 4 years ago

So the definition of the statement starting with "Add" is: NewExpressionStatement: ('Add'|'add') (newExpr=Expression ) ; It isn't really that broad as it should probably be "real expressions", which in the SADL grammar start with ExpressionParameterized. In the shortterm, it would be very helpful if one could get a list of any SadlResource of type OntConceptType.CLASS, OntConceptType.CLASS_PROPERTY, or OntConceptType.RDF_PROPERTY. The latter two could have a range which is a class. But just the frist two would work for this week's objective.

kittaakos commented 4 years ago

I have implemented it. It's part of https://github.com/GEGlobalResearch/DARPA-ASKE-TA1/pull/105.

screencast 2020-04-22 10-43-30