Cross Reference: prover_output.rb
xref
: /
ontohub
/
app
/
models
/
prover_output.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
prover_output.rb revision 4a7c98053955ca61668ed12b235ddf2fc9976142
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
class
ProverOutput
<
ActiveRecord
::
Base
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
belongs_to
:
proof_attempt
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
attr_accessible
:
content
, :
locid
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
before_create
:
generate_locid
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
delegate
:
ontology
, :
theorem
, :
prover
,
to
: :
proof_attempt
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
protected
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
def
self.find
_with_locid
(
locid
,
_iri
=
nil
)
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
where
(
locid
:
locid
)
.
first
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
end
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
def
generate_locid
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
self.locid
=
"#{
proof_attempt.locid
}//prover-output"
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
end
4a7c98053955ca61668ed12b235ddf2fc9976142
Eugen Kuksa
end