<docbook><section><title>OdsBriefcaseBoxNet</title><para> </para>
<title> Using ODS-Briefcase to mediate access to data stored on Box (box.com a/k/a box.net)</title> Using ODS-Briefcase to mediate access to data stored on Box (box.com a/k/a box.net)
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Introduction</bridgehead>
 Box is an online file system service that enables users to share, store, and access files of any type from anywhere.<para>Box file storage offers users a number of features:</para>
<itemizedlist mark="bullet" spacing="compact"><listitem>Share, access, and collaborate on files of any type from anywhere and any device </listitem>
<listitem>Have complete control and access to your data including establishing permissions, and adding or removing collaborators </listitem>
<listitem>Data files are secure on Enterprise-grade servers, in multiple, geographically-separated facilities </listitem>
<listitem>All data requests pass through an audited verification code to ensure user authorization </listitem>
<listitem>Optional 256-bit Secured Socket Layer (SSL) security to encrypt data between the end user and Box </listitem>
<listitem>Ideal for remote access to your important files from multiple computers, any time and anywhere </listitem>
<listitem>Compatible with all major browsers and operating systems including both Windows and Mac </listitem>
<listitem>Free online storage: allows 5GB of free online storage</listitem>
</itemizedlist><para>ODS-Briefcase offers a new &quot;Box&quot; folder type which provides several additional features, once ODS has been configured to use a registered Box API key:</para>
<itemizedlist mark="bullet" spacing="compact"><listitem>Specify credentials for authentication against Box, 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 Box data </listitem>
<listitem>Save fetched data, metadata, and Sponger output, into a newly created Box-specific RDF Graph in the Virtuoso RDF Quad Store </listitem>
<listitem>Specify other ODS Users or WebID ACLs which should be granted access to your Box 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 Box API key in ODS, to retrieving all Box 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.box.com/">Box user account</ulink> </listitem>
<listitem>Files and folders (data) stored in your <ulink url="https://www.box.com/">Box 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 Box API key for use with ODS-Briefcase</bridgehead>
<emphasis>Note that at present, each Virtuoso + ODS instance can only be configured with a single Box API key, which will then be used by all ODS-Briefcase users when targeting Box from that instance.
 Box may impose limitations on this key&#39;s use.
 Such limitations are outside the scope of OpenLink or Virtuoso control.</emphasis><orderedlist spacing="compact"><listitem>Browse to &lt;<ulink url="https://www.box.com/developers/services/edit/">https://www.box.com/developers/services/edit/</ulink>&gt;, and enter your Box user credentials: <ulink url="OdsBriefcaseBoxNet/step1-1.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step1-1.png" /></figure></ulink> </listitem>
<listitem>Enter a name for your Box client application (i.e., your ODS-Briefcase instance) to be known by, e.g., &quot;MyExampleBox&quot;: <ulink url="OdsBriefcaseBoxNet/step1-2.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step1-2.png" /></figure></ulink> </listitem>
<listitem>Click the <emphasis>Create App</emphasis> button.
</listitem>
<listitem>You will be shown an API key for the newly registered application.
 (You can copy the API key now, or come back for it later; it will also show up on the &quot;Edit&quot; page.
 Do be aware that you will need this key in the steps that follow.)  Click <emphasis>Edit this application</emphasis>.
<ulink url="OdsBriefcaseBoxNet/step1-3.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step1-3.png" /></figure></ulink> </listitem>
<listitem>In the edit form, set the <emphasis>Redirect url</emphasis> to target the Box interface (access_box.vsp, by default) on your Virtuoso + ODS instance, http://&lt;cname&gt;[:&lt;port&gt;]/ods, e.g., &lt;<ulink url="http://example.com/ods/access_box.vsp">http://example.com/ods/access_box.vsp</ulink>&gt;, and click <emphasis>Save service</emphasis>.
<ulink url="OdsBriefcaseBoxNet/step1-4.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step1-4.png" /></figure></ulink></listitem>
</orderedlist><bridgehead class="http://www.w3.org/1999/xhtml:h4"> 2 - Configure ODS to use your Box API key</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="OdsBriefcaseBoxNet/step2-1.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step2-1.png" /></figure></ulink> </listitem>
<listitem>Log in as a Virtuoso+ODS user with Administrator privileges, e.g., dba.
<ulink url="OdsBriefcaseBoxNet/step2-2.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step2-2.png" /></figure></ulink> </listitem>
<listitem>Click on <emphasis>Site Settings</emphasis>: <ulink url="OdsBriefcaseBoxNet/step2-3.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step2-3.png" /></figure></ulink> </listitem>
<listitem>Click on <emphasis>Login Authentication Keys</emphasis>: <ulink url="OdsBriefcaseBoxNet/step2-4.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step2-4.png" /></figure></ulink> </listitem>
<listitem>Select <emphasis>Box API</emphasis> in the <emphasis>API Name</emphasis> menu, provide the Box API Key you got when you registered the application with Box, and click <emphasis>Add</emphasis>.
<ulink url="OdsBriefcaseBoxNet/step2-5.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step2-5.png" /></figure></ulink> </listitem>
<listitem>ODS-Briefcase is now configured to use the Box API.
<ulink url="OdsBriefcaseBoxNet/step2-6.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step2-6.png" /></figure></ulink></listitem>
</orderedlist><bridgehead class="http://www.w3.org/1999/xhtml:h4"> 3 - Access files stored on Box 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="OdsBriefcaseBoxNet/step3-01.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-01.png" /></figure></ulink> </listitem>
<listitem>Log in as a Virtuoso+ODS user with normal privileges, e.g., demo.
<ulink url="OdsBriefcaseBoxNet/step3-02.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-02.png" /></figure></ulink> </listitem>
<listitem>Click to the <emphasis>ODS-Briefcase</emphasis> application: <ulink url="OdsBriefcaseBoxNet/step3-03.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-03.png" /></figure></ulink> </listitem>
<listitem>Click <emphasis>New Folder</emphasis> from the main Briefcase control strip: <ulink url="OdsBriefcaseBoxNet/step3-04.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-04.png" /></figure></ulink> </listitem>
<listitem>In the New Folder form, specify a <emphasis>Folder Name</emphasis>, e.g., <emphasis>MyBoxFolder</emphasis>, and set the <emphasis>Folder type</emphasis> to <emphasis>Box Net</emphasis>: <ulink url="OdsBriefcaseBoxNet/step3-05.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-05.png" /></figure></ulink> </listitem>
<listitem>Click to the newly visible <emphasis>Box Net</emphasis> tab: <ulink url="OdsBriefcaseBoxNet/step3-06.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-06.png" /></figure></ulink> </listitem>
<listitem>All RDF data extracted from and otherwise collected about your Box 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/MyBoxFolder#this">http://example.com/ods/demo/MyBoxFolder#this</ulink>&gt;.
 Expert users may wish to change this graph name, but the default is suitable for most users.
<ulink url="OdsBriefcaseBoxNet/step3-07.png"><figure><graphic fileref="OdsBriefcaseBoxNet/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 Box 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 Box.
 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 Box: <ulink url="OdsBriefcaseBoxNet/step3-08.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-08.png" /></figure></ulink> </listitem>
<listitem>You&#39;ll be prompted to enter your Box user&#39;s credentials.
 Note that this Box user need not be the application owner/&quot;developer&quot; who got the API key earlier.
<ulink url="OdsBriefcaseBoxNet/step3-09.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-09.png" /></figure></ulink> </listitem>
<listitem>Box will confirm that ODS has been authorized, and you can close that browser window/tab.
<ulink url="OdsBriefcaseBoxNet/step3-10.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-10.png" /></figure></ulink> </listitem>
<listitem>Now click <emphasis>Create</emphasis> to finish the process.
<ulink url="OdsBriefcaseBoxNet/step3-11.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-11.png" /></figure></ulink> </listitem>
<listitem>Your new Box-linked folder should now be displayed in your Briefcase resources list: <ulink url="OdsBriefcaseBoxNet/step3-12.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-12.png" /></figure></ulink> </listitem>
<listitem>Click the folder name to see the resources ODS-Briefcase has found in your Box Dataspace: <ulink url="OdsBriefcaseBoxNet/step3-13.png"><figure><graphic fileref="OdsBriefcaseBoxNet/step3-13.png" /></figure></ulink></listitem>
</orderedlist><para> </para>
<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="OdsBriefcaseDropBox">Using ODS-Briefcase to mediate access to data stored on DropBox</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>