Cross Reference: ontology_helper.rb
xref
: /
ontohub
/
app
/
helpers
/
ontology_helper.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
b94d7d4b3d3472197238271e200468b55c5e6102
henning mueller
module
OntologyHelper
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
def
current_version
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
o = @
ontology.parent
? @
ontology.parent
: @
ontology
0dda23492d6edbe1392af2e3267ef7e2648a641c
Tim Reddehase
o.current
_version
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
end
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
def
download_path
(
resource
)
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
return
nil
if
resource.versions.done.empty
?
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
repository_ontology_ontology_version_path
(*
resource_chain
,
resource.versions.done.latest.first
)
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
end
ee5342a8882c2fc7631fcffb5497e6597747887c
Tim Reddehase
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
def
show_evaluate
?
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
show_oops
?
#|| show_foo?
3b378eef3a571df8cc27122e08f5106170cd3643
henning mueller
end
b299dbef5e70f4f78937112b19370a4d5d0e04e3
Eugen Kuksa
b299dbef5e70f4f78937112b19370a4d5d0e04e3
Eugen Kuksa
def
last_file_path
(
resource
)
075e8216f719a593d9111ce303e5028bcb0400fa
Eugen Kuksa
repository_ref_path
(
075e8216f719a593d9111ce303e5028bcb0400fa
Eugen Kuksa
repository_id
:
resource.repository.to
_param
,
b299dbef5e70f4f78937112b19370a4d5d0e04e3
Eugen Kuksa
ref
:
resource.current_version.commit
_oid
,
b299dbef5e70f4f78937112b19370a4d5d0e04e3
Eugen Kuksa
path
:
resource.current_version.path
,
b299dbef5e70f4f78937112b19370a4d5d0e04e3
Eugen Kuksa
action
: :
show
)
b299dbef5e70f4f78937112b19370a4d5d0e04e3
Eugen Kuksa
end
b94d7d4b3d3472197238271e200468b55c5e6102
henning mueller
end