protected void saveTermExtractionResult( Vertex artifactGraphVertex, TermExtractionResult termExtractionResult) { List<TermMentionWithGraphVertex> termMentionsResults = saveTermMentions(artifactGraphVertex, termExtractionResult.getTermMentions()); saveRelationships(termExtractionResult.getRelationships(), termMentionsResults); saveVertexRelationships(termExtractionResult.getVertexRelationships(), termMentionsResults); }
protected void saveTermExtractionResult( Vertex artifactGraphVertex, TermExtractionResult termExtractionResult, String workspaceId, String visibilitySource) { List<TermMentionWithGraphVertex> termMentionsResults = saveTermMentions( artifactGraphVertex, termExtractionResult.getTermMentions(), workspaceId, visibilitySource); saveRelationships(termExtractionResult.getRelationships(), termMentionsResults); saveVertexRelationships(termExtractionResult.getVertexRelationships(), termMentionsResults); }