openaire-graph-docs/versioned_docs/version-5.1.3/data-model/relationships/relationship-object.md

2.4 KiB

title
The Relationship object

The Relationship object

A relationship in the Graph is represented with the data type presented in this page, which aims to model a directed edge between two nodes, providing information about its semantics, provenance and validation.

source

Type: Node • Cardinality: ONE

Represents the source node in the relation.

"source": {
    "id": "20|openorgs____::1cb75a3ad756e4c83e455e3e7347643b",
    "type": "organization"
}

target

Type: Node • Cardinality: ONE

Represents the target node in the relation.

"target": {
    "id": "10|doajarticles::022409068174087a003647ff46070f7f",
    "type": "datasource"
}

reltype

Type: RelType • Cardinality: ONE

Represent the semantics of the relation between two nodes of the graph.

"reltype": {
    "name": "provides",
    "type": "provision"
}

provenance

Type: Provenance • Cardinality: ONE

Indicates the process that produced (or provided) the information.

"provenance": {
    "provenance": "Harvested",
    "trust":"0.900"
}

validated

Type: Boolean • Cardinality: ONE

Indicates weather or not the relation was validated.

"validated": true

validationDate

Type: String • Cardinality: ONE

Indicates the validation date of the relation - applies only when the validated flag is set to true.

"validationDate": "2022-09-02"

The Node object

The Node data type contains the minimum information needed to identify a graph node, its identifier and entity type.

id

Type: String • Cardinality: ONE

OpenAIRE identifier of the node in the graph.

"id": "10|doajarticles::022409068174087a003647ff46070f7f"

type

Type: String • Cardinality: ONE

Graph node type.

"type": "datasource"

The RelType object

The RelType data type models the semantic of the relationship among two nodes.

type

Type: String • Cardinality: ONE

Relation category, e.g. affiliation, citation, see table Relation typologies.

"name": "provides"

name

Type: String • Cardinality: ONE

Further specifies the relation semantic, indicating the relation direction, e.g. Cites, isCitedBy.

"type": "provision"