@@ -694,7 +694,6 @@ def import_object(
694694 "tool" : self .opencti .tool .import_from_stix2 ,
695695 "channel" : self .opencti .channel .import_from_stix2 ,
696696 "narrative" : self .opencti .narrative .import_from_stix2 ,
697- "Vocabulary" : self .opencti .vocabulary .import_from_stix2 ,
698697 "vulnerability" : self .opencti .vulnerability .import_from_stix2 ,
699698 "incident" : self .opencti .incident .import_from_stix2 ,
700699 }
@@ -1764,7 +1763,6 @@ def export_entity(
17641763 "Tool" : self .opencti .tool .read ,
17651764 "Channel" : self .opencti .channel .read ,
17661765 "Narrative" : self .opencti .narrative .read ,
1767- "Vocabulary" : self .opencti .vocabulary .read ,
17681766 "Vulnerability" : self .opencti .vulnerability .read ,
17691767 "Incident" : self .opencti .incident .read ,
17701768 "Stix-Cyber-Observable" : self .opencti .stix_cyber_observable .read ,
@@ -1863,7 +1861,6 @@ def export_list(
18631861 "Tool" : self .opencti .tool .list ,
18641862 "Channel" : self .opencti .channel .list ,
18651863 "Narrative" : self .opencti .narrative .list ,
1866- "Vocabulary" : self .opencti .vocabulary .list ,
18671864 "Vulnerability" : self .opencti .vulnerability .list ,
18681865 "Incident" : self .opencti .incident .list ,
18691866 "Stix-Cyber-Observable" : self .opencti .stix_cyber_observable .list ,
@@ -1965,6 +1962,17 @@ def import_bundle(
19651962 x_opencti_stix_ids = stix_ids ,
19661963 update = update ,
19671964 )
1965+ elif item ["type" ] == "vocabulary" :
1966+ stix_ids = self .opencti .get_attribute_in_extension ("stix_ids" , item )
1967+ self .opencti .vocabulary .create (
1968+ stix_id = item ["id" ],
1969+ name = item ["name" ],
1970+ category = item ["category" ],
1971+ description = item ["description" ],
1972+ aliases = item ["aliases" ],
1973+ x_opencti_stix_ids = stix_ids ,
1974+ update = update ,
1975+ )
19681976 elif item ["type" ] == "external-reference" :
19691977 stix_ids = self .opencti .get_attribute_in_extension ("stix_ids" , item )
19701978 self .opencti .external_reference .create (
0 commit comments