Package eu.dnetlib.dhp.schema.oaf
Class Relation
java.lang.Object
eu.dnetlib.dhp.schema.oaf.Oaf
eu.dnetlib.dhp.schema.oaf.Relation
- All Implemented Interfaces:
Serializable
Relation models any edge between two nodes in the OpenAIRE graph. It has a source id and a target id pointing to
graph node identifiers and it is further characterised by the semantic of the link through the fields relType,
subRelType and relClass. Provenance information is modeled according to the dataInfo element and collectedFrom, while
individual relationship types can provide extra information via the properties field.
- See Also:
-
Field Summary
Fields inherited from class eu.dnetlib.dhp.schema.oaf.Oaf
collectedfrom -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetProperties(List<KeyValue> properties) voidsetRelClass(String relClass) voidsetRelType(String relType) voidvoidsetSubRelType(String subRelType) voidvoidsetValidated(Boolean validated) voidsetValidationDate(String validationDate) Methods inherited from class eu.dnetlib.dhp.schema.oaf.Oaf
getCollectedfrom, getDataInfo, getLastupdatetimestamp, setCollectedfrom, setDataInfo, setLastupdatetimestamp
-
Constructor Details
-
Relation
public Relation()
-
-
Method Details
-
getRelType
-
setRelType
-
getSubRelType
-
setSubRelType
-
getRelClass
-
setRelClass
-
getSource
-
setSource
-
getTarget
-
setTarget
-
getProperties
-
setProperties
-
getValidated
-
setValidated
-
getValidationDate
-
setValidationDate
-
hashCode
public int hashCode() -
equals
-