hets.rb revision ac2169141f0b549fc8917a4b1d778f4ba3cab0bf
ENV[key.upcase] = Hets.first_existent_of value if key != 'hets_path'
end
end
end
paths.each do |path|
return path if File.exists? path
end
end
# Runs hets with input_file and returns XML output file path.
if output_path
output_path = "-O \"#{output_path}\""
end
command = "#{config.path} -o xml --full-signatures -v2 #{output_path} '#{input_file}' 2>&1"
Rails.logger.debug command
# nice runs the process with lower scheduling priority
status = `nice #{command}`
end
end
# The path to the Hets library path
#
# @return [String] the path to the ontology library of Hets
#
return library_path
end
# Traverses the library recursively calling back on every ontology file
#
# @param library_path [String] the path to the ontology library
#
EXTENSIONS.each do |extension|
end
end
end
# Traverses the library directory recursively importing every ontology file
#
# @param user [User] the user that imports the ontology files
# @param library_path [String] the path to the ontology library
#
end
end
# Imports an ontology in demand of a user
#
# @param user [User] the user that imports the ontology file
# @param file_path [String] the path to the ontology file
# @param extension [String] the extension of the ontology file
#
# TODO Use custom ontology iris detached from the local file system
ontology.iri = "file://#{file_path}"
return
end
end
end