Exemplo n.º 1
0
 protected void saveTermExtractionResult(
     Vertex artifactGraphVertex, TermExtractionResult termExtractionResult) {
   List<TermMentionWithGraphVertex> termMentionsResults =
       saveTermMentions(artifactGraphVertex, termExtractionResult.getTermMentions());
   saveRelationships(termExtractionResult.getRelationships(), termMentionsResults);
   saveVertexRelationships(termExtractionResult.getVertexRelationships(), termMentionsResults);
 }
Exemplo n.º 2
0
 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);
 }