Skip to content
Snippets Groups Projects
Commit 14ad2abd authored by Aurélien Lamercerie's avatar Aurélien Lamercerie
Browse files

Update to class individuals as entity

parent e371d6ce
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ def __generate_owl_typing_relation(graph, new_individual_uri, net):
if predicat is not None:
triple_list.append((new_individual_uri, relation, predicat))
elif net.class_type:
if net.class_type:
predicat = __compute_class_type_uri(net)
triple_list.append((new_individual_uri, relation, predicat))
......
......@@ -22,6 +22,8 @@ from transduction.naming_computer import (
define_relation_naming
)
ENTITY_CLASS_TYPE = 'base-out:Entity'
#==============================================================================
# Pattern Search:
......@@ -149,6 +151,7 @@ def __construct_individual_net(graph, mother_class_net):
structure_ref = __get_structure(graph)
individual_net.individual_label = __define_individual_label(root_class_net, structure_ref)
individual_net.structure = structure_ref
individual_net.class_type = ENTITY_CLASS_TYPE
# -- Mother classes
mother_class_net_list = [mother_class_net.uri]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment