Cross Reference: prove_caller.rb
xref
: /
ontohub
/
lib
/
hets
/
prove_caller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
prove_caller.rb revision e4d81151f4841a6354d043551a970418b32be02a
module
Hets
class
ProveCaller
<
ActionCaller
CMD
=
'prove'
METHOD
= :
post
PROVE_OPTIONS
= {
format
:
'json'
,
include
:
'true'
}
def
call
(
iri
)
escaped_iri
=
Rack
::
Utils.escape
_path
(
iri
)
arguments
= [
escaped_iri
]
api_uri
=
build_api_uri
(
CMD
,
arguments
,
build_query_string
)
perform
(
api_uri
,
PROVE_OPTIONS
,
METHOD
)
end
end
end