[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/strigi/src
From:       Egon Willighagen <e.willighagen () science ! ru ! nl>
Date:       2007-11-14 10:08:35
Message-ID: 1195034915.399899.12905.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 736510 by egonw:

Updated for RDFS-based onto

 M  +1 -3      streamanalyzer/endanalyzers/sdfendanalyzer.cpp  
 M  +2 -2      strigicmd/strigicmd.cpp  


--- trunk/kdesupport/strigi/src/streamanalyzer/endanalyzers/sdfendanalyzer.cpp #736509:736510
@@ -24,11 +24,9 @@
 using namespace Strigi;
 using namespace std;
 
-const string SdfEndAnalyzerFactory::moleculeCountFieldName = "chemistry.molecule_count";
-
 void
 SdfEndAnalyzerFactory::registerFields(FieldRegister& r) {
-    moleculeCountField = r.registerField(moleculeCountFieldName);
+    moleculeCountField = r.registerField("http://rdf.openmolecules.net/0.9#moleculeCount");
 }
 
 bool
--- trunk/kdesupport/strigi/src/strigicmd/strigicmd.cpp #736509:736510
@@ -62,9 +62,9 @@
 //    Tokenized  = 0x0040 /**< If the field contains text, it
 //                             should be tokenized. */
     AnalyzerConfiguration::FieldType indexType(const RegisteredField* field) const {
-	if (string("chemistry.inchi").compare(field->key()) == 0) {
+	if (string("chemistry:inchi").compare(field->key()) == 0) {
 	    return Stored|Indexed;
-	} else if (string("chemistry.molecular_formula").compare(field->key()) == 0) {
+	} else if (string("chemistry:molecularFormula").compare(field->key()) == 0) {
 	    return Stored|Indexed;
 /*	} else if (string("chemistry.").compare(field->key()) == 0) {
 	    return Binary|Stored|Indexed;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic