sparkica / dbpedia-extension Goto Github PK
View Code? Open in Web Editor NEWGoogle Refine extension for adding columns (extending data) from DBpedia
Google Refine extension for adding columns (extending data) from DBpedia
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
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.
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
DBpedia.org sparql endpoint often times out. Add option to select alternative DBpedia endpoints, e.g. DBpedia Live.
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"'
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.