001 /* 002 * The contents of this file are subject to the Mozilla Public 003 * License Version 1.1 (the "License"); you may not use this file 004 * except in compliance with the License. You may obtain a copy of 005 * the License at http://www.mozilla.org/MPL/ 006 * 007 * Software distributed under the License is distributed on an "AS 008 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 009 * implied. See the License for the specific language governing 010 * rights and limitations under the License. 011 * 012 * The Original Code is Knowtator. 013 * 014 * The Initial Developer of the Original Code is University of Colorado. 015 * Copyright (C) 2005 - 2008. All Rights Reserved. 016 * 017 * Knowtator was developed by the Center for Computational Pharmacology 018 * (http://compbio.uchcs.edu) at the University of Colorado Health 019 * Sciences Center School of Medicine with support from the National 020 * Library of Medicine. 021 * 022 * Current information about Knowtator can be obtained at 023 * http://knowtator.sourceforge.net/ 024 * 025 * Contributor(s): 026 * Philip V. Ogren <philip@ogren.info> (Original Author) 027 * Brant Barney 028 */ 029 030 package edu.uchsc.ccp.knowtator.xml; 031 032 public class XMLConstants { 033 public static final String ANNOTATIONS_ELEMENT_NAME = "annotations"; 034 035 public static final String TEXT_SOURCE_ATTRIBUTE_NAME = "textSource"; 036 037 public static final String ID_ATTRIBUTE_NAME = "id"; 038 039 public static final String VALUE_ATTRIBUTE_NAME = "value"; 040 041 public static final String ANNOTATION_ELEMENT_NAME = "annotation"; 042 043 public static final String MENTION_ELEMENT_NAME = "mention"; 044 045 public static final String ANNOTATOR_ELEMENT_NAME = "annotator"; 046 047 public static final String SPAN_ELEMENT_NAME = "span"; 048 049 public static final String SPAN_START_ATTRIBUTE_NAME = "start"; 050 051 public static final String SPAN_END_ATTRIBUTE_NAME = "end"; 052 053 public static final String SPANNED_TEXT_ELEMENT_NAME = "spannedText"; 054 055 public static final String COMMENT_ELEMENT_NAME = "annotationComment"; 056 057 /** 058 * The name of the element that represents the annotation creation date 059 */ 060 public static final String CREATION_DATE_ELEMENT_NAME = "creationDate"; 061 062 /** 063 * The name of the element that represents a class mention. 064 */ 065 public static final String CLASS_MENTION_ELEMENT_NAME = "classMention"; 066 067 /** 068 * The name of the element that represents the mentioned class of a class 069 * mention. 070 */ 071 public static final String MENTION_CLASS_ELEMENT_NAME = "mentionClass"; 072 073 public static final String HAS_SLOT_MENTION_ELEMENT_NAME = "hasSlotMention"; 074 075 /** 076 * The name of the element that represents an instance mention. 077 */ 078 public static final String INSTANCE_MENTION_ELEMENT_NAME = "instanceMention"; 079 080 /** 081 * The name of the element that represents the mentioned instance of an 082 * instance mention. 083 */ 084 public static final String MENTION_INSTANCE_ELEMENT_NAME = "mentionInstance"; 085 086 /** 087 * The name of the element that represents a slot mention. 088 */ 089 public static final String COMPLEX_SLOT_MENTION_ELEMENT_NAME = "complexSlotMention"; 090 091 public static final String INTEGER_SLOT_MENTION_ELEMENT_NAME = "integerSlotMention"; 092 093 public static final String BOOLEAN_SLOT_MENTION_ELEMENT_NAME = "booleanSlotMention"; 094 095 public static final String FLOAT_SLOT_MENTION_ELEMENT_NAME = "floatSlotMention"; 096 097 public static final String STRING_SLOT_MENTION_ELEMENT_NAME = "stringSlotMention"; 098 099 /** 100 * The name of the element that represents the mentioned slot of a slot 101 * mention. 102 */ 103 public static final String MENTION_SLOT_ELEMENT_NAME = "mentionSlot"; 104 105 public static final String COMPLEX_SLOT_MENTION_VALUE_ELEMENT_NAME = "complexSlotMentionValue"; 106 107 public static final String INTEGER_SLOT_MENTION_VALUE_ELEMENT_NAME = "integerSlotMentionValue"; 108 109 public static final String BOOLEAN_SLOT_MENTION_VALUE_ELEMENT_NAME = "booleanSlotMentionValue"; 110 111 public static final String FLOAT_SLOT_MENTION_VALUE_ELEMENT_NAME = "floatSlotMentionValue"; 112 113 public static final String STRING_SLOT_MENTION_VALUE_ELEMENT_NAME = "stringSlotMentionValue"; 114 115 }