Package org.aksw.gerbil.transfer.nif
Class MarkingBuilder
java.lang.Object
org.aksw.gerbil.transfer.nif.MarkingBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected intprotected booleanprotected intprivate static final org.slf4j.Loggerprotected ProvenanceInfoprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMeaning(String meaning) voidvoidaddPredicate(String predicate) voidaddSubject(String subject) voidbuild()protected Relationvoidclear()doubleintgetEnd()intintgetStart()getTypes()booleanvoidsetConfidence(double confidence) voidsetEnd(int end) voidsetLength(int length) voidsetMeanings(Set<String> meanings) voidvoidsetPredicate(Set<String> predicate) voidsetProvenance(ProvenanceInfo provenance) voidsetStart(int start) voidsetSubject(Set<String> subject) void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
meanings
-
types
-
start
protected int start -
length
protected int length -
end
protected int end -
confidence
protected double confidence -
hasConfidence
protected boolean hasConfidence -
provenance
-
subject
-
predicate
-
object
-
-
Constructor Details
-
MarkingBuilder
public MarkingBuilder()
-
-
Method Details
-
clear
public void clear() -
getMeanings
- Returns:
- the meanings
-
setMeanings
- Parameters:
meanings- the meanings to set
-
addMeaning
- Parameters:
meaning- the meaning to be added
-
getTypes
- Returns:
- the types
-
setTypes
- Parameters:
types- the types to set
-
addType
- Parameters:
type- the type to be added
-
getStart
public int getStart()- Returns:
- the start
-
setStart
public void setStart(int start) - Parameters:
start- the start to set
-
getLength
public int getLength()- Returns:
- the length
-
setLength
public void setLength(int length) - Parameters:
length- the length to set
-
getEnd
public int getEnd()- Returns:
- the end
-
setEnd
public void setEnd(int end) - Parameters:
end- the end to set
-
getConfidence
public double getConfidence()- Returns:
- the confidence
-
hasConfidence
public boolean hasConfidence()- Returns:
- the hasConfidence flag
-
setConfidence
public void setConfidence(double confidence) - Parameters:
confidence- the confidence to set
-
getProvenance
- Returns:
- the provenance
-
setProvenance
- Parameters:
provenance- the provenance to set
-
getSubject
- Returns:
- the subject
-
setSubject
- Parameters:
subject- the subject to set
-
addSubject
- Parameters:
subject- the subject to be added
-
getPredicate
- Returns:
- the predicate
-
setPredicate
- Parameters:
predicate- the predicate to set
-
addPredicate
- Parameters:
predicate- the predicate to be added
-
getObject
- Returns:
- the object
-
setObject
- Parameters:
object- the object to set
-
addObject
- Parameters:
object- the object to be added
-
build
-
buildRelation
-