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

Some doubts about the Ontology_creation.py #49

Open
githublkp123 opened this issue Dec 27, 2024 · 0 comments
Open

Some doubts about the Ontology_creation.py #49

githublkp123 opened this issue Dec 27, 2024 · 0 comments

Comments

@githublkp123
Copy link

First of all, thank you for sharing about this project.
Here, I have some doubts about Ontology Creation-py
prompt_template = PromptTemplate(input_variables=["concepts", "relations","data_properties","InverseProperties","base_onto_class","base_onto_property"], template=template)
content = read_txt(config.get('Paths', 'Concepts_and_relationships_save_path'))
concepts_s_ind = content.find('Concepts:') + len('Concepts:')
concepts_e_ind = content.find('Relationships:')
concepts = content[concepts_s_ind:concepts_e_ind].strip()

relationships_s_ind = content.find('Relationships:') + len('Relationships:')
relationships_e_ind = content.find('DataProperties:')
relationships = content[relationships_s_ind:relationships_e_ind].strip()

data_properties_s_ind = content.find('DataProperties:') + len('DataProperties:')
data_properties_e_ind = content.find('InverseProperties:')
data_properties = content[data_properties_s_ind:data_properties_e_ind].strip()

inverse_properties_s_ind = content.find('InverseProperties:') + len('InverseProperties:')
inverse_properties = content[inverse_properties_s_ind:].strip()
base_onto_class, base_onto_property = get_base_onto_class(config.get('Paths', 'SOTAOntology_path'))

prompt = prompt_template.format(concepts=concepts,relations=relationships,base_onto_class=base_onto_class,base_onto_property=base_onto_property)

Why didn't you use the parameters data_deproperties and inverte_properties

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

1 participant