Class: SubgraphEdgeByAncestor

An edge within a subgraph anchored around a set of ancestor terms

URI: semsql_rg:SubgraphEdgeByAncestor

classDiagram SubgraphQuery <|-- SubgraphEdgeByAncestor SubgraphEdgeByAncestor : anchor_object SubgraphEdgeByAncestor : anchor_predicate SubgraphEdgeByAncestor : object SubgraphEdgeByAncestor : predicate SubgraphEdgeByAncestor : subject

Usage

SELECT * FROM subgraph_edge_by_ancestor;

Inheritance

Slots

Name Cardinality and Range Description
subject 0..1
Node
The subject of the statement
predicate 0..1
PropertyNode
The predicate of the statement
object 0..1
Node
Note the range of this slot is always a node
anchor_object 0..1
Node
The ancestor term
anchor_predicate 0..1
xsd:string
The entailed predicate that holds between each edge subject and the ancestor

Usages

Comments

  • {'Example': 'subgraph under uberon limb "SELECT * FROM sg_edge WHERE anchor_object=\'UBERON:0002101\';"'}
  • {'Example': 'subgraph from part-descendants of uberon limb "SELECT * FROM sg_edge WHERE anchor_object=\'UBERON:0002101\' AND ancestor_predicate=\'BFO:0000050\';"'}
  • sqlview>> SELECT edge.*, ee.predicate AS anchor_predicate, ee.object AS anchor_object FROM edge JOIN entailed_edge AS ee ON (edge.subject = ee.subject)

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/semsql/relation_graph

SQL View

This class has a SQL view definition:

sqlview>>
  SELECT
    edge.*,
    ee.predicate AS anchor_predicate,
    ee.object AS anchor_object
  FROM edge JOIN entailed_edge AS ee ON (edge.subject = ee.subject)

Mappings

Mapping Type Mapped Value
self ['semsql_rg:SubgraphEdgeByAncestor']
native ['semsql_rg:SubgraphEdgeByAncestor']

LinkML Specification

Direct

name: subgraph_edge_by_ancestor
description: An edge within a subgraph anchored around a set of ancestor terms
comments:
- '{''Example'': ''subgraph under uberon limb "SELECT * FROM sg_edge WHERE anchor_object=\''UBERON:0002101\'';"''}'
- '{''Example'': ''subgraph from part-descendants of uberon limb "SELECT * FROM sg_edge
  WHERE anchor_object=\''UBERON:0002101\'' AND ancestor_predicate=\''BFO:0000050\'';"''}'
- "sqlview>>\n  SELECT\n    edge.*,\n    ee.predicate AS anchor_predicate,\n    ee.object\
  \ AS anchor_object\n  FROM edge JOIN entailed_edge AS ee ON (edge.subject = ee.subject)"
from_schema: https://w3id.org/semsql/relation_graph
rank: 1000
is_a: subgraph_query
slots:
- subject
- predicate
- object
- anchor_object
- anchor_predicate
slot_usage:
  anchor_object:
    name: anchor_object
    description: The ancestor term
    domain_of:
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
  anchor_predicate:
    name: anchor_predicate
    description: The entailed predicate that holds between each edge subject and the
      ancestor
    domain_of:
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self

Induced

name: subgraph_edge_by_ancestor
description: An edge within a subgraph anchored around a set of ancestor terms
comments:
- '{''Example'': ''subgraph under uberon limb "SELECT * FROM sg_edge WHERE anchor_object=\''UBERON:0002101\'';"''}'
- '{''Example'': ''subgraph from part-descendants of uberon limb "SELECT * FROM sg_edge
  WHERE anchor_object=\''UBERON:0002101\'' AND ancestor_predicate=\''BFO:0000050\'';"''}'
- "sqlview>>\n  SELECT\n    edge.*,\n    ee.predicate AS anchor_predicate,\n    ee.object\
  \ AS anchor_object\n  FROM edge JOIN entailed_edge AS ee ON (edge.subject = ee.subject)"
from_schema: https://w3id.org/semsql/relation_graph
rank: 1000
is_a: subgraph_query
slot_usage:
  anchor_object:
    name: anchor_object
    description: The ancestor term
    domain_of:
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
  anchor_predicate:
    name: anchor_predicate
    description: The entailed predicate that holds between each edge subject and the
      ancestor
    domain_of:
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
attributes:
  subject:
    name: subject
    description: The subject of the statement
    from_schema: https://w3id.org/semsql/rdf
    aliases:
    - about
    - source
    - head
    rank: 1000
    slot_uri: rdf:subject
    alias: subject
    owner: subgraph_edge_by_ancestor
    domain_of:
    - term_association
    - owl_complex_axiom
    - owl_subclass_of_some_values_from
    - owl_equivalent_to_intersection_member
    - statements
    - relation_graph_construct
    - edge
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
    - entailed_edge
    - entailed_edge_cycle
    - transitive_edge
    - repair_action
    - problem
    range: node
  predicate:
    name: predicate
    description: The predicate of the statement
    from_schema: https://w3id.org/semsql/rdf
    aliases:
    - relationship type
    - property
    rank: 1000
    slot_uri: rdf:predicate
    alias: predicate
    owner: subgraph_edge_by_ancestor
    domain_of:
    - term_association
    - owl_complex_axiom
    - owl_subclass_of_some_values_from
    - statements
    - relation_graph_construct
    - edge
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
    - entailed_edge
    - entailed_edge_cycle
    - transitive_edge
    - problem
    range: property_node
  object:
    name: object
    description: Note the range of this slot is always a node. If the triple represents
      a literal, instead value will be populated
    from_schema: https://w3id.org/semsql/rdf
    aliases:
    - target
    - sink
    - tail
    rank: 1000
    slot_uri: rdf:object
    alias: object
    owner: subgraph_edge_by_ancestor
    domain_of:
    - term_association
    - owl_complex_axiom
    - owl_subclass_of_some_values_from
    - owl_equivalent_to_intersection_member
    - statements
    - relation_graph_construct
    - edge
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
    - entailed_edge
    - entailed_edge_cycle
    - transitive_edge
    range: node
  anchor_object:
    name: anchor_object
    description: The ancestor term
    from_schema: https://w3id.org/semsql/relation_graph
    rank: 1000
    alias: anchor_object
    owner: subgraph_edge_by_ancestor
    domain_of:
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
    range: node
  anchor_predicate:
    name: anchor_predicate
    description: The entailed predicate that holds between each edge subject and the
      ancestor
    from_schema: https://w3id.org/semsql/relation_graph
    rank: 1000
    alias: anchor_predicate
    owner: subgraph_edge_by_ancestor
    domain_of:
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
    - subgraph_query
    - subgraph_edge_by_ancestor
    - subgraph_edge_by_descendant
    - subgraph_edge_by_parent
    - subgraph_edge_by_child
    - subgraph_edge_by_self
    range: string