TSSlade / google-refine

Automatically exported from code.google.com/p/google-refine
Other
0 stars 0 forks source link

RDF export based on a dialog to define schema similar to the one used fro Freebase alignment #108

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, Richard Cyganiak and I (Fadi Maali) have an initial implementation of RDF 
export. It is packaged as butterfly extension but also we had to edit some of 
the existing files. I am attaching a patch. would be very glad if interested 
people have a look at it.
In addition to the patch the set of attached JARs should also be added to 
webapp/WEB-INF/lib

I also attached a text file describing the purpose of changed files and jars.

the schema design is under Schema menu, the export under Project > Export 
Filtered Rows

The code is kind of stable and working, some enhancements are still missed. 
would be very glad to hear whether you find that useful or not.

thanks

Original issue reported on code.google.com by fadima...@gmail.com on 2 Jul 2010 at 7:26

Attachments:

GoogleCodeExporter commented 8 years ago
Richard & Fadi, thank you! That looks exciting! I'll try to incorporate your 
patch in very soon.

Original comment by dfhu...@gmail.com on 3 Jul 2010 at 3:59

GoogleCodeExporter commented 8 years ago
Fadi, could you just zip your extension's directory and attach it here? It'd be 
easier for me. Thanks!

Original comment by dfhu...@gmail.com on 3 Jul 2010 at 4:02

GoogleCodeExporter commented 8 years ago
Hi David, 
thanks for your response.
I attach the extension. I also attach a patch file containing changes to the 
core files without the newly created ones which are under the extension (not 
sure if needed but the code won't compile without modifying the core classes. I 
am not sure if this is a good way for the extension but I could not figure out 
a better way, for example, to add an option to the menu or to add a reference 
to the Project class to the RDFSchema I had to edit menu-bar.js and 
Project.java).

Thanks

Original comment by fadima...@gmail.com on 3 Jul 2010 at 2:02

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, Fadi. A few more details please: could you tell me the versions and 
licenses of the jars? URLs to them would be great. Thanks.

By the way, I might have to take the member variable "schema" out of Project in 
favor of something more generic. (As it currently is, the core of Gridworks 
depends on the extension rdf-exporter, which is not right.)

Original comment by dfhu...@gmail.com on 4 Jul 2010 at 5:59

GoogleCodeExporter commented 8 years ago
Hi,
Here is a list of the Jars:
1. Jena (2.6.0) http://jena.sourceforge.net/license.html
2. ARQ  (2.7.0) http://jena.sourceforge.net/ARQ/license.html
3. iri  (0.6) http://jena.sourceforge.net/iri/index.html 
http://jena.sourceforge.net/iri/license.html
4. lucene (3.0.1) http://www.apache.org/dyn/closer.cgi/lucene/java/  Apache 
License, Version 2.0. (http://www.apache.org/licenses/LICENSE-2.0)
5. xercesImpl (2.7.1) http://xerces.apache.org/

Thanks.

Original comment by fadima...@gmail.com on 6 Jul 2010 at 10:20

GoogleCodeExporter commented 8 years ago
Thanks, Fadi. I've checked it in as of r1077. The core code base is not 
depending on the extension. The extension registers various things on init in 
its controller.js. I'll clean up these registration interfaces later.

Could you check out the latest code and test it? You might want to have a 
completely fresh checkout.

Original comment by dfhu...@gmail.com on 6 Jul 2010 at 10:34

GoogleCodeExporter commented 8 years ago
r1080 doesn't build as rdf-exporter is not part of the extensions build.xml 
file, and the classpath is not referring to version 26 of butterfly-trunk.

Attached is a patch for adding rdf-exporter to the extensions build.xml and 
referring to the correct butterfly library.  However *this patch doesn't build* 
either due to java compilation errors -> complains it can't find the class 
javax.servlet.ServletException to import.

David, could you have a look? I think it's a build file thing. (hoping it's not 
another ghost in my build system)

Original comment by iainsproat on 7 Jul 2010 at 3:28

Attachments:

GoogleCodeExporter commented 8 years ago
build file fixed by r1082.

Original comment by dfhu...@gmail.com on 7 Jul 2010 at 8:36

GoogleCodeExporter commented 8 years ago
When trying to use the history entry for "Save RDF Schema Skeleton" of a saved 
project I got a ClassNotFoundException. The class loader is unable to load 
com.metaweb.gridworks.rdf.operations.SaveRdfSchemaOperation$RdfSchemaChange

This just happen after changing the RDF skeleton and restarting the server so 
classes need to be loaded from the history serialization.

I tried to dig into the problem a little and it looks that this class is not 
part of the core (it is one of the extension's classes) thus it is not on the 
classpath (not included by $GRIDWORKS_CLASSES_DIR$ in gridworks shell file).

Copying the classes and libs of the RDF-export extension to folders under 
WEB-INF solves the problem (but may be not a desired thing to have the 
extension mixed with the core)

thanks

Original comment by fadima...@gmail.com on 2 Aug 2010 at 7:06

GoogleCodeExporter commented 8 years ago
We're aware of the issues with the extension mechanism. I'll be working on it 
this week. Sorry about the delay but the Metaweb->Google migration is getting 
in the way of doing actual work.

Original comment by stefa...@google.com on 2 Aug 2010 at 7:15

GoogleCodeExporter commented 8 years ago
This should be fixed now, re-open if you still see problems.

Original comment by stefa...@google.com on 31 Aug 2010 at 6:05

GoogleCodeExporter commented 8 years ago

Original comment by tfmorris on 18 Sep 2012 at 2:58