-
Notifications
You must be signed in to change notification settings - Fork 2
fatschi/FreebaseCrawl
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
<!DOCTYPE html>
<html>
<head>
<title>Command Line Freebase Search Sample</title>
<meta charset="utf-8" />
<style type="text/css" media="screen">
body {
padding: 2em;
width: 800px;
font-family: helvetica, arial, sans-serif;
}
code {
color: green;
}
</style>
</head>
<body>
<h1>Command Line Freebase Search Sample Instructions</h1>
<div>
<p>
A starter application has been generated for you.
</p>
<ol>
<li>Install <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">Java Platform (JDK 6 or higher)</a>.</li>
<li>Install <a href="http://maven.apache.org/download.html">Maven (3.1.0 or higher)</a>. You may need to set your <code>JAVA_HOME</code>.</li>
<li><a href='https://developers.google.com/qs/c/gen?api=freebase&apikey=AIzaSyB2rARUGp8xWNQ5p_U4Yh1Xxs_e-dR9Cws&client_secret_url=https%3A%2F%2Fcode.google.com%2Fapis%2Fquick%2Fclient-secrets%3Fproject%3D342727898535%26client%3D342727898535.apps.googleusercontent.com%26xsrf%3DAL254vT1wq5XNGpXYDdhbwy_sgc1U5BRuw%3A1400752483828&key=Ys7ZrMJ-DpMHQPstDtLbPYky9EY6MTQwMDc1MjQ0MTUxMjY5NzY3MQ%3D%3D&lang_plat=java_cmdline_skeleton&project=342727898535&version=v1'>Download the starter application</a> and unzip it.</li>
<li>Open a terminal, change to the <code>freebase-cmd-line-sample</code> directory you just unzipped, and execute:
<pre>
mvn compile
mvn -q exec:java
</pre>
This will compile and run your starter application in the command line.
</li>
</ol>
<p>Congratulations, you are up and running! At this point you will want to add
calls into the Freebase Search to the
<code>/src/main/java/com/google/api/services/samples/freebase/cmdline/FreebaseSample.java</code> file.
Please read the file carefully, it contains detailed information in
the comments.
<p>To enable logging of HTTP requests and responses (highly recommended
when debugging), please take a look at the <code>logging.properties</code> file.</p>
<p>For more information on the Freebase Search Java library surface you can visit: </p>
<blockquote>
<p>
<a target=_blank
href='https://developers.google.com/resources/api-libraries/documentation/freebase/v1/java/latest/'>
https://develpers.google.com/resources/api-libraries/documentation/freebase/v1/java/latest/</a>
</p>
</blockquote>
<p>
Also check out the <a
target=_blank
href='https://code.google.com/p/google-api-java-client/wiki/DeveloperGuide'>
Java Client Library documentation</a>, and get more information on the
Freebase Search at:
</p>
<blockquote>
<p>
<a target=_blank
href='https://developers.google.com/freebase/'>https://developers.google.com/freebase/</a>
</p>
</blockquote>
<h3>Setup Project in Eclipse</h3>
<p>
<b>Prerequisites:</b> install <a href="http://www.eclipse.org/downloads/">Eclipse</a>,
and the
<a href="http://eclipse.org/m2e/download/">Maven
plugin</a>.
</p>
<ul>
<li>Setup Eclipse Preferences
<ul>
<li>Window > Preferences... (or on Mac, Eclipse >
Preferences...)</li>
<li>Select Maven
<ul>
<li>check on "Download Artifact Sources"</li>
<li>check on "Download Artifact JavaDoc"</li>
</ul>
</li>
</ul>
</li>
<li>Import <code>freebase-cmd-line-sample</code> project
<ul>
<li>File > Import...</li>
<li>Select "General > Existing Project into Workspace" and click
"Next"</li>
<li>Click "Browse" next to "Select root directory", find
<code>freebase-cmdline-sample</code> and click "Next"
</li>
<li>Click "Finish"</li>
</ul>
</li>
<li>Run
<ul>
<li>Right-click on project freebase-cmd-line-sample</li>
<li>Run As > Java Application</li>
<li>If asked, type "FreebaseSample" and click OK</li>
</ul>
</li>
</ul>
</div>
</body>
</html>
About
Crawl of Freebase entities
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published