diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-06-22 16:16:54 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-06-22 16:16:54 +0200 |
commit | 6c663f3bb95b45d5cb7e356ff6d1913a3e03212c (patch) | |
tree | f62a4856fab623ea1a9bad0222f7c60c503d0821 /report | |
parent | 2ee258935818fa3dcc9b863216f383969807c191 (diff) |
add types to validaiton rdfs
Diffstat (limited to 'report')
-rw-r--r-- | report/report_persistance.rb | 2 | ||||
-rw-r--r-- | report/report_test.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/report/report_persistance.rb b/report/report_persistance.rb index 5df0e20..ac430c4 100644 --- a/report/report_persistance.rb +++ b/report/report_persistance.rb @@ -207,6 +207,8 @@ module Reports LITERAL_NAMES = {:created_at => OT["date"] } OBJECT_PROPERTIES = { :crossvalidation_uris => OT['reportCrossvalidation'], :algorithm_uris => OT['reportAlgorithm'], :validation_uris => OT['reportValidation'], :model_uris => OT['reportModel'] } + OBJECTS = { :crossvalidation_uris => OT['Crossvalidation'], :algorithm_uris => OT['Algorithm'], + :validation_uris => OT['Validation'], :model_uris => OT['Model'] } CLASSES = {} IGNORE = [ :id, :report_uri ] diff --git a/report/report_test.rb b/report/report_test.rb index 8b68650..702ec34 100644 --- a/report/report_test.rb +++ b/report/report_test.rb @@ -17,8 +17,8 @@ class Reports::ApplicationTest < Test::Unit::TestCase def test_nothing - #get "/" #,nil,'HTTP_ACCEPT' => "text/x-yaml"#"application/rdf+xml" - #puts last_response.body.to_s + get "/report/validation/1",nil,'HTTP_ACCEPT' => "application/rdf+xml"#"text/x-yaml" + puts last_response.body.to_s #Reports::XMLReport.generate_demo_xml_report.write_to #raise "stop" |