Apache UIMA RDF CAS Consumer documentation

Written and maintained by the Apache UIMA Development Community

Version 2.3.1-SNAPSHOT

License and Disclaimer.  The ASF licenses this documentation to you under the Apache License, Version 2.0 (the "License"); you may not use this documentation except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, this documentation and its contents are distributed under the License on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Trademarks.  All terms mentioned in the text that are known to be trademarks or service marks have been appropriately capitalized. Use of such terms in this book should not be regarded as affecting the validity of the the trademark or service mark.

gennaio, 2011


Table of Contents

Introduction
1. Configuration

Introduction

The RDF CAS Consumer is a component to create RDF files from CAS objects.

RDF CAS Consumer uses Apache Clerezza RDF serializing capabilities and its integration modules with UIMA to create files in various RDF formats from the CAS object.

Chapter 1. Configuration

To configure the RDFCASConsumer there are 3 parameters that can be set. The parameters 'file' and 'format' are mandatory while 'view' is optional. With the 'file' parameter the output file has to be specified using the file protocol (i.e.: file://pathto/file.rdf).

The 'format' parameter handles the output format as there are different options provided by the Serializer specified. Since RDFCASConsumer takes advantage of the Apache Clerezza serializing facilities it depends on which serializer is enabled; by default only the org.apache.clerezza.rdf.jena.serializer artifact is used but, as Clerezza offers different serializing options, it can be extended to handle more file formats. With org.apache.clerezza.rdf.jena.serializer the following formats are supported: application/rdf+xml, text/turtle, application/x-turtle, text/rdf+nt and text/rdf+n3.

Finally with the 'view' parameter the particular CAS View to serialize can be specified. If no view is defined then the current default CAS view is serialized as RDF.