-
Notifications
You must be signed in to change notification settings - Fork 3
A simple example template
Remember we said a template is a recipe for Sinopia to create a form? Templates themselves also have a recipe. This recipe is called the "root template" and tells you how to configure a template. Every template has the same ingredients.
Let's look at the ingredients in the simple template shown in From template to RDF: how do templates work?.
At the top of the template is template metadata:
- Template ID
- Class
- Template Label
- Author
- Remark
- Date
These settings are explained in detail in Template metadata, but for now just notice that this is where we define the Class of the "thing" that will be cataloged by this template.
Following the template metadata are property templates. There's one Property Template for each statement you want a user to make about the "thing". Every property template has the same setup.
- Property
- Label
- Remark
- Remark URL
- Property attributes
- Property type
- Literal attributes
- URI attributes
- Lookup attributes
- Nested resource attributes
In our simple example, we have three fields (Name, Address, Phone), so there are 3 Property Templates configured.
Together, the template metadata and the property templates generate this form for a user to catalog:
Property template settings are explained in detail in Property Templates: Types of fields and options for each
Next: Creating a new template
- Home - How To Get Help
- Sinopia background
- Sinopia environments
- Supported browsers
- Ontology, vocabulary, BIBFRAME optimization
- Latest release / What's next
- Earlier releases
- Demo playlist
- Create an account
- Search
- RDF to MARC conversion
- Diacritics and character sets
- Permissions
- Action icons
- QuickStart in creating a description