add schemas and catalog

Change-Id: I271e13d4b6db999f6d56c2f923a1d7c493fee172
diff --git a/KorAP_schemas/text.rng b/KorAP_schemas/text.rng
new file mode 100644
index 0000000..a6ff063
--- /dev/null
+++ b/KorAP_schemas/text.rng
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://ids-mannheim.de/ns/KorAP">
+  <!-- $Id$ -->
+  <start>
+    <element name="raw_text">
+      <attribute name="docid">
+        <data type="NCName"/>
+      </attribute>
+      <element name="metadata">
+        <attribute name="file">
+          <data type="anyURI"/>
+        </attribute>
+      </element>
+      <element name="text">
+        <optional>
+          <attribute name="mimeType">
+            <documentation xmlns="http://relaxng.org/ns/compatibility/annotations/1.0">By default,
+              we assume "text/plain; charset=UTF-8", but we should be prepared for other
+              encodings</documentation>
+            <documentation xmlns="http://relaxng.org/ns/compatibility/annotations/1.0">Or maybe
+              @charset would be enough here?</documentation>
+            <data type="string"/>
+          </attribute>
+        </optional>        <text/>
+      </element>
+      <zeroOrMore>
+        <element name="binary">
+          <attribute name="mimeType">
+            <data type="string"/>
+          </attribute>
+          <attribute name="file">
+            <data type="anyURI"/>
+          </attribute>
+        </element>
+      </zeroOrMore>
+    </element>
+  </start>
+</grammar>