Class Relation

java.lang.Object
eu.dnetlib.dhp.schema.oaf.Oaf
eu.dnetlib.dhp.schema.oaf.Relation
All Implemented Interfaces:
Serializable

public class Relation extends Oaf
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:
  • Constructor Details

    • Relation

      public Relation()
  • Method Details

    • getRelType

      public String getRelType()
    • setRelType

      public void setRelType(String relType)
    • getSubRelType

      public String getSubRelType()
    • setSubRelType

      public void setSubRelType(String subRelType)
    • getRelClass

      public String getRelClass()
    • setRelClass

      public void setRelClass(String relClass)
    • getSource

      public String getSource()
    • setSource

      public void setSource(String source)
    • getTarget

      public String getTarget()
    • setTarget

      public void setTarget(String target)
    • getProperties

      public List<KeyValue> getProperties()
    • setProperties

      public void setProperties(List<KeyValue> properties)
    • getValidated

      public Boolean getValidated()
    • setValidated

      public void setValidated(Boolean validated)
    • getValidationDate

      public String getValidationDate()
    • setValidationDate

      public void setValidationDate(String validationDate)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object