The Legislation Collection of the Netherlands: Basiswettenbestand

June 2nd, 2006

Overheid.nl
MetaLex has been designed with translation from and to publisher-specific XML in mind, and can therefore be used as an intermediary between different formats. This example shows this feature used in the case of the Dutch Basiswettenbestand.

Note
This is the most complete example of the use of XML pipelines based on the XSLT transformations in the transform directory of the MetaLex zip file. This website runs on Apache Cocoon.

The Dutch Basiswettenbestand (BWB) is a large database containing almost all Dutch laws and decisions. The XML format that is used for encoding the laws in this database is based on a DTD originally developed by SDU publishers, and now maintained by the Dutch government.

The MetaLex distribution contains several examples from this corpus in the XML format of the BWB, and these are also available through the bwb/*/src pipeline of the MetaLex website:

These documents can be translated to MetaLex (Dutch locale) using the stylesheets provided in the transform/nl directory of the MetaLex distribution, or the bwb/*/nl pipeline on the MetaLex website. These stylesheets are the best available advanced example of using MetaLex with third party XML files. BWB elements which do not have an equivalent in MetaLex are preserved in the MetaLex file. This is MetaLex using Dutch localized element names:

After transforming the MetaLex NL versions to the locale independent schema (the bwb/* pipeline), we can generate PDF (bwb/*/pdf) and HTML versions (bwb/*/html) of the laws. Here are the HTML versions:

These are the PDF versions:

The BWB XML files contain a lot of layout information and metadata that has no equivalent in the MetaLex standard. This information is simply copied into the MetaLex document. This information is later translated into XHTML for presentation purposes. As you can see in the HTML examples, there are no special templates for handling BWB metadata: the values of various metadata fields are just printed out in a small font. It is easy to add your own templates for specific metadata extensions. Note that the bwb2metalex_nl transformation also preserves all existing hyperlinks in the corpus by assigning a target namespace to the corpus. All hyperlinks would work if the whole BWB corpus was available on the MetaLex website.

Last but nor least, we can also translate BWB files into OWL with pipeline bwb/*/owl:

Note that BWB metadata is stripped off and thrown away in this case. Read the comments in the metalex2owl stylesheet to make your own metadata to OWL converter.

Entry Filed under: Examples

1 Comment

  • 1. MetaLex » Another L&hellip  |  June 8th, 2006 at 1:41 pm

    […] These MetaLex files have been produced from flat text files. See the Basiswettenbestand example for a fully implemented tranformation pipeline to MetaLex. […]

Trackback this post


Calendar

September 2010
M T W T F S S
« Oct    
 12345
6789101112
13141516171819
20212223242526
27282930  

Most Recent Posts