[redland-dev] [Rasqal RDF Query Library 0000431]: Only a limited number of literal datatypes are displayable in a HTML format.

Mantis Bug Tracker mantis-bug-sender at librdf.org
Tue Mar 8 03:15:58 CET 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=431 
====================================================================== 
Reported By:                dbrnz
Assigned To:                
====================================================================== 
Project:                    Rasqal RDF Query Library
Issue ID:                   431
Category:                   api
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Query Language:              
====================================================================== 
Date Submitted:             2011-03-08 02:15
Last Modified:              2011-03-08 02:15
====================================================================== 
Summary:                    Only a limited number of literal datatypes are
displayable in a HTML format.
Description: 
Why can't all literals which have a datatype simply be shown with their
datatype? The following patch enables this.

{{{

--- a/src/rasqal_format_html.c
+++ b/src/rasqal_format_html.c
@@ -70,6 +70,18 @@ rasqal_iostream_write_html_literal(rasqal_world* world,
       break;
 
     case RASQAL_LITERAL_STRING:
+    case RASQAL_LITERAL_PATTERN:
+    case RASQAL_LITERAL_QNAME:
+    case RASQAL_LITERAL_INTEGER:
+    case RASQAL_LITERAL_XSD_STRING:
+    case RASQAL_LITERAL_BOOLEAN:
+    case RASQAL_LITERAL_DOUBLE:
+    case RASQAL_LITERAL_FLOAT:
+    case RASQAL_LITERAL_VARIABLE:
+    case RASQAL_LITERAL_DECIMAL:
+    case RASQAL_LITERAL_DATETIME:
+    case RASQAL_LITERAL_UDT:
+    case RASQAL_LITERAL_INTEGER_SUBTYPE:
       raptor_iostream_counted_string_write("<span class=\"literal\">", 22,
iostr);
       raptor_iostream_counted_string_write("<span class=\"value\"", 19, iostr);
       if(l->language) {
@@ -91,19 +103,6 @@ rasqal_iostream_write_html_literal(rasqal_world* world,
       }
       break;
 
-    case RASQAL_LITERAL_PATTERN:
-    case RASQAL_LITERAL_QNAME:
-    case RASQAL_LITERAL_INTEGER:
-    case RASQAL_LITERAL_XSD_STRING:
-    case RASQAL_LITERAL_BOOLEAN:
-    case RASQAL_LITERAL_DOUBLE:
-    case RASQAL_LITERAL_FLOAT:
-    case RASQAL_LITERAL_VARIABLE:
-    case RASQAL_LITERAL_DECIMAL:
-    case RASQAL_LITERAL_DATETIME:
-    case RASQAL_LITERAL_UDT:
-    case RASQAL_LITERAL_INTEGER_SUBTYPE:
-
     case RASQAL_LITERAL_UNKNOWN:
     default:
       rasqal_log_error_simple(world, RAPTOR_LOG_LEVEL_ERROR, NULL,

}}}
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-08 02:15 dbrnz          New Issue                                    
======================================================================



More information about the redland-dev mailing list