Git Product home page Git Product logo

dbpedia-extension's Introduction

This project is an extension for Google Refine and provides easy way to add columns from DBpedia to reconciled data (columns).

Data has to be reconciled with DBpedia or SPARQL endpoint, which returns DBpedia resource types.

INSTALL

1. Before installing this extension download Google Refine code from http://code.google.com/p/google-refine/source/checkout. 

2. Pull this extension's code into folder dbpedia-extension under folder /extensions. 
For more information on how to write a Google Refine extensions and where to put the files see http://code.google.com/p/google-refine/wiki/WriteAnExtension

The folder structure should resemble this:
grefine-all/
----------/extensions
--------------/dbpedia-extension
------------------/module
------------------/src
------------------build.xml
------------------README (this file)

3. Update build.xml in folder /extensions with build and clean ant tasks for dbpedia-extension:

<project name="google-refine-extensions" default="build" basedir=".">
    <target name="build">
        <echo message="Building extensions" />
        <ant dir="sample/" target="build" />
        <ant dir="jython/" target="build" />
        <ant dir="freebase/" target="build" />
        <ant dir="gdata/" target="build" />
        <ant dir="dbpedia-extension/" target="build" />
    </target>
    
    <target name="clean">
        <echo message="cleaning extensions" />
        <ant dir="sample/" target="clean" />
        <ant dir="jython/" target="clean" />
        <ant dir="freebase/" target="clean" />
        <ant dir="gdata/" target="clean" />
        <ant dir="dbpedia-extension/" target="clean" />
    </target>
</project>

4. If using Eclipse, make sure that you build project with ant

dbpedia-extension's People

Contributors

sparkica avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dbpedia-extension's Issues

DBpedia Countries

For some of the datasets I can see the dbo:Country, but for others I can not see. What is the problem?
I add DBpedia sparql Endpoint with Virtuoso to RDF extension.

HTTP 500: Can't find method com.google.refine.RefineServlet.cacheClass(object)

Using Google Refine 2.5 (and 2.0) Mac binary, and installing dbpedia-extension at /Users/me/Library/Application Support/Google/Refine/extensions with git clone https://github.com/sparkica/dbpedia-extension.git, loading http://localhost:3333/ reported:

HTTP ERROR 500

Problem accessing /. Reason:

    Butterfly Error
Butterfly incurred in the following errors while initializing:
java.lang.Exception: Failed to initialize module dbpedia-extension [edu.mit.simile.butterfly.ButterflyModuleImpl]
    at edu.mit.simile.butterfly.Butterfly.initializeModule(Butterfly.java:478)
    at edu.mit.simile.butterfly.Butterfly.configure(Butterfly.java:451)
    at edu.mit.simile.butterfly.Butterfly.init(Butterfly.java:308)
    at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
    at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
    at com.google.refine.RefineServer.configure(Refine.java:284)
    at com.google.refine.RefineServer.init(Refine.java:198)
    at com.google.refine.Refine.init(Refine.java:113)
    at com.google.refine.Refine.main(Refine.java:107)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
    at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
    at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
Caused by: org.mozilla.javascript.EvaluatorException: Can't find method com.google.refine.RefineServlet.cacheClass(object). (file:/Users/me/Library/Application%20Support/Google/Refine/extensions/dbpedia-extension/module/MOD-INF/controller.js#62)
    at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:938)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:994)
    at org.mozilla.javascript.Context.reportRuntimeError1(Context.java:957)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:166)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
    at org.mozilla.javascript.gen.c4._c1(file:/Users/me/Library/Application%20Support/Google/Refine/extensions/dbpedia-extension/module/MOD-INF/controller.js:62)
    at org.mozilla.javascript.gen.c4.call(file:/Users/me/Library/Application%20Support/Google/Refine/extensions/dbpedia-extension/module/MOD-INF/controller.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    at org.mozilla.javascript.gen.c4.call(file:/Users/me/Library/Application%20Support/Google/Refine/extensions/dbpedia-extension/module/MOD-INF/controller.js)
    at edu.mit.simile.butterfly.ButterflyModuleImpl.scriptInit(ButterflyModuleImpl.java:636)
    at edu.mit.simile.butterfly.ButterflyModuleImpl.init(ButterflyModuleImpl.java:94)
    at edu.mit.simile.butterfly.Butterfly.initializeModule(Butterfly.java:476)
    ... 15 more

installing extension doesn't expose DBpedia choice

I've added this extension to a clone of OpenRefine 2.8 according to the README, and performed an ant build. The console reports "BUILD SUCCESSFUL" but there are two project errors (below) and when I run OpenRefine, access to DBpedia reconciliation is not an option, or evident anywhere I can see. Any ideas?

'The declared package "com.google.refine.tests.model" does not match the expected package "com.google.refine.tests.browsing.facets"'
also
'The declared package "com.google.refine.tests.model" does not match the expected package "com.google.refine.tests.operations.cell"'

HTTP 500 when accessing OpenRefine

Hello,

I tried installing the extension against a clean clone of OpenRefines's git repository, I added the build and clean section to build.xml as instructed, refine starts correctly but when trying to access and page it gives the following

Problem accessing /project. Reason:

    Butterfly Error
Butterfly incurred in the following errors while initializing:
java.lang.Exception: Failed to initialize module dbpedia-extension [edu.mit.simile.butterfly.ButterflyModuleImpl]
    at edu.mit.simile.butterfly.Butterfly.initializeModule(Butterfly.java:478)
    at edu.mit.simile.butterfly.Butterfly.configure(Butterfly.java:451)
    at edu.mit.simile.butterfly.Butterfly.init(Butterfly.java:308)
    at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
    at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
    at com.google.refine.RefineServer.configure(Refine.java:286)
    at com.google.refine.RefineServer.init(Refine.java:200)
    at com.google.refine.Refine.init(Refine.java:113)
    at com.google.refine.Refine.main(Refine.java:107)
Caused by: org.mozilla.javascript.EvaluatorException: Can't find method com.google.refine.RefineServlet.cacheClass(object). (file:/Users/zaid/Sites/OpenRefine/main/webapp/../../extensions/dbpedia-extension/module/MOD-INF/controller.js#64)
    at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:938)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:994)
    at org.mozilla.javascript.Context.reportRuntimeError1(Context.java:957)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:166)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
    at org.mozilla.javascript.gen.c6._c1(file:/Users/zaid/Sites/OpenRefine/main/webapp/../../extensions/dbpedia-extension/module/MOD-INF/controller.js:64)
    at org.mozilla.javascript.gen.c6.call(file:/Users/zaid/Sites/OpenRefine/main/webapp/../../extensions/dbpedia-extension/module/MOD-INF/controller.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    at org.mozilla.javascript.gen.c6.call(file:/Users/zaid/Sites/OpenRefine/main/webapp/../../extensions/dbpedia-extension/module/MOD-INF/controller.js)
    at edu.mit.simile.butterfly.ButterflyModuleImpl.scriptInit(ButterflyModuleImpl.java:636)
    at edu.mit.simile.butterfly.ButterflyModuleImpl.init(ButterflyModuleImpl.java:94)
    at edu.mit.simile.butterfly.Butterfly.initializeModule(Butterfly.java:476)
    ... 8 more

I'd fix it myself but I'm a java noob, got any hints?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.