Class: Edge
A relation graph edge that connects two entities by a predicate. Note an edge is distinct from a statement, in that an axiom such as A SubClassOf R some B is represented as multiple statements, but is a single relation graph edge
URI: semsql_rg:Edge
classDiagram
RelationGraphConstruct <|-- Edge
Edge : object
Edge : predicate
Edge : subject
Usage
SELECT * FROM edge;
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 |
Usages
Comments
- sqlview>> SELECT subject, predicate, object FROM owl_subclass_of_some_values_from UNION SELECT subject, predicate, object FROM rdfs_subclass_of_named_statement UNION SELECT subject, predicate, object FROM rdf_type_statement WHERE object IN (SELECT id FROM class_node)
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 subject, predicate, object
FROM owl_subclass_of_some_values_from
UNION
SELECT subject, predicate, object
FROM rdfs_subclass_of_named_statement
UNION
SELECT subject, predicate, object
FROM rdf_type_statement WHERE object IN (SELECT id FROM class_node)
Mappings
Mapping Type | Mapped Value |
---|---|
self | ['semsql_rg:Edge'] |
native | ['semsql_rg:Edge'] |
LinkML Specification
Direct
name: edge
description: A relation graph edge that connects two entities by a predicate. Note
an edge is distinct from a statement, in that an axiom such as A SubClassOf R some
B is represented as multiple statements, but is a single relation graph edge
notes:
- this should hold direct edges. See also entailed_edge
comments:
- "sqlview>>\n SELECT subject, predicate, object\n FROM owl_subclass_of_some_values_from\n\
\ UNION\n SELECT subject, predicate, object\n FROM rdfs_subclass_of_named_statement\n\
\ UNION\n SELECT subject, predicate, object\n FROM rdf_type_statement WHERE\
\ object IN (SELECT id FROM class_node)"
in_subset:
- base table
from_schema: https://w3id.org/semsql/relation_graph
rank: 1000
is_a: relation_graph_construct
slots:
- subject
- predicate
- object
Induced
name: edge
description: A relation graph edge that connects two entities by a predicate. Note
an edge is distinct from a statement, in that an axiom such as A SubClassOf R some
B is represented as multiple statements, but is a single relation graph edge
notes:
- this should hold direct edges. See also entailed_edge
comments:
- "sqlview>>\n SELECT subject, predicate, object\n FROM owl_subclass_of_some_values_from\n\
\ UNION\n SELECT subject, predicate, object\n FROM rdfs_subclass_of_named_statement\n\
\ UNION\n SELECT subject, predicate, object\n FROM rdf_type_statement WHERE\
\ object IN (SELECT id FROM class_node)"
in_subset:
- base table
from_schema: https://w3id.org/semsql/relation_graph
rank: 1000
is_a: relation_graph_construct
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: edge
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: edge
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: edge
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