curr = l;
if (!strcmp(uri,"Rel"))
{
- fprintf(outrel,"\t<h:Object rdf:about=\"");
- fprintf(outrel,"%s",about);
- fprintf(outrel,"\">\n");
/* scan the list */
while (curr != NULL)
{
+ fprintf(outrel,"\t<h:Object rdf:about=\"");
+ fprintf(outrel,"%s",about);
+ fprintf(outrel,"\">\n");
fprintf(outrel,"\t\t<h:refRel rdf:parseType=\"Resource\">");
fprintf(outrel,"\n\t\t\t\t<h:position rdf:resource=\"&hns;MainHypothesis\"/>");
fprintf(outrel,"\n\t\t\t\t<h:depth>%d</h:depth>",curr->val);
fprintf(outrel,"\n\t\t</h:refRel>\n");
+ fprintf(outrel,"\t</h:Object>\n");
curr = curr->next;
}
- fprintf(outrel,"\t</h:Object>\n");
}
else if ((!strcmp(uri,"Prop")) || (!strcmp(uri,"Type")) ||
(!strcmp(uri,"Set")))
{
/* scan the list */
- fprintf(outsort,"\t<h:Object rdf:about=\"");
- fprintf(outsort,"%s",about);
- fprintf(outsort,"\">\n");
while (curr != NULL)
{
+ fprintf(outsort,"\t<h:Object rdf:about=\"");
+ fprintf(outsort,"%s",about);
+ fprintf(outsort,"\">\n");
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:depth>%d</h:depth>",curr->val);
fprintf(outsort,"\n\t\t</h:refSort>\n");
+ fprintf(outsort,"\t</h:Object>\n");
curr = curr->next;
}
- fprintf(outsort,"\t</h:Object>\n");
}
else
{
curr = l;
if (!strcmp(uri,"Rel"))
{
- fprintf(outrel,"\t<h:Object rdf:about=\"");
- fprintf(outrel,"%s",about);
- fprintf(outrel,"\">\n");
/* scan the list */
while (curr != NULL)
{
+ fprintf(outrel,"\t<h:Object rdf:about=\"");
+ fprintf(outrel,"%s",about);
+ fprintf(outrel,"\">\n");
fprintf(outrel,"\t\t<h:refRel rdf:parseType=\"Resource\">");
fprintf(outrel,"\n\t\t\t\t<h:position rdf:resource=\"&hns;MainHypothesis\"/>");
fprintf(outrel,"\n\t\t\t\t<h:depth>%d</h:depth>",curr->val);
fprintf(outrel,"\n\t\t</h:refRel>\n");
+ fprintf(outrel,"\t</h:Object>\n");
curr = curr->next;
}
- fprintf(outrel,"\t</h:Object>\n");
}
else if ((!strcmp(uri,"Prop")) || (!strcmp(uri,"Type")) ||
(!strcmp(uri,"Set")))
{
/* scan the list */
- fprintf(outsort,"\t<h:Object rdf:about=\"");
- fprintf(outsort,"%s",about);
- fprintf(outsort,"\">\n");
while (curr != NULL)
{
+ fprintf(outsort,"\t<h:Object rdf:about=\"");
+ fprintf(outsort,"%s",about);
+ fprintf(outsort,"\">\n");
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:depth>%d</h:depth>",curr->val);
fprintf(outsort,"\n\t\t</h:refSort>\n");
+ fprintf(outsort,"\t</h:Object>\n");
curr = curr->next;
}
- fprintf(outsort,"\t</h:Object>\n");
}
else
{