summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2016-08-22 10:59:05 +0200
committerrautenberg <rautenberg@in-silico.ch>2016-08-22 10:59:05 +0200
commitc8adcd3fb21de20c5d66bf069e8a11b41eeaaceb (patch)
treea6cd5965f9bcb146c089ed0139b7fa78260cd431
parent57786aab1d918f072fdc4aa5649f531307ef93e6 (diff)
add License for qmrf.xsd file
-rw-r--r--lib/qmrf-report.rb5
-rw-r--r--lib/template/LICENSE_qmrf.xsd.txt12
2 files changed, 15 insertions, 2 deletions
diff --git a/lib/qmrf-report.rb b/lib/qmrf-report.rb
index a5c1ddb..88c6c86 100644
--- a/lib/qmrf-report.rb
+++ b/lib/qmrf-report.rb
@@ -106,7 +106,7 @@ module OpenTox
# get an attribute from a catalog entry
# @param [String] catalog Name of the catalog
- # @param [String] id entry id in the catalog
+ # @param [String] id entry id in the catalog
# @param [String] key returns value of a key in a catalog node
# @return [String, false] returns value of a key in a catalog node or false if catalog entry do not exists.
def get_catalog_value catalog, id, key
@@ -131,7 +131,8 @@ module OpenTox
xsd = Nokogiri::XML::Schema(File.read(SCHEMA_FILE))
out = ""
xsd.validate(@report).each do |error|
- out << error.message unless error.message == "Element 'algorithm', attribute 'publication_ref': '' is not a valid value of the atomic type 'xs:IDREF'." || error.message == "Element 'descriptor', attribute 'publication_ref': '' is not a valid value of the atomic type 'xs:IDREF'."
+ out << error.message unless error.message == "Element 'algorithm', attribute 'publication_ref': '' is not a valid value of the atomic type 'xs:IDREF'." || error.message == "Element 'descriptor', attribute 'publication_ref': '' is not a valid value of the atomic type 'xs:IDREF'."
+ # @todo ignore case sensitivity error: error.message The value 'NO' is not an.Element of the set {'Yes', 'No'}.
end
return out
end
diff --git a/lib/template/LICENSE_qmrf.xsd.txt b/lib/template/LICENSE_qmrf.xsd.txt
new file mode 100644
index 0000000..3911951
--- /dev/null
+++ b/lib/template/LICENSE_qmrf.xsd.txt
@@ -0,0 +1,12 @@
+This License concerns qmrf.xsd for qmrf validating and is taken from https://github.com/qsardb/qsardb-common
+
+Copyright (c) 2011 University of Tartu
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ * Neither the name of the University of Tartu nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file