Skip to content

Commit

Permalink
Change batcher endpoint in RDF tripple importer
Browse files Browse the repository at this point in the history
  • Loading branch information
fefi42 committed Aug 28, 2020
1 parent 625c2ed commit 23d43da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weaviate/rdf/triple.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _add_rdf_object(self, value, class_name):
"value": str(value),
"valueKey": str(value)
}
self._batcher.add_thing(thing, class_name, object_id)
self._batcher.add_data_object(thing, class_name, object_id)
return object_id

def add_graph(self, graph):
Expand All @@ -58,7 +58,7 @@ def add_graph(self, graph):
o_id = self._add_rdf_object(o, "Object")

t_id = str(uuid.uuid4())
self._batcher.add_thing({}, "Triple", t_id)
self._batcher.add_data_object({}, "Triple", t_id)
self._batcher.add_reference(weaviate.SEMANTIC_TYPE_THINGS, "Triple",
t_id, "subject",
weaviate.SEMANTIC_TYPE_THINGS, s_id)
Expand Down

0 comments on commit 23d43da

Please sign in to comment.