For others trying to get a GraphML export from orientdb, I wrote a quick n 
dirty nodejs tool that will convert orientdb's JSON export format to 
GraphML. https://github.com/lukeasrodgers/odb2graphml 

Handy if you aren't familiar with Java.

On Thursday, May 24, 2012 at 2:29:24 AM UTC-4, Pierre De Wilde wrote:
>
> Hi,
>
> Have you tried with the last official release?
>
>
> http://code.google.com/p/orient/downloads/detail?name=orientdb-graphed-1.0.1.zip
>
> HTH,
> Pierre
>
> On Thu, May 24, 2012 at 8:21 AM, aye nwe thaing <[email protected] 
> <javascript:>> wrote:
>
>> Hi Dear all,
>>
>> I try to code to export graph to XML file.
>>
>> import java.io.FileInputStream;
>> import java.io.FileNotFoundException;
>> import java.io.FileOutputStream;
>>
>> import javax.xml.stream.XMLStreamException;
>>
>> import com.tinkerpop.blueprints.pgm.impls.orientdb.OrientGraph;
>> import com.tinkerpop.blueprints.pgm.util.graphml.GraphMLReader;
>> import com.tinkerpop.blueprints.pgm.util.graphml.GraphMLWriter;
>>
>> public class TestLoadGraph {
>>     public static void main(String[] args) throws Exception {
>>     OrientGraph g = new 
>> OrientGraph("local:C:/orientdb-graphed-1.0rc8/databases/Test_3");
>>     GraphMLReader.inputGraph(g, new FileInputStream(
>>     "C:/orientdb-graphed-1.0rc8/data/Test_3.xml"));
>>     g.shutdown();
>>
>>     g = new 
>> OrientGraph("local:C:/orientdb-graphed-1.0rc8/databases/Test_3");
>>     FileOutputStream fo = new 
>> FileOutputStream("C:/orientdb-graphed-1.0rc8/data/Test_5.xml");
>>     GraphMLWriter.outputGraph(g, fo);
>>     g.shutdown();
>>
>>     }
>>     }
>>
>> But the following error occurs. How can i solve this problem? 
>>
>> Exception in thread "main" java.lang.NoSuchMethodError: 
>> com.orientechnologies.orient.core.record.impl.ODocument.fieldNames()Ljava/util/Set;
>>     at 
>> com.tinkerpop.blueprints.pgm.impls.orientdb.OrientElement.getPropertyKeys(OrientElement.java:96)
>>     at 
>> com.tinkerpop.blueprints.pgm.impls.orientdb.OrientVertex.getPropertyKeys(OrientVertex.java:60)
>>     at 
>> com.tinkerpop.blueprints.pgm.util.graphml.GraphMLWriter.outputGraph(GraphMLWriter.java:76)
>>     at 
>> com.tinkerpop.blueprints.pgm.util.graphml.GraphMLWriter.outputGraph(GraphMLWriter.java:250)
>>     at TestLoadGraph.main(TestLoadGraph.java:20)
>>
>> Thanks,
>>
>> -- 
>> [image: x_3c103edc]
>>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to