
A new feature of Reggie is to allow users to enter the URL for their own schema. The following is a guide to setting up a schema for Reggie to use.
The Dublin Core metadata element set is used a basis for several other sets, including AGLS and EdNA. Click on the link to download the full schema file, or click here to download a stripped down version of the file. Other schema.txt files are available from the Reggie Metadata.Net home page.
Reggie requires the schema file to be called "schema.txt". The names of the remaining files used by Reggie may vary, as they will be named in the schema.txt file. This file will need to be placed in its own directory on a web server, along with any accompanying files that are used.
-- Dublin Core Schema
--
--
The dashes signify comment lines. You can enter the full name of your schema here, along with appropriate comments about the schema.
The first line of data in the file is used to name the schema for Reggie's internal use. It should contain alphanumeric characters and no spaces. The first use of the keyword "attribute" in the file signifies that this is the name of the schema. An example is given below:
DublinCore attribute
description url 'dublincore.html'
prefix 'DC'
label 'Dublin Core'
icon <DublinCore.gif>
syntax container
attributes set
Title, Creator, Subject, Description, Publisher,
Contributor, Date, Type, Format, Source,
Identifier, Language, Relation, Coverage, Rights
If ordinary text is used, the word "url" should be removed. The text should be entered between two apostraphe (') characters and must not contain any apostraphes. This rule also applies to text-based descriptions for the elements of the schema.
The label field refers to the full name of the element set. This is the name which will appear at the top of the Reggie window, eg. 'Dublin Core'.
The icon field contains the URL of a graphic which represents the element set. The preferred size is 60x60 pixels and Reggie will scale the graphic to this size if it is a different size. If the graphic is to be stored in the same directory as the schema.txt file, then only the name of the file is needed, eg. <DublinCore.gif>. Otherwise, the full URL is needed, eg. <http://metadata.net/dstc/DC-10-EN/DublinCore.gif>
Originator attribute
description 'This element identifies the resource originator.'
label 'Originator'
schemeless typeless
mandatory single valued
syntax string
Date attribute
description 'The date associated with the resource.'
prefix 'DC'
label 'Date'
syntax string
schemes
'ISO8601' scheme,
'MyDate' scheme,
'Created' type,
'Issued' type,
'Available' type
defaults
(scheme 'MyDate' type 'Created' language 'English') 'Today',
(type 'Available') 'Tomorrow',
'Yesterday'
The compulsory fields serve the same purpose for each element as they do for an element set. The "syntax" field should be set to string as other syntaxes are not supported yet. The "attribute" field is the name used (instead of the full name - "label") when creating the metadata output. The text in the "description" field will appear in the help box below the full name of the element. Like the schema description, this field will accept the URL for a HTML file if the keyword, "url", is added (See Step 3).
The optional fields do not need to be entered because they have default values. If the "prefix" field is used, it replaces the default prefix for this element set with another prefix. This will signify that the element belongs to a pre-existing set, such as Dublin Core (DC).
The "schemed" and typed" fields should be entered on the same line. The default value is "schemed typed", which means that this element is allowed to have both schemes and types. The words "schemeless" and "typeless" signify that the Schemes and Types lists respectively are disabled for this element. These fields must both be entered if one is entered, eg."schemeless typed".
The "optional" and "repeatable" fields should also be entered on the same line. The default value is "optional repeatable", which means that this element is optional in metadata and that it is allowed to have more than one value. The word "mandatory" indicates that a value must be entered in this element for the metadata to be valid. The words "single valued" indicate that only one value is allowed for this element. These fields must both be entered if one is entered, eg."mandatory repeatable".
The "fixed list" keywords indicate that the list of default values given is the only set of values which may entered for this element. No free text entry is allowed. If "fixed list" is not specified, the element will allow the entry of either a value from the default list or some free text.
The "schemes" keyword indicates that a list of schemes and subelements (to appear in their respective lists in Reggie) is given. They should be entered in the format shown. The name of a scheme should be followed by the word "scheme" and the name of a subelement / type should be followed by the word "type". The absence of a comma after the keyword indicates the end of the list.
The "defaults" keyword indicates that a list of default values will be provided for this element. Each default value can optionally have a scheme, subelement / type and language specified in brackets. All, some or none of these modifiers may be specified. When a default value is selected, these modifiers will also be selected by default. The list of defaults should be entered in the format shown above.
If you receive the error message, "The schema is not available!" or your schema does not load, you should open the Java Console. If a parsing error has occurred, the details of this error will be displayed in the Java Console. The most common errors are the use of an apostraphe (') in a description or missing a comma (,) where it is needed. The parsing error messages include the line and column number of the errors so that they can be found easily.
|