Format Of Subjects Solr Document

THL Toolbox > Developers' Zone > Ruby on Rails Development > Knowledge Maps of Subjects > Format of Subjects Solr Document

Format of Solr Document Generated by Subjects Dictionary

Contributor(s): Andres Montano

Main Document

No specific fields for Knowledge Maps of Subjects in the main document; there are only Common Solr Fields for All Knowledge Maps.

Subdocuments

Here are the subdocuments for Knowledge Maps of Subjects. Remember to also consult the Common Solr Fields for All Knowledge Maps.

Relations

  • id: {uid of current}_{relation type code}_{id of related} (symmetric for parent relations and asymmetric for child relations; opposite from label!). For a list of relation types see external link: http://subjects.kmaps.virginia.edu/admin/feature_relation_types .
  • related_uid_s: related uid
  • origin_uid_s: uid of current
  • related_subjects_id_s: related uid
  • related_subjects_header_s: prioritized name based on default view. id would be used if no name is available.
  • related_subjects_path_s: path based on default perspective or closest to it in the form of "{id of grandparent}/{id of parent}/{id of current}" (for however many levels there are)
  • related_subjects_relation_label_s: relation type label (asymmetric for parent relations and asymmetric for child relations; opposite for code!).
  • related_subjects_relation_code_s: relation type code (symmetric for parent relations and asymmetric for child relations; opposite from label!).
  • related_kmaps_node_type: '{parent|child}' (depending if subdocument is for parent relation or child relation)
  • block_type: ['child'] (refers to child in the solr "subdocument sense"; independent if subdocument is for parent of child relation)
  • related_subjects_relation_citation_references_ss: array of citations for relation formatted as a string. Tag would be avaiable if array is not empty.
  • related_subjects_relation_time_units_ss: array of time units for relation formatted as a string. Tag would be avaiable if array is not empty.
  • related_subjects_note_{note id}_{note fields}: prefix of note data for relation. See note section for all fields

Specific Sections

Note fields

  • {prefix}_note_{note id}_title_s: title note if available, else tag won't be included.
  • {prefix}_note_{note id}_authors_ss: array of author names. Tag would be avaiable if array is not empty.
  • {prefix}_note_{note id}_content_t: content of note

Provided for unrestricted use by the external link: Tibetan and Himalayan Library