graphaware / neo4j-php-response-formatter

Advanced Neo4j Http Response Formatter Extension for NeoClient
MIT License
1 stars 0 forks source link

Formatter code is not working with neo4jPHP client #1

Open bukharilab opened 6 years ago

bukharilab commented 6 years ago

@ikwattro I am trying to format (tabular format) the response that I am getting from neo4jphp-client https://github.com/graphaware/neo4j-php-client. I am following the code available here https://github.com/graphaware/neo4j-php-response-formatter. I am getting error that >enableNewFormattingService() is not defined.. It seems this patch is not compatible with https://github.com/graphaware/neo4j-php-client. Do you have any example that works with neo4jphp-clint?

ikwattro commented 6 years ago

Hi Ahmad,

this library was made for the neoxygen php client which isnt supported for about two years now, and thus has no compatibility with the current neo4j php client.

that said, mainly what is in this lib is already in the graphaware php client

On Thu, 11 Jan 2018 at 20:30, Ahmad Syed notifications@github.com wrote:

@ikwattro https://github.com/ikwattro I am trying to format (tabular format) the response that I am getting from neo4jphp-client https://github.com/graphaware/neo4j-php-client. I am following the code available here https://github.com/graphaware/neo4j-php-response-formatter. I am getting error that >enableNewFormattingService() is not defined.. It seems this patch is not compatible with https://github.com/graphaware/neo4j-php-client. Do you have any example that works with neo4jphp-clint.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/graphaware/neo4j-php-response-formatter/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKleRAZTw34GphdcCXSefseDHmU-XDLks5tJmFPgaJpZM4RbVQQ .

-- Christophe Willemsen | Graph Aware Limited

Phone: +44 (0) 333 444 7274 <javascript:void(0);> | Mobile: +32 (0) 489 687 208 <javascript:void(0);> christophe@graphaware.com | @graph_aware | www.graphaware.com

bukharilab commented 6 years ago

@ikwattro Thanks for quick response. Do you have any example with graphware? I would like to format output in tabular (dynamic tabular) format?

ikwattro commented 6 years ago

The default is tabular data, everything is in the readme.

On Thu, 11 Jan 2018 at 20:36, Ahmad Syed notifications@github.com wrote:

@ikwattro https://github.com/ikwattro Thanks for quick response. Do you have any example with graphware? I would like to format output in tabular (dynamic tabular) format?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/graphaware/neo4j-php-response-formatter/issues/1#issuecomment-357037347, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKleQsS1kwBZVYgaDcvsp2d2qbFJGjuks5tJmLDgaJpZM4RbVQQ .

-- Christophe Willemsen | Graph Aware Limited

Phone: +44 (0) 333 444 7274 <javascript:void(0);> | Mobile: +32 (0) 489 687 208 <javascript:void(0);> christophe@graphaware.com | @graph_aware | www.graphaware.com

bukharilab commented 6 years ago

Thanks again for reply. I am filling the example mentioned in read me.. I am getting results as following.. not tabular formatted

GraphAware\Neo4j\Client\Formatter\RecordView Object ( [keys:protected] => Array ( [0] => s1.accession [1] => s1.age [2] => e1.accession [3] => e1.timepoint [4] => r1.virus_strain [5] => r1.value [6] => e2.accession [7] => e2.timepoint [8] => r2.virus_strain [9] => r2.value ) [values:protected] => Array ( [0] => SUB120417 [1] => 78 [2] => ES736488 [3] => 0 [4] => A/Perth/16/2009 [5] => 8 [6] => ES736489 [7] => 28 [8] => A/Perth/16/2009 [9] => 16 ) [keyToIndexMap:GraphAware\Neo4j\Client\Formatter\RecordView:private] => Array ( [s1.accession] => 0 [s1.age] => 1 [e1.accession] => 2 [e1.timepoint] => 3 [r1.virus_strain] => 4 [r1.value] => 5 [e2.accession] => 6 [e2.timepoint] => 7 [r2.virus_strain] => 8 [r2.value] => 9 ) ) GraphAware\Neo4j\Client\Formatter\RecordView Object ( [keys:protected] => Array ( [0] => s1.accession [1] => s1.age [2] => e1.accession [3] => e1.timepoint [4] => r1.virus_strain [5] => r1.value [6] => e2.accession [7] => e2.timepoint [8] => r2.virus_strain [9] => r2.value ) [values:protected] => Array ( [0] => SUB120417 [1] => 78 [2] => ES736488 [3] => 0 [4] => A/California/7/2009 [5] => 64 [6] => ES736489 [7] => 28 [8] =>

On Jan 11, 2018, at 3:00 PM, Christophe Willemsen notifications@github.com wrote:

The default is tabular data, everything is in the readme.

On Thu, 11 Jan 2018 at 20:36, Ahmad Syed notifications@github.com wrote:

@ikwattro https://github.com/ikwattro Thanks for quick response. Do you have any example with graphware? I would like to format output in tabular (dynamic tabular) format?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/graphaware/neo4j-php-response-formatter/issues/1#issuecomment-357037347, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKleQsS1kwBZVYgaDcvsp2d2qbFJGjuks5tJmLDgaJpZM4RbVQQ .

-- Christophe Willemsen | Graph Aware Limited

Phone: +44 (0) 333 444 7274 <javascript:void(0);> | Mobile: +32 (0) 489 687 208 <javascript:void(0);> christophe@graphaware.com | @graph_aware | www.graphaware.com — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/graphaware/neo4j-php-response-formatter/issues/1#issuecomment-357044301, or mute the thread https://github.com/notifications/unsubscribe-auth/ABdgh3QH3LAutnb6VkAec5bk26685hpbks5tJmhJgaJpZM4RbVQQ.