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

List:       kde-commits
Subject:    kdesupport/soprano/backends/redland
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2008-02-11 8:18:05
Message-ID: 1202717885.678165.13116.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 773497 by trueg:

Always store string literals as xls:string rather than rdfs:Literal

 M  +4 -12     redlandutil.cpp  


--- trunk/kdesupport/soprano/backends/redland/redlandutil.cpp #773496:773497
@@ -63,18 +63,10 @@
         return librdf_new_node_from_blank_identifier( world, (unsigned char *) \
node.identifier().toUtf8().data() );  }
     else if ( node.isLiteral() ) {
-        if ( node.literal().isString() ) {
-            return librdf_new_node_from_typed_literal( world,
-                                                       (unsigned char \
                *)node.literal().toString().toUtf8().data(),
-                                                       \
                node.language().toUtf8().data(),
-                                                       0 );
-        }
-        else {
-            return librdf_new_node_from_typed_literal( world,
-                                                       (unsigned char \
                *)node.literal().toString().toUtf8().data(),
-                                                       0,
-                                                       librdf_new_uri( world, (const \
                unsigned char*)node.dataType().toEncoded().data() ) );
-        }
+        return librdf_new_node_from_typed_literal( world,
+                                                   (unsigned char \
*)node.literal().toString().toUtf8().data(), +                                        \
node.language().toUtf8().data(), +                                                   \
librdf_new_uri( world, (const unsigned char*)node.dataType().toEncoded().data() ) );  \
}  
     return 0;


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

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