Lenses and Metadata
Targeting metadata fields
To understand how Scalar metadata works, it helps to see it in action. You can do this by navigating to any page or media item in a Scalar book and clicking the "Metadata" link in the footer. This will take you to a table displaying all of the metadata for the current item, in which each row corresponds to a field.The left-most column of the table displays a more friendly name for the field, while the middle column shows its machine-readable id in the format [ontology]:[field]. To target a specific metadata field is a matter of making selections from the “Select ontology” and “Select field” menus that match the machine-readable id. So for example, to target the body content of a page, listed under the id “sioc:content”, you would choose “SIOC” from the ontology menu, and “content” from the field menu.
Here are the ontologies and fields for some of the most frequently used metadata items, for reference:
Scalar property | Ontology | Field |
---|---|---|
Title | Dublin Core (dcterms) | title |
Description | Dublin Core (dcterms) | description |
Body content | SIOC | content |
Creation date | Dublin Core (dcterms) | created |
URL (for media) | Artstor (art) | url |