Created new issue.

- Troy.

On Thursday, January 16, 2014 8:27:09 PM UTC+5:30, Lvc@ wrote:
>
> Hi Troy,
> the round trip would be renaming the property name LEVEL on each 
> properties of XML entries to "label" or "@class". It should work ;-)
>
> Lvc@
>
>
> On 16 January 2014 15:39, troy white <troywh...@gmail.com <javascript:>>wrote:
>
>> Hey I am sorry,
>>
>> I thought that implementation was available. I didn't you see your 
>> message properly..I am just bewildered.
>> If such thing is available from api, it would be great for us.
>>
>> -Troy white.
>>
>> On Thursday, January 16, 2014 8:03:41 PM UTC+5:30, troy white wrote:
>>>
>>> Hey Luca,
>>>
>>> This is a show stop for our further implementation. 
>>>
>>> That workaround may not be suitable to our architecture. But still let 
>>> me throw a try. I believe that has to be done from gremlin console, don't I 
>>> ? We would want it to happen at run time.
>>>
>>> 'll open a new issue. 
>>>
>>> -Troy White. 
>>>
>>> On Thursday, January 16, 2014 7:31:31 PM UTC+5:30, Lvc@ wrote:
>>>>
>>>> Hi,
>>>> gotcha! We haven't special settings to tell to OrientDB the 
>>>> schema-mapping. It would be cool having something like:
>>>>
>>>> gremlin> g = new OrientGraph("local:/temp/newdb");
>>>> gremlin> g.loadGraphML("/temp/export.xml"*, "{ 
>>>> 'bindVertexClassToProperty' : 'LEVEL' }"*);
>>>>
>>>> Where last parameter is a map/json for special settings like this. In 
>>>> this way OrientDB could use that property as class. Could you open a new 
>>>> issue?
>>>>
>>>> Lvc@
>>>>
>>>>  
>>>>
>>>> On 16 January 2014 14:46, troy white <troywh...@gmail.com> wrote:
>>>>
>>>>> Luca,
>>>>>
>>>>> Import the exported database
>>>>>
>>>>> gremlin> g = new 
>>>>> OrientGraph("local:/temp/newdb");==>orientgraph[local:/temp/newdb]gremlin>
>>>>>  g.loadGraphML("/temp/export.xml");==>nullgremlin>
>>>>>
>>>>> This does importing of graphml data into a specific DB, not into a 
>>>>> specific schema.
>>>>>
>>>>> We are holding 4 schema s under *V *in our project,
>>>>>
>>>>> *OFFICE*
>>>>> *SYSTEM*
>>>>> *SHELF*
>>>>> *CARD*.
>>>>>
>>>>> When system related information comes, the associated GraphML file 
>>>>> (with well-defined properties and default values) should be loaded into 
>>>>> *SYSTEM 
>>>>> *schema and data should be modified on the fly.
>>>>>
>>>>> The existent architecture in our domain is dumping all data into *V* . 
>>>>> We would like to avoid that now ..(Problem with this,querying is taking 
>>>>> more time against 50K vertices. For SELECT FROM V WHERE LEVEL='OFFICE' is 
>>>>> taking 1.5 sec to 2.0 sec)
>>>>>
>>>>>                       try {
>>>>>
>>>>> reader = new GraphMLReader(graph);
>>>>> //load the template graphml
>>>>>  String filename = "";
>>>>> //load the template graphml
>>>>> if(object.getChildCount()<0)
>>>>>  {
>>>>> filename = DEFAULT_DEVICE_FILE+"/"+type+"/"+object.getClass().
>>>>> getSimpleName()+".graphml";
>>>>>  }
>>>>> else
>>>>> {
>>>>> filename = DEFAULT_DEVICE_FILE+"/"+type+"/"+object.getClass().
>>>>> getSimpleName()+object.getChildCount()+".graphml";
>>>>>  }
>>>>> reader.inputGraph(filename);       //reader.inputGraph(filename, 
>>>>> schema); If this sort of method available then we will be home.
>>>>>
>>>>>                         }catch(Exception e)
>>>>>                         {
>>>>>                               //handle exception here.
>>>>>                         }
>>>>>
>>>>> Am I making sense now ? 
>>>>>
>>>>>
>>>>> - Troy White.
>>>>>  
>>>>> On Thursday, January 16, 2014 6:27:10 PM UTC+5:30, Lvc@ wrote:
>>>>>
>>>>>> Hi Troy,
>>>>>> look at: https://github.com/orientechnologies/orientdb/wiki/
>>>>>> Migration-from-1.3.x-to-1.4.x#import-the-exported-database
>>>>>>
>>>>>> Lvc@
>>>>>>
>>>>>>
>>>>>> On 16 January 2014 13:32, troy white <troywh...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Luca and all,
>>>>>>>
>>>>>>> Is there any way to load the graphml file into a specific schema 
>>>>>>> (under Graph DB)  using GraphMLReader (provided by blueprints) ?
>>>>>>>
>>>>>>> We don't see any support from blueprints api.
>>>>>>>
>>>>>>> Can any one show us the way ? 
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Troy White.
>>>>>>>
>>>>>>>
>>>>>>>  -- 
>>>>>>>  
>>>>>>> --- 
>>>>>>> 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 orient-databa...@googlegroups.com.
>>>>>>>
>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>
>>>>>>
>>>>>>  -- 
>>>>>  
>>>>> --- 
>>>>> 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 orient-databa...@googlegroups.com.
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>
>>>>  -- 
>>  
>> --- 
>> 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 orient-databa...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 

--- 
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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to