Class: RdfRestTransitiveStatement

URI: semsql_rdf:RdfRestTransitiveStatement

classDiagram RdfListStatement <|-- RdfRestTransitiveStatement RdfRestTransitiveStatement : datatype RdfRestTransitiveStatement : language RdfRestTransitiveStatement : object RdfRestTransitiveStatement : predicate RdfRestTransitiveStatement : stanza RdfRestTransitiveStatement : subject RdfRestTransitiveStatement : value

Usage

SELECT * FROM rdf_rest_transitive_statement;

Inheritance

Slots

Name Cardinality and Range Description
stanza 0..1
Node
the term which this statement is about
subject 0..1
RdfListNode
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
value 0..1
LiteralAsStringType
Note the range of this slot is always a string
datatype 0..1
xsd:string
the rdf datatype of the value, for example, xsd:string
language 0..1
xsd:string
the human language in which the value is encoded, e

Usages

Comments

  • sqlview>> WITH RECURSIVE rdf_rest_transitive_statement ( subject, object ) AS (SELECT subject, object FROM rdf_rest_statement UNION ALL SELECT rest.subject, rest_t.object FROM rdf_rest_statement AS rest JOIN rdf_rest_transitive_statement AS rest_t ON rest.object = rest_t.subject ) SELECT * FROM rdf_rest_transitive_statement

Identifier and Mapping Information

Schema Source

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

SQL View

This class has a SQL view definition:

sqlview>>
  WITH RECURSIVE rdf_rest_transitive_statement
             (
                   subject, object
             )
             AS
             (SELECT subject, object
                FROM rdf_rest_statement
               UNION ALL
              SELECT
                   rest.subject, rest_t.object
                FROM rdf_rest_statement AS rest
                JOIN rdf_rest_transitive_statement AS rest_t
                  ON rest.object = rest_t.subject
             )
          SELECT * FROM rdf_rest_transitive_statement

Mappings

Mapping Type Mapped Value
self ['semsql_rdf:RdfRestTransitiveStatement']
native ['semsql_rdf:RdfRestTransitiveStatement']

LinkML Specification

Direct

name: rdf_rest_transitive_statement
comments:
- "sqlview>>\n  WITH RECURSIVE rdf_rest_transitive_statement\n             (\n   \
  \                subject, object\n             )\n             AS\n            \
  \ (SELECT subject, object\n                FROM rdf_rest_statement\n           \
  \    UNION ALL\n              SELECT\n                   rest.subject, rest_t.object\n\
  \                FROM rdf_rest_statement AS rest\n                JOIN rdf_rest_transitive_statement\
  \ AS rest_t\n                  ON rest.object = rest_t.subject\n             )\n\
  \          SELECT * FROM rdf_rest_transitive_statement"
from_schema: https://w3id.org/semsql/rdf
rank: 1000
is_a: rdf_list_statement

Induced

name: rdf_rest_transitive_statement
comments:
- "sqlview>>\n  WITH RECURSIVE rdf_rest_transitive_statement\n             (\n   \
  \                subject, object\n             )\n             AS\n            \
  \ (SELECT subject, object\n                FROM rdf_rest_statement\n           \
  \    UNION ALL\n              SELECT\n                   rest.subject, rest_t.object\n\
  \                FROM rdf_rest_statement AS rest\n                JOIN rdf_rest_transitive_statement\
  \ AS rest_t\n                  ON rest.object = rest_t.subject\n             )\n\
  \          SELECT * FROM rdf_rest_transitive_statement"
from_schema: https://w3id.org/semsql/rdf
rank: 1000
is_a: rdf_list_statement
attributes:
  stanza:
    name: stanza
    description: the term which this statement is about
    deprecated: this will disappear in future versions
    from_schema: https://w3id.org/semsql/rdf
    see_also:
    - https://github.com/ontodev/rdftab.rs#stanzas
    rank: 1000
    alias: stanza
    owner: rdf_rest_transitive_statement
    domain_of:
    - statements
    range: node
  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: rdf_rest_transitive_statement
    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: rdf_list_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: rdf_rest_transitive_statement
    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: rdf_rest_transitive_statement
    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
  value:
    name: value
    description: Note the range of this slot is always a string. Only used the triple
      represents a literal assertion
    from_schema: https://w3id.org/semsql/rdf
    close_mappings:
    - rdf:object
    rank: 1000
    slot_uri: rdf:object
    alias: value
    owner: rdf_rest_transitive_statement
    domain_of:
    - statements
    - problem
    range: literal as string type
  datatype:
    name: datatype
    description: the rdf datatype of the value, for example, xsd:string
    comments:
    - only used when value is populated
    from_schema: https://w3id.org/semsql/rdf
    rank: 1000
    alias: datatype
    owner: rdf_rest_transitive_statement
    domain_of:
    - statements
    range: string
  language:
    name: language
    description: the human language in which the value is encoded, e.g. en
    todos:
    - use an enum
    comments:
    - only used when value is populated
    from_schema: https://w3id.org/semsql/rdf
    rank: 1000
    alias: language
    owner: rdf_rest_transitive_statement
    domain_of:
    - statements
    range: string