Drupal entities - jhu-library-applications/levy-api GitHub Wiki
In Drupal 8, information is organized into different entities or types of describable things. The types of entities in Drupal 8 relevant to our purposes are:
- Nodes (content)
- Taxonomy vocabularies
- Taxonomy terms
- Files
- Paragraphs
In The Lester S. Levy Sheet Music Collection, we have two different nodes:
- The “Levy Collection Item” node that represents the individual instances of digitized sheet music.
- The “Levy Collection Names” node that represents the individuals who are the artists, composers, or lyricists of the digitized sheet music.
The Sheet Music Collection also has six different taxonomy vocabularies to represent different types of information/things needed to describe sheet music.
- Composition Metadata
- Content List
- Creator Roles
- Duplicate Reason Codes
- Instrumentation Metadata
- Publishers
- Subjects
Within each of these taxonomy vocabularies are taxonomy terms, which represent unique instances of the taxonomy vocabularies. For instance, the Subjects taxonomy will contain individual taxonomy terms like “Love”, “Soldiers”, and “Birds.”
Next, files are also considered entities within Drupal 8, as they have attributes that can be captured in fields.
Finally, paragraphs are unique entities that can be used in Drupal 8 to represent the relationship between different entities in a customizable way. The Lester S. Levy Sheet Music Collection has two main paragraph entities:
- The “Collection Name” paragraph which captures the relationship between a “Levy Collection Item” node and a “Levy Collection Names” node.
- The “Collection Item Image” paragraph which captures the relationship between a “Levy Collection Item” node and an image file.