Actions

Alternatives to the LimeSurvey import function/ja: Difference between revisions

From LimeSurvey Manual

m (FuzzyBot moved page Importing a survey structure/ja to Alternatives to the LimeSurvey import function/ja without leaving a redirect: Part of translatable page "Importing a survey structure".)
No edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages />
<languages />
__TOC__




「新規アンケートを作成」画面で、以前に出力したアンケートをインポートすることができます。「参照」ボタンを押して、SQL形式またはCSV形式のファイルを選択します。次のフォーマットのファイルがインポートできます:
これから、LimeSurveyのインポート機能の代替手段を紹介します。
*v0.98-1.0:LimeSurveyで作成された.SQLファイル
*v1.45以降:LimeSurveyで作成された.CSVファイル


この方法で、古いバージョンで作成したアンケートも新しいバージョンに移行できます。
=コマンドラインユーティリティを使用してインポートする=


インポート時には、アンケートやグループ、質問、回答、条件IDなどの番号の付け替えが「お利口に」(と、あえて書きます)行われ、お互いうまくマッチするようになります。詳細は[[アンケートの出力]]を参照してください。
バージョン1.50から1.92までは、コマンドライン(またはシェル)からアンケートをインポートすることができました。この機能を使用するには、シェルにアクセスする必要があり、スクリプトのシェル実行を許可するよう、PHPインタプリターを設定する必要があります。


----
この機能は、非常に長いアンケートをウェブでインポートするとき、タイムアウトの問題が発生する場合に役立ちます。


v1.50からは、コマンドライン(またはシェル)からアンケートのインポートができるようになりました。この機能を利用するには、シェルにアクセス可能で、またPHPインタープリタがシェルから実行できるように設定されている必要があります。この機能は、アンケートが非常に大きくて、インポートしようとするとweb版ではタイムアウトしてしまう場合に便利です。シェルで limesurvey/admin フォルダに移動し、次のコマンドを実行します。
シェルの"limesurvey/admin"フォルダーに移動して実行します。


php cmdline_importsurvey <File to import> <user> <password>
<code>php cmdline_importsurvey <インポートするファイル> <nowiki>[</nowiki><ユーザー> <パスワード>]</code>


<File to import> はインポートするファイル名、
*'''<インポートするファイル>:''' インポートしたいファイル
*'''<ユーザー>:''' アンケート作成権限のあるユーザー
*'''<パスワード>:''' 該当ユーザーのパスワード


<user> はアンケートを作成する権限を持つユーザ名、
コマンドパラメーターを確認するには、次のように実行します。


<password> は当該ユーザのパスワードです。
<code>php cmdline_importsurvey -h</code>


パラメータを見るには次のコマンドを実行します:
=リモートコントロールAPIを使ってインポートする=
LimeSurveyバージョン2.0以降、[[RemoteControl_2_API|リモートコントロール 2 API]]を使ってアンケートをインポートできます。


php cmdline_importsurvey -h
=他のアプリケーションからアンケートをインポートする=


----
他のアプリケーションやアンケートプロバイダーから、アンケートのインポートに関する要望がしばしばあります。問題は、プロバイダ(SurveyMonkeyなど)に囲い込まれてしまうことです。SurveyMonkeyなどからアンケート構成をエクスポートすることはできず、回答データのみをエクスポートできます。
Translated from English version, No.14
 
If you have previously exported a survey structure, you can import it from the "Create, import, or copy survey" screen.
To get there just click the 'Create, import, or copy a survey' icon [[File:Add.png]] and in the following screen click on the 'Import' tab.
Click on the browse button to choose the file, and then click on the ''Import survey' button.
 
The import process reads the following formats:
*.[[Exporting_a_survey_structure#Export_survey_structure_.28.lss.29|LSS files]] (XML-format created by LimeSurvey 1.90 or later)
*.[[Exporting_a_survey_structure#Export_survey_archive_.28.lsa.29|LSA files]] (Survey archive which may include also token, responses and timings - available since LimeSurvey 2.0)
*.[[Exporting_a_survey_structure#Export_tab-separated-values_format_.28.txt.29_.28New_in_2.0_.29|TXT files]] (Text-format created by Excel - available since LimeSurvey 2.0)
*.CSV files (Created by early LimeSurvey versions from 1.50 to 1.90)
 
That way you can import old surveys from previous versions. The import 'intelligently' re-numbers the survey, group, question, answer, and condition IDs so that they all match each other - '''no existing surveys will be overwritten.''' See the section on [[Exporting a survey structure]] for more information.
 
=Import using the commandline utility=
 
From version 1.50 to 1.92 it was possible to import surveys from the command line (or shell). To use this functionality you have to have access to the shell and the PHP interpreter has to be configured to allow shell execution of scripts.
 
This functionality is useful when you have timeout problems with the web version that could happen when you have very long surveys to import.
 
To use it, in the shell go to the limesurvey/admin folder and execute:
 
php cmdline_importsurvey <File to import> <nowiki>[</nowiki><user> <password>]
 
*<File to import> has to be one of the described above
*<user> has to be a user with permission to create surveys
*<password> the password for the user
 
If you need to see the parameters you can execute:
 
php cmdline_importsurvey -h
 
=Import using RemoteControl API=
Since LimeSurvey version 2.0 you can import a survey structure by using the [[RemoteControl_2_API|RemoteControl 2 API]].
 
=Importing surveys from other applications=
 
We are often getting requests to import a survey from other applications or survey providers. The problem is that providers like SurveyMonkey lock you in - it is not possible to export the survey structure from SurveyMonkey, only the response data. We are sorry to say but using closed proprietary software or providers can be a bad idea in the first place.

Latest revision as of 10:38, 16 June 2018


これから、LimeSurveyのインポート機能の代替手段を紹介します。

コマンドラインユーティリティを使用してインポートする

バージョン1.50から1.92までは、コマンドライン(またはシェル)からアンケートをインポートすることができました。この機能を使用するには、シェルにアクセスする必要があり、スクリプトのシェル実行を許可するよう、PHPインタプリターを設定する必要があります。

この機能は、非常に長いアンケートをウェブでインポートするとき、タイムアウトの問題が発生する場合に役立ちます。

シェルの"limesurvey/admin"フォルダーに移動して実行します。

php cmdline_importsurvey <インポートするファイル> [<ユーザー> <パスワード>]
  • <インポートするファイル>: インポートしたいファイル
  • <ユーザー>: アンケート作成権限のあるユーザー
  • <パスワード>: 該当ユーザーのパスワード

コマンドパラメーターを確認するには、次のように実行します。

php cmdline_importsurvey -h

リモートコントロールAPIを使ってインポートする

LimeSurveyバージョン2.0以降、リモートコントロール 2 APIを使ってアンケートをインポートできます。

他のアプリケーションからアンケートをインポートする

他のアプリケーションやアンケートプロバイダーから、アンケートのインポートに関する要望がしばしばあります。問題は、プロバイダ(SurveyMonkeyなど)に囲い込まれてしまうことです。SurveyMonkeyなどからアンケート構成をエクスポートすることはできず、回答データのみをエクスポートできます。