-
Notifications
You must be signed in to change notification settings - Fork 1
/
service.php
37 lines (34 loc) · 1.06 KB
/
service.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Author: Zuoshuang Xiang
* The University Of Michigan
* He Group
* Date: 2010-03-04
*
* This is the main program for processing user inputs, form queries,
* process query resuslt and output final results.
*/
set_time_limit(60*60);
include('getExternalCore.php');
if ($vali->getErrorMsg()!='') {
print("<!-- Error: " . $vali->getErrorMsg() . "-->");
}
else {
if (file_exists("userfiles/$finalFile.owl")) {
readfile("$userfiles/$finalFile.owl");
if (!empty($a_missing_term)) {
print("<!--
Notice: All the OBO ontologies have changed the term URI format from http://purl.org/obo/owl/ontology#ontology_nnnnnnn to http://purl.obolibrary.org/obo/ontology_nnnnnnn. Please make sure your input files are updated.
The following terms do not have any related axioms in the source ontology:
");
foreach($a_missing_term as $missing_term_iri => $tmp) {
print($missing_term_iri. "\n");
}
print("-->");
}
}
else {
print("<!-- Error: Unknown error occured, please try again. Query ID: $finalFile.-->");
}
}
?>