]> matita.cs.unibo.it Git - helm.git/commitdiff
Minor bug fixes:
authorAndrea Asperti <andrea.asperti@unibo.it>
Wed, 20 Nov 2002 10:52:24 +0000 (10:52 +0000)
committerAndrea Asperti <andrea.asperti@unibo.it>
Wed, 20 Nov 2002 10:52:24 +0000 (10:52 +0000)
 - forward_{rel|sort}.rdf ==> forward_{rel|sort}.xml
 - forward_{rel|sort}.xml were not valid XML documents

helm/metadata/create_V7_mowgli/METADATA/lex.yy.c
helm/metadata/create_V7_mowgli/METADATA/lex.yy_ind.c
helm/metadata/create_V7_mowgli/METADATA/sthandler.c
helm/metadata/create_V7_mowgli/METADATA/sthandler_ind.c

index a2f806d52914f354f86d1fd8387762dbbaba74d6..3f579762842ca6f267f6e8cff924ae0523fea66a 100644 (file)
@@ -1895,14 +1895,14 @@ main(int argc, char *argv[])
                    FILE *outrel, *outsort;
 
                    init_symbol_table();
-                   if (!(outrel = fopen("forward_rel.rdf","a"))) 
+                   if (!(outrel = fopen("forward_rel.xml","a"))) 
                      {
-                     fprintf(stderr, "error in openinf file forward_rel.rdf\n");
+                     fprintf(stderr, "error in opening file forward_rel.xml\n");
                       exit(-1);
                      }
-                   if (!(outsort = fopen("forward_sort.rdf","a"))) 
+                   if (!(outsort = fopen("forward_sort.xml","a"))) 
                      {
-                     fprintf(stderr, "error in openinf file forward_rel.rdf\n");
+                     fprintf(stderr, "error in opening file forward_sort.xml\n");
                       exit(-1);
                      }
                    // We process the body
index c233e427a7e3f15ff3068e4a0f8aeb4f9006987e..acf8e8ab8cb12610a0639948e309eca6d11ee6e3 100644 (file)
@@ -1969,14 +1969,14 @@ print_file()
                      fprintf(stderr, "error in openinf file %s\n", filename);
                       exit(-1);
                      } 
-                   if (!(outrel = fopen("forward_rel.rdf","a"))) 
+                   if (!(outrel = fopen("forward_rel.xml","a"))) 
                      {
-                     fprintf(stderr, "error in openinf file forward_rel.rdf\n");
+                     fprintf(stderr, "error in opening file forward_rel.xml\n");
                       exit(-1);
                      }
-                   if (!(outsort = fopen("forward_sort.rdf","a"))) 
+                   if (!(outsort = fopen("forward_sort.xml","a"))) 
                      {
-                     fprintf(stderr, "error in openinf file forward_rel.rdf\n");
+                     fprintf(stderr, "error in opening file forward_sort.xml\n");
                       exit(-1);
                      }
                  
index 916d3f13d960029bd9794c922320152e073a8b9e..15b83fa7eb16d9bc2fbe5165741563a1274da0ea 100644 (file)
@@ -269,7 +269,7 @@ print_mainhyp(about,outrel,outsort,uri,l)
          {
            fprintf(outsort,"\t\t<h:refSort rdf:parseType=\"Resource\">");
             fprintf(outsort,"\n\t\t\t\t<h:position rdf:resource=\"&hns;MainHypothesis\"/>");
-            fprintf(outsort,"\n\t\t\t\t<h:sort rdf:resource=\"&hns;%s\">",uri);
+            fprintf(outsort,"\n\t\t\t\t<h:sort rdf:resource=\"&hns;%s\"/>",uri);
             fprintf(outsort,"\n\t\t\t\t<h:depth>%d</h:depth>",curr->val);
             fprintf(outsort,"\n\t\t</h:refSort>\n");
             curr = curr->next;
@@ -307,7 +307,7 @@ print_mainconcl(about,outrel,outsort,uri,depth)
        fprintf(outrel,"\t\t<h:refRel rdf:parseType=\"Resource\">");
        fprintf(outrel,"\n\t\t\t\t<h:position rdf:resource=\"&hns;MainConclusion\"/>");
        fprintf(outrel,"\n\t\t\t\t<h:depth>%d</h:depth>",depth);
-       fprintf(outrel,"\n\t\t</h:refObj>\n");
+       fprintf(outrel,"\n\t\t</h:refRel>\n");
         fprintf(outrel,"\t</h:Object>\n");
       }
     else if ((!strcmp(uri,"Prop")) || (!strcmp(uri,"Type")) ||
@@ -318,7 +318,7 @@ print_mainconcl(about,outrel,outsort,uri,depth)
         fprintf(outsort,"\">\n");
        fprintf(outsort,"\t\t<h:refSort rdf:parseType=\"Resource\">");
        fprintf(outsort,"\n\t\t\t\t<h:position rdf:resource=\"&hns;MainConclusion\"/>");
-       fprintf(outsort,"\n\t\t\t\t<h:sort>%s</h:sort>",uri);
+        fprintf(outsort,"\n\t\t\t\t<h:sort rdf:resource=\"&hns;%s\"/>",uri);
        fprintf(outsort,"\n\t\t\t\t<h:depth>%d</h:depth>",depth);
        fprintf(outsort,"\n\t\t</h:refSort>\n");
         fprintf(outsort,"\t</h:Object>\n");
index d49863f5bbe33d75b687b678afe3d241ba62f014..3f391a79e5a8cc465b491f9c138e6d67b43377c8 100644 (file)
@@ -270,7 +270,7 @@ print_mainhyp(about,out,outrel,outsort,uri,l)
          {
             fprintf(outsort,"\t\t<h:refSort rdf:parseType=\"Resource\">");
             fprintf(outsort,"\n\t\t\t\t<h:position rdf:resource=\"&hns;MainHypothesis\"/>");
-            fprintf(outsort,"\n\t\t\t\t<h:sort rdf:resource=\"&hns;%s\">",uri);
+            fprintf(outsort,"\n\t\t\t\t<h:sort rdf:resource=\"&hns;%s\"/>",uri);
             fprintf(outsort,"\n\t\t\t\t<h:depth>%d</h:depth>",curr->val);
             fprintf(outsort,"\n\t\t</h:refSort>\n");
             curr = curr->next;
@@ -309,7 +309,7 @@ print_mainconcl(about,out,outrel,outsort,uri,depth)
        fprintf(outrel,"\t\t<h:refRel rdf:parseType=\"Resource\">");
        fprintf(outrel,"\n\t\t\t\t<h:position rdf:resource=\"&hns;MainConclusion\"/>");
        fprintf(outrel,"\n\t\t\t\t<h:depth>%d</h:depth>",depth);
-       fprintf(outrel,"\n\t\t</h:refObj>\n");
+       fprintf(outrel,"\n\t\t</h:refRel>\n");
         fprintf(outrel,"\t</h:Object>\n");
       }
     else if ((!strcmp(uri,"Prop")) || (!strcmp(uri,"Type")) ||
@@ -320,7 +320,7 @@ print_mainconcl(about,out,outrel,outsort,uri,depth)
         fprintf(outsort,"\">\n");
        fprintf(outsort,"\t\t<h:refSort rdf:parseType=\"Resource\">");
        fprintf(outsort,"\n\t\t\t\t<h:position rdf:resource=\"&hns;MainConclusion\"/>");
-       fprintf(outsort,"\n\t\t\t\t<h:sort>%s</h:sort>",uri);
+        fprintf(outsort,"\n\t\t\t\t<h:sort rdf:resource=\"&hns;%s\"/>",uri);
        fprintf(outsort,"\n\t\t\t\t<h:depth>%d</h:depth>",depth);
        fprintf(outsort,"\n\t\t</h:refSort>\n");
         fprintf(outsort,"\t</h:Object>\n");