Class: Openphar::Models::Chp::Section

Inherits:
BaseEntity
  • Object
show all
Defined in:
lib/openphar/models/chp/section.rb

Overview

Section within a ChP monograph.

ChP monographs are structured by 【X】 headings (e.g., 【性状】, 【鉴别】, 【检查】). Each monograph has an ordered list of sections carrying the heading name + the HTML body + a plain-text rendering.

Class Method Summary collapse

Methods inherited from BaseEntity

jsonld_context, neo4j_label, neo4j_labels_string, #to_cypher, #to_cypher_match, #to_jsonld, #to_neo4j_node, #to_neo4j_properties

Class Method Details

.jsonld_typeObject



30
31
32
# File 'lib/openphar/models/chp/section.rb', line 30

def jsonld_type
  'ChpSection'
end

.neo4j_labelsObject



26
27
28
# File 'lib/openphar/models/chp/section.rb', line 26

def neo4j_labels
  %w[Section ChpSection]
end