<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>vendor/plugins/talia_core/config/rdfstore.yml.redland_example</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,38 @@
-TaliaCore
-=========
+= TaliaCore
 
-Description goes here
\ No newline at end of file
+This is the &quot;core&quot; of the Talia semantic digital web library system. Talia can
+be used with Ruby on Rails, or as a standalone package.
+
+More documentation can be found on the Talia website: 
+http:///trac.talia.discovery-project.eu/
+
+= Installation
+
+If you have the Talia files on your sytem, you're almost there. For now,
+please consult the web page for installation instructions.
+
+= Configuration
+
+When you're in Rails, you can start Talia in the environment.rb, using the
+TaliaCore::Initializer - if you're building a standalone application, it's
+almost the same (although you'll have to use standalone_db=yes to configure
+ActiveRecord manually)
+
+There are some sample configuration files in the distribution:
+
+* talia_core.yml - This file contains the main configuration. 
+* database.yml - Standalon Db configuration. Same format as for Rails.
+* rdfstore.yml - RDF storage configuration.
+
+The default configuration (talia_core.yml) will use the database.yml and
+rdfstore.yml to configure the data storage. See the example filme for an
+explanation of the options. The database configuration will only be used if
+you are running Talia standalone; otherwise you must use RAILS' existing
+database connection.
+
+The options for the RDF store vary depending on the store that you have selected,
+but some examples are provideed.
+
+= DB Migrations
+
+= Importing data
\ No newline at end of file</diff>
      <filename>vendor/plugins/talia_core/README</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,46 @@
+require 'fileutils'
+
 $: &lt;&lt; File.join(File.dirname(__FILE__))
 load 'tasks/talia_core_tasks.rake'
 
+# This is just a quick hack to use the migrations in standalone mode
+desc &quot;Copies the template migrations to the local migrations directory&quot;
+task :local_migrations do 
+  migrations = [  
+    &quot;create_source_records&quot;,
+    &quot;create_dirty_relation_records&quot;,
+    &quot;create_data_records&quot;, 
+    &quot;create_type_records&quot;
+    ]
+  
+  template_dir = File.join(File.dirname(__FILE__), &quot;generators&quot;, &quot;talia_migrations&quot;, &quot;templates&quot;)
+  dest_dir = File.join(File.dirname(__FILE__), &quot;db&quot;, &quot;migrate&quot;)
+  dest_backup = File.join(File.dirname(__FILE__), &quot;db&quot;, &quot;migrate_old&quot;)
+  src_files = FileList.new(File.join(template_dir, &quot;*&quot;))
+  
+  unless(src_files.size == migrations.size) 
+    puts &quot;The number of templates doesn't match the configured numbe&quot;
+    puts &quot;Please update this rake task&quot;
+    return -1
+  end
+  
+  if(FileTest.exists?(dest_dir))
+    FileUtils.mv(dest_dir, dest_backup) 
+    puts &quot;Old migrations backed up&quot;
+  end
+  FileUtils.makedirs(dest_dir)
+  
+  
+  (1..migrations.size).each do |num|
+    prefix = &quot;%03d&quot; % num
+    template = File.join(template_dir, migrations[num-1])
+    destination = File.join(dest_dir, &quot;#{prefix}_#{migrations[num-1]}.rb&quot;)
+    FileUtils.cp(template, destination)
+    puts &quot;Copied: #{template} -&gt; #{destination}&quot;
+  end
+end
+
 desc 'Default: run unit tests.'
 task :default =&gt; 'cruise'
 
-task :cruise =&gt; ['talia_core:test', 'talia_core:rdoc']
+task :cruise =&gt; ['local_migrations', 'talia_core:test', 'talia_core:rdoc']</diff>
      <filename>vendor/plugins/talia_core/Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -34,6 +34,23 @@ module TaliaCore
   #
   # The options may also be stored in a configuration file; the name of
   # the file is passed to the initializer.
+  #
+  # = Example config
+  #  
+  #  # If working with Rails, this code goes to the environment.rb
+  #  
+  #  # Set the root directory (optional, for Rails it's automatic)
+  #  TaliaCore::Initializer.talia_root = &quot;/my_directory/my_talia_root/&quot;
+  #  # Set the environment (optional, automatic for rails)
+  #  TaliaCore::Initializer.environment = &quot;development&quot;
+  #  
+  #  # Run the initializer, giving a config file
+  #  # See the example config files for options
+  #  TaliaCore::Initializer.run(&quot;talia_core.yml&quot;) do |config|
+  #    # Give more confi options. These will overwrite the ones from the 
+  #    # config file
+  #    config['standalone_db'] = &quot;true&quot;
+  #  end
   class Initializer
     
     # Is used to set the root directory manually. Must be written before</diff>
      <filename>vendor/plugins/talia_core/lib/talia_core/initializer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
-#!/usr/local/bin/ruby
-#
+#!/usr/bin/env ruby
+# -*- Ruby -*-
+# 
 #   irb.rb - intaractive ruby
 #   	$Release Version: 0.9.5 $
 #   	$Revision: 11708 $</diff>
      <filename>vendor/plugins/talia_core/tools/talia_console.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>vendor/plugins/talia_core/config/rdfstore.yml.example</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/talia_core/db/migrate/001_create_source_records.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/talia_core/db/migrate/002_create_dirty_relation_records.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/talia_core/db/migrate/003_create_type_records.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/talia_core/db/migrate/004_create_data_records.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/talia_core/tasks/ontology_import.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>1cd3d2d5078c876c983dfb619fe431a054eb5c44</id>
    </parent>
  </parents>
  <author>
    <name>daniel</name>
    <email>ghub@limitedcreativity.org</email>
  </author>
  <url>http://github.com/net7/talia/commit/784d53a1f45b0f9b086e0de6510bac7ef1d9098c</url>
  <id>784d53a1f45b0f9b086e0de6510bac7ef1d9098c</id>
  <committed-date>2007-11-27T06:43:54-08:00</committed-date>
  <authored-date>2007-11-27T06:43:54-08:00</authored-date>
  <message>removed local migrations, use rake task instead

git-svn-id: http://svn.talia.discovery-project.eu/talia/talia_core/trunk@224 2960d7dc-a92c-0410-a2fe-c68badc242c0</message>
  <tree>87c670f8c9af54d1b37a7cbf9ad3e2bbede822eb</tree>
  <committer>
    <name>daniel</name>
    <email>ghub@limitedcreativity.org</email>
  </committer>
</commit>
