public class TermMentionBuilder extends Object
| Constructor and Description |
|---|
TermMentionBuilder() |
TermMentionBuilder(Vertex existingTermMention,
Vertex outVertex)
Copy an existing term mention.
|
| Modifier and Type | Method and Description |
|---|---|
TermMentionBuilder |
conceptName(String conceptName)
The concept type of this term mention.
|
TermMentionBuilder |
end(long end)
The end offset within the property text that this term mention appears.
|
TermMentionBuilder |
outVertex(Vertex outVertex)
The vertex that contains this term mention (ie Document, Html page, etc).
|
TermMentionBuilder |
process(String process)
The process that created this term mention.
|
TermMentionBuilder |
propertyKey(String propertyKey)
The property key of the
BcSchema.TEXT that this term mention references. |
TermMentionBuilder |
propertyName(String propertyName)
The property name of the
BcSchema.TEXT that this term mention references. |
TermMentionBuilder |
resolvedFromTermMention(String resolvedFromFromTermMention)
The id of term mention that this resolved vertex is resolved
|
TermMentionBuilder |
resolvedTo(String resolvedToVertexId,
String resolvedEdgeId)
If this is a resolved term mention.
|
TermMentionBuilder |
resolvedTo(Vertex resolvedToVertex,
Edge resolvedEdge)
If this is a resolved term mention.
|
Vertex |
save(Graph graph,
VisibilityTranslator visibilityTranslator,
User user,
Authorizations authorizations)
Saves the term mention to the graph.
|
TermMentionBuilder |
score(Double score)
The score of term mention
|
TermMentionBuilder |
snippet(String snippet) |
TermMentionBuilder |
start(long start)
The start offset within the property text that this term mention appears.
|
TermMentionBuilder |
style(String style)
The CSS style for this term mention
|
TermMentionBuilder |
title(String title)
The title/text of this term mention.
|
TermMentionBuilder |
type(String type)
The type of term mention
|
TermMentionBuilder |
visibilityJson(String visibilityJsonString)
Visibility JSON string.
|
TermMentionBuilder |
visibilityJson(VisibilityJson visibilitySource)
Visibility JSON object.
|
public TermMentionBuilder type(String type)
public TermMentionBuilder style(String style)
public TermMentionBuilder score(Double score)
public TermMentionBuilder start(long start)
public TermMentionBuilder end(long end)
public TermMentionBuilder propertyKey(String propertyKey)
BcSchema.TEXT that this term mention references.public TermMentionBuilder resolvedFromTermMention(String resolvedFromFromTermMention)
public TermMentionBuilder propertyName(String propertyName)
BcSchema.TEXT that this term mention references.public TermMentionBuilder visibilityJson(String visibilityJsonString)
public TermMentionBuilder visibilityJson(VisibilityJson visibilitySource)
public TermMentionBuilder resolvedTo(Vertex resolvedToVertex, Edge resolvedEdge)
resolvedToVertex - The vertex this term mention resolves to.resolvedEdge - The edge that links the source vertex to the resolved vertex.public TermMentionBuilder resolvedTo(String resolvedToVertexId, String resolvedEdgeId)
resolvedToVertexId - The vertex id this term mention resolves to.resolvedEdgeId - The edge id that links the source vertex to the resolved vertex.public TermMentionBuilder process(String process)
public TermMentionBuilder outVertex(Vertex outVertex)
public TermMentionBuilder title(String title)
public TermMentionBuilder snippet(String snippet)
public TermMentionBuilder conceptName(String conceptName)
public Vertex save(Graph graph, VisibilityTranslator visibilityTranslator, User user, Authorizations authorizations)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.