Home

Graph Edge Kind

This enumeration is used by GraphEdge for describing the relation between nodes in a Graph. Edge direction is always from GraphEdge.source to GraphEdge.target. For resource-flow relationships this is usually from upstream dependency, source, or component to downstream dependant, result, or containing node. For discourse relationships this is the authored relation direction.

Resource-flow variant names should be read in graph direction as "upstream downstream". Some names use passive phrasing (UsedBy, ReadBy) and others use established relation phrases (PartOf, Generated, Declares), but their direction is always defined by GraphEdge.source to GraphEdge.target. Discourse variant names should be read as "source target".

Variant descriptions document related W3C PROV-O predicates where applicable. These mappings are guidance only: Stencila graph edges keep a consistent dependency direction, while several PROV-O predicates use the opposite RDF subject/object direction or apply only approximately. The PROV-O namespace is http://www.w3.org/ns/prov#.

The discourse variants (Supports through RequestTarget) mirror ResearchObjectRelationKind, which is the source of truth for their semantics and MIRA-based @ids; the two enumerations must be kept in sync.

Members

The GraphEdgeKind type has these members:

MemberDescription
UsedByThe upstream node is used by the downstream node. Related to prov:used with inverse direction.
ReadByThe upstream node is read by the downstream node. Related to prov:used with inverse direction.
GeneratedThe upstream node generated the downstream node. Related to prov:generated and to prov:wasGeneratedBy with inverse direction.
WrittenToThe upstream data or value is written to the downstream resource. Related to prov:generated for the downstream resource and to prov:used for the upstream value.
DerivedIntoThe upstream node is derived into the downstream node. Related to prov:wasDerivedFrom with inverse direction.
ConvertedIntoThe upstream node is converted into the downstream node, usually changing representation or media format. Related to prov:wasDerivedFrom with inverse direction.
CalledByThe upstream node is called by the downstream node. Approximately related to prov:used with inverse direction, or prov:wasInformedBy for activity dependencies.
ImportedByThe upstream node is imported by the downstream node. Approximately related to prov:hadPrimarySource or prov:wasDerivedFrom with inverse direction.
PartOfThe upstream node is part of the downstream node. Related to schema:isPartOf and inverse schema:hasPart.
IncludedByThe upstream source is included by the downstream document node or document region.
LinkedByThe upstream resource is linked to by the downstream link, media object, document, or document region.
CitedByThe upstream node is cited by the downstream node. Stencila document relation with no exact core PROV-O equivalent; quotation-specific cases may relate to prov:wasQuotedFrom with inverse direction.
DeclaresThe upstream manifest, configuration, or source file declares the downstream environment, dependency, workflow, or other computational resource.
ConfiguresThe upstream configuration file or setting configures the downstream workflow, environment, code unit, or tool.
RequiredByThe upstream package or software component is required by the downstream environment or source code.
PinsThe upstream lockfile, digest, or exact version pin constrains the downstream environment or dependency.
SupportsThe source research object, typically evidence or a claim, supports the target claim.
SupportedByThe source claim is supported by the target research object, typically evidence or another claim. Inverse of Supports.
OpposesThe source research object, typically evidence or a claim, opposes the target claim.
OpposedByThe source claim is opposed by the target research object, typically evidence or another claim. Inverse of Opposes.
AddressesThe source claim addresses the target research question.
AddressedByThe source research question is addressed by the target claim. Inverse of Addresses.
FollowsThe source research object, typically a study or other research activity, was conducted following the target protocol.
GroundsThe source research object, typically a study or other research activity, produced and grounds the target evidence.
IsGroundedInThe source evidence is grounded in the target study or other research activity that produced it. Inverse of Grounds.
RequestForThe source request asks for the target work, such as a study or protocol execution, to be carried out. Not the inverse of RequestTarget.
RequestTargetThe source request concerns the target claim that the requested work may elucidate. Not the inverse of RequestFor.

Bindings

The GraphEdgeKind type is represented in:


This documentation was generated from GraphEdgeKind.yaml by docs_types.rs.

© 2026 Stencila