<docbook><section><title>OdsBriefcaseDropBox</title><para> </para>
<title> Using ODS-Briefcase to mediate access to data stored in Dropbox</title> Using ODS-Briefcase to mediate access to data stored in Dropbox
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Introduction</bridgehead>
<para>Dropbox is a free service that lets you bring all your photos, docs, and videos anywhere.
 Any file you save to your Dropbox will automatically be copied to all your computers, phones, and even the Dropbox website.</para>
<para>ODS Briefcase offers a new &quot;Dropbox&quot; folder type which provides several additional features, once the ODS system is configured with a registered Dropbox API key and secret pair:</para>
<itemizedlist mark="bullet" spacing="compact"><listitem>Specify credentials for authentication against Dropbox, enabling retrieval of any or all of your folders and files, including any associated metadata </listitem>
<listitem>Specify which Sponger Extractor Cartridges and Sponger Meta Cartridges should be run against your Dropbox data </listitem>
<listitem>Save fetched data, metadata, and Sponger output, into a newly created Dropbox-specific RDF Graph in the Virtuoso RDF Quad Store </listitem>
<listitem>Specify other ODS Users or WebID-based ACLs which should be granted access to your Dropbox data through ODS Briefcase</listitem>
</itemizedlist><bridgehead class="http://www.w3.org/1999/xhtml:h2"> Example</bridgehead>
<para>Here is a sample scenario showing the whole process, from setting the Dropbox API key and secret pair in ODS, to retrieving all Dropbox content to ODS Briefcase.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> Prerequisites</bridgehead>
<itemizedlist mark="bullet" spacing="compact"><listitem>A <ulink url="https://www.dropbox.com/">Dropbox user account</ulink> </listitem>
<listitem>Files and folders (data) stored in your <ulink url="https://www.dropbox.com/install">Dropbox Space</ulink> </listitem>
<listitem>Administrative (DBA) access to a <ulink url="http://virtuoso.openlinksw.com/">Virtuoso Server</ulink> instance, on which the following have been installed -- <itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="https://virtuoso.openlinksw.com/download/">ODS-Framework VAD package</ulink> </listitem>
<listitem><ulink url="https://virtuoso.openlinksw.com/download/">ODS-Briefcase VAD package</ulink> </listitem>
<listitem><ulink url="https://virtuoso.openlinksw.com/download/">Virtuoso RDF Mappers VAD package</ulink></listitem>
</itemizedlist></listitem>
</itemizedlist><bridgehead class="http://www.w3.org/1999/xhtml:h3"> Steps</bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h4"> 1 - Get a Dropbox API key and secret pair for use with ODS-Briefcase</bridgehead>
<emphasis>Note that at present, each Virtuoso + ODS instance can only be configured with a single Dropbox API key, which will then be used by all ODS-Briefcase users when targeting Dropbox from that instance.
 By default, Dropbox limits each application to 5 users (Dropbox accounts).
 This means that 5 different Dropbox account holders can create Dropbox type folders at your Virtuoso ODS instance.
 This limitation is outside the scope of OpenLink or Virtuoso control.
 If you&#39;ll have more than 5 Dropbox users working through your ODS instance, you will need to apply to Dropbox for production status.</emphasis><orderedlist spacing="compact"><listitem>Browse to &lt;<ulink url="https://www.dropbox.com/developers/apps">https://www.dropbox.com/developers/apps</ulink>&gt;, and log in with your existing Dropbox user credentials: <ulink url="OdsBriefcaseDropBox/step1-1.png"><figure><graphic fileref="OdsBriefcaseDropBox/step1-1.png" /></figure></ulink> </listitem>
<listitem>Agree to the <emphasis>Dropbox Developer Terms and Conditions</emphasis>: <ulink url="OdsBriefcaseDropBox/step1-2.png"><figure><graphic fileref="OdsBriefcaseDropBox/step1-2.png" /></figure></ulink> </listitem>
<listitem>Click <emphasis>Create an App</emphasis>: <ulink url="OdsBriefcaseDropBox/step1-3.png"><figure><graphic fileref="OdsBriefcaseDropBox/step1-3.png" /></figure></ulink> </listitem>
<listitem>Enter a name for your Dropbox client application (i.e., your ODS-Briefcase instance) to be known by, e.g., &quot;MyODSDropbox&quot;.
 A description is also required; put as much or as little as you like.
 Tick the <emphasis>Full Dropbox</emphasis> check-box, and click <emphasis>Create</emphasis>: <ulink url="OdsBriefcaseDropBox/step1-4.png"><figure><graphic fileref="OdsBriefcaseDropBox/step1-4.png" /></figure></ulink> </listitem>
<listitem>You will be shown the &quot;Options&quot; page for your new application, including the <emphasis>App key</emphasis> and <emphasis>App secret</emphasis> pair.
 (You can copy these now, or come back for them later.
 Do be aware that you will need these strings for the steps that follow.)  Optionally, add the URI of your ODS host Virtuoso instance as the <emphasis>Website</emphasis>.
 If you make any changes on this form, click <emphasis>Update</emphasis>; otherwise, click <emphasis>Cancel</emphasis> to end the application creation process.
<ulink url="OdsBriefcaseDropBox/step1-5.png"><figure><graphic fileref="OdsBriefcaseDropBox/step1-5.png" /></figure></ulink> </listitem>
<listitem>Your new application will show up in the &quot;My apps&quot; list.
<ulink url="OdsBriefcaseDropBox/step1-6.png"><figure><graphic fileref="OdsBriefcaseDropBox/step1-6.png" /></figure></ulink></listitem>
</orderedlist><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h4"> 2 - Configure ODS to use your Dropbox API key and secret</bridgehead>
<orderedlist spacing="compact"><listitem>Browse to your Virtuoso + ODS instance, http://&lt;cname&gt;[:&lt;port&gt;]/ods, e.g., &lt;<ulink url="http://example.com/ods/">http://example.com/ods/</ulink>&gt;, and click <emphasis>Sign In</emphasis>.
<ulink url="OdsBriefcaseDropBox/step2-1.png"><figure><graphic fileref="OdsBriefcaseDropBox/step2-1.png" /></figure></ulink> </listitem>
<listitem>Log in as a Virtuoso+ODS user with Administrator privileges, e.g., dba.
<ulink url="OdsBriefcaseDropBox/step2-2.png"><figure><graphic fileref="OdsBriefcaseDropBox/step2-2.png" /></figure></ulink> </listitem>
<listitem>Click on <emphasis>Site Settings</emphasis>: <ulink url="OdsBriefcaseDropBox/step2-3.png"><figure><graphic fileref="OdsBriefcaseDropBox/step2-3.png" /></figure></ulink> </listitem>
<listitem>Click on <emphasis>Login Authentication Keys</emphasis>: <ulink url="OdsBriefcaseDropBox/step2-4.png"><figure><graphic fileref="OdsBriefcaseDropBox/step2-4.png" /></figure></ulink> </listitem>
<listitem>Select <emphasis>Dropbox API</emphasis> in the <emphasis>API Name</emphasis> menu, provide the <emphasis>App key</emphasis> and <emphasis>App secret</emphasis> you got when you registered the application with Dropbox, and click <emphasis>Add</emphasis>.
<ulink url="OdsBriefcaseDropBox/step2-5.png"><figure><graphic fileref="OdsBriefcaseDropBox/step2-5.png" /></figure></ulink> </listitem>
<listitem>ODS-Briefcase is now configured to use the Dropbox API.
<ulink url="OdsBriefcaseDropBox/step2-6.png"><figure><graphic fileref="OdsBriefcaseDropBox/step2-6.png" /></figure></ulink></listitem>
</orderedlist><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h4"> 3 - Access files stored on Dropbox through ODS-Briefcase</bridgehead>
<orderedlist spacing="compact"><listitem>Browse to your Virtuoso + ODS instance, http://&lt;cname&gt;[:&lt;port&gt;]/ods, e.g., &lt;<ulink url="http://example.com/ods/">http://example.com/ods/</ulink>&gt;.
<ulink url="OdsBriefcaseDropBox/step3-01.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-01.png" /></figure></ulink> </listitem>
<listitem>Log in as a Virtuoso+ODS user with normal privileges, e.g., demo.
<ulink url="OdsBriefcaseDropBox/step3-02.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-02.png" /></figure></ulink> </listitem>
<listitem>Click to the <emphasis>ODS-Briefcase</emphasis> application: <ulink url="OdsBriefcaseDropBox/step3-03.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-03.png" /></figure></ulink> </listitem>
<listitem>Click <emphasis>New Folder</emphasis> from the main Briefcase control strip: <ulink url="OdsBriefcaseDropBox/step3-04.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-04.png" /></figure></ulink> </listitem>
<listitem>In the New Folder form, specify a <emphasis>Folder Name</emphasis>, e.g., <emphasis>MyDropboxFolder</emphasis>, and set the <emphasis>Folder type</emphasis> to <emphasis>Dropbox</emphasis>: <ulink url="OdsBriefcaseDropBox/step3-05.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-05.png" /></figure></ulink> </listitem>
<listitem>Click to the newly visible <emphasis>Dropbox</emphasis> tab: <ulink url="OdsBriefcaseDropBox/step3-06.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-06.png" /></figure></ulink> </listitem>
<listitem>All RDF data extracted from and otherwise collected about your Dropbox files will be saved to a named graph, where the default name is constructed from the host ODS instance, the ODS username, and the Briefcase folder name -- http://&lt;host&gt;[:&lt;port&gt;]/DAV/home/&lt;user-name&gt;/&lt;folder-name&gt;#this -- so, in this example, the default graph would be named &lt;<ulink url="http://example.com/ods/demo/MyDropboxFolder#this">http://example.com/ods/demo/MyDropboxFolder#this</ulink>&gt;.
 Expert users may wish to change this graph name, but the default is suitable for most users.
<ulink url="OdsBriefcaseDropBox/step3-07.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-07.png" /></figure></ulink> </listitem>
<listitem>You can also turn on the <ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSponger">Virtuoso Sponger</ulink>, to process your Dropbox files more comprehensively.
 When the Sponger is enabled for your folder, you can specify which &quot;Sponger Extractor Cartridges&quot; and &quot;Sponger Meta Cartridges&quot; will be run over the files in your Dropbox.
 You can enable all cartridges, but this will introduce some processing overhead.
 It&#39;s generally best to enable only those cartridges which will be applicable to your files and their content.
 For instance, you may know that you&#39;ll only be storing Microsoft and Open Office documents here.
 Then, click &quot;Authenticate&quot;, to connect your new folder to your Dropbox: <ulink url="OdsBriefcaseDropBox/step3-08.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-08.png" /></figure></ulink> </listitem>
<listitem>You&#39;ll be prompted to enter your Dropbox user&#39;s credentials.
 Note that this Dropbox user need not be the application owner/&quot;developer&quot; who got the API key earlier.
<ulink url="OdsBriefcaseDropBox/step3-09.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-09.png" /></figure></ulink> </listitem>
<listitem>Dropbox will prompt for confirmation that you intend to let your application (&quot;<ulink url="MyODSDropbox">MyODSDropbox</ulink>&quot;) have access to your Dropbox content.
 Click <emphasis>Allow</emphasis>.
<ulink url="OdsBriefcaseDropBox/step3-10.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-10.png" /></figure></ulink> </listitem>
<listitem>Your Dropbox user name and associated email address will now be displayed.
 Click <emphasis>Create</emphasis> to finish the folder creation process.
<ulink url="OdsBriefcaseDropBox/step3-11.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-11.png" /></figure></ulink> </listitem>
<listitem>Your new Dropbox-linked folder should now be displayed in your Briefcase resources list: <ulink url="OdsBriefcaseDropBox/step3-12.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-12.png" /></figure></ulink> </listitem>
<listitem>Click the folder name to see the resources ODS-Briefcase has found in your Dropbox Dataspace: <ulink url="OdsBriefcaseDropBox/step3-13.png"><figure><graphic fileref="OdsBriefcaseDropBox/step3-13.png" /></figure></ulink></listitem>
</orderedlist><bridgehead class="http://www.w3.org/1999/xhtml:h2">Related</bridgehead>
<itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="http://bit.ly/SK7WAI">How Linked Data &amp; WebID Deliver Controlled Access to Resources in Google Drive, Microsoft OneDrive (formerly SkyDrive), DropBox, Box.Net, and Amazon S3</ulink> </listitem>
<listitem><ulink url="OdsBriefcaseAmazonS3">Using ODS-Briefcase to mediate access to data stored on Amazon S3</ulink> </listitem>
<listitem><ulink url="OdsBriefcaseBoxNet">Using ODS-Briefcase to mediate access to data stored on Box (a/k/a box.com or box.net)</ulink> </listitem>
<listitem><ulink url="OdsBriefcaseGoogleDrive">Using ODS-Briefcase to mediate access to data stored on Google Drive</ulink> </listitem>
<listitem><ulink url="OdsBriefcaseSkyDrive">Using ODS-Briefcase to mediate access to data stored on Microsoft OneDrive (formerly SkyDrive)</ulink> </listitem>
<listitem><ulink url="OdsBriefcaseFolders">Manage different Briefcase type folders in Briefcase</ulink> </listitem>
<listitem><ulink url="OdsBriefcase">ODS-Briefcase</ulink> </listitem>
<listitem><ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSponger">Virtuoso Sponger</ulink> </listitem>
<listitem><ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSpongerCartridgeSupportedDataSources">OpenLink-supplied Virtuoso Sponger Cartridges</ulink> </listitem>
<listitem><ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSpongerCartridgeSupportedDataSourcesMeta">Supported Meta Cartridges in Virtuoso</ulink> </listitem>
<listitem><ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSpongerCartridgeSupportedDataSourcesMetaREST">Meta Cartridges Usage via REST Request</ulink> </listitem>
<listitem><ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSpongerCartridgeSupportedDataSourcesMetaRESTExamples">Parameterized Examples of Meta Cartridge Usage via REST Request</ulink></listitem>
</itemizedlist></section></docbook>