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

ChatGPT inconsistently identifies the desired class in a natural language question, often selecting the supper class or subclass. #33

Open
candlecao opened this issue Jan 6, 2025 · 1 comment
Assignees

Comments

@candlecao
Copy link
Contributor

candlecao commented Jan 6, 2025

This follows the #29.
This issue is a detailed offshoot of that issue.
This issue is against the backdrop of "Subgraph Extraction from Ontology".

For example, the NLQ is 广西壮族自治区(作为地域类)的音乐类型(乐种)会使用哪些乐器,那些乐器又分别对应哪些民族?
(translated as: Which musical instruments are used in the music types of Guangxi Zhuang Autonomous Region (GZAR) (as a Place), and which ethnic groups do those instruments correspond to?)

LLMs extracted places:Province instead of its supper class bf:Place which is expected for subgraph extraction.
Refer to:
image

@candlecao candlecao added the priority: high high priority label Jan 6, 2025
@candlecao candlecao self-assigned this Jan 6, 2025
@candlecao
Copy link
Contributor Author

candlecao commented Jan 9, 2025

Solution 1: Manually adjust the ontology by adding child-class to the rdfs:range of the associated object property. For the upper case, the associated property is bf:place:

Screenshot 2025-01-09 at 11 05 23

comment: (1)It's more of a temporary expedient (2) This adjustment doesn't cause collide with the original semantic meaning, however, (3) it's advisable to matain two versions of ontology: one is like this, tailored for subgraph extraction from OWL; the other one is the intact ontology for schema description and knowledge reasoning

@candlecao candlecao added medium hold on and removed priority: high high priority labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant