Re: [Neo4j] Travers using curl
oops, sorry for the typo and thank you for the reply. I used the below syntax: curl -X POST -H Accept:application/json -H Content-Type:application/json -d '{order:breadth_first , uniqueness:node_global , return_filter:{body:position.endNode().getProperty('name').toLowerCase().contains('pepsi') , language:javascript} , max_depth:1 }' http://localhost:7474/db/data/node/0/traverse/node and curl -X POST -H Accept:application/json -H Content-Type:application/json -d '{order:breadth_first , uniqueness:node_global , return_filter:{body:position.endNode().getProperty('name', '').toLowerCase().contains('pepsi') , language:javascript} , max_depth:1 }' http://localhost:7474/db/data/node/0/traverse/node and both are producing same errors mentioned in original post. - Regards, Francois Kassis. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Travers-using-curl-tp3496892p3498909.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Unmanaged Extensions
Hi All, i was trying to deploy the unmanaged example and always i got Not Found error. neo4j.log: DEBUG WrapperSimpleAppMain org.apache.commons.configuration.ConfigurationUtils - ConfigurationUtils.locate(): base is /home/francois/Applications/neo4j-1.2/conf, name is neo4j-server.properties DEBUG WrapperSimpleAppMain org.apache.commons.configuration.ConfigurationUtils - Loading configuration from the path /home/francois/Applications/neo4j-1.2/conf/neo4j-server.properties WARN WrapperSimpleAppMain org.neo4j.server.configuration.Configurator - The specified file for database performance tuning properties [neo4j.properties] does not exist. INFO WrapperSimpleAppMain org.neo4j.server.database.Database - Creating database at /home/francois/neo4j/neo4j-database/neoentitydb WARN WrapperSimpleAppMain org.neo4j.server.database.Database - No database tuning properties set in the property file, using defaults. Please specify the performance properties file with org.neo4j.server.db.tuning.properties in the server properties file [conf/neo4j-server.properties]. INFO WrapperSimpleAppMain org.neo4j.server.NeoServer - Starting Neo Server on port [7474] INFO WrapperSimpleAppMain org.neo4j.server.NeoServer - Mounting webadmin at [webadmin-html] INFO WrapperSimpleAppMain org.neo4j.server.NeoServer - Mounting management API at [http://localhost:7474/db/manage/] INFO WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Adding JAXRS package [org.neo4j.server.webadmin.rest] at [/db/manage] INFO WrapperSimpleAppMain org.neo4j.server.NeoServer - Mounting REST API at [http://localhost:7474/db/data/] INFO WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Adding JAXRS package [org.neo4j.server.rest.web] at [/db/data] INFO WrapperSimpleAppMain org.neo4j.server.NeoServer - Mounting third-party JAX-RS package [org.mediasharks.unmanaged] at [/custom] DEBUG WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Unable to translate [/custom] to a relative URI in ensureRelativeUri(String mountPoint) INFO WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Adding JAXRS package [org.mediasharks.unmanaged] at [/custom] INFO WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Adding Redirector at [/] INFO WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Mounting static content at [/webadmin] from [webadmin-html] INFO WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Found [jar:file:/home/francois/Applications/neo4j-1.2/system/lib/neo4j-server-0.5-1.2-static-web.jar!/webadmin-html] INFO WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Mounting static content from [jar:file:/home/francois/Applications/neo4j-1.2/system/lib/neo4j-server-0.5-1.2-static-web.jar!/webadmin-html] at [/webadmin] INFO WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Mounting servlet at [/db/manage] INFO WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Mounting servlet at [/db/data] INFO WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Mounting servlet at [/] INFO WrapperSimpleAppMain org.neo4j.server.web.Jetty6WebServer - Mounting servlet at [/custom] wrapper.log: INFO | jvm 1| 2011/03/10 12:00:15 | Mar 10, 2011 12:00:15 PM com.sun.jersey.api.core.PackagesResourceConfig init INFO | jvm 1| 2011/03/10 12:00:15 | INFO: Scanning for root resource and provider classes in the packages: INFO | jvm 1| 2011/03/10 12:00:15 | org.mediasharks.unmanaged INFO | jvm 1| 2011/03/10 12:00:15 | Mar 10, 2011 12:00:15 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate INFO | jvm 1| 2011/03/10 12:00:15 | INFO: Initiating Jersey application, version 'Jersey: 1.4 09/11/2010 10:30 PM' INFO | jvm 1| 2011/03/10 12:00:15 | Mar 10, 2011 12:00:15 PM com.sun.jersey.server.impl.application.RootResourceUriRules INFO | jvm 1| 2011/03/10 12:00:15 | SEVERE: The ResourceConfig instance does not contain any root resource classes. INFO | jvm 1| 2011/03/10 12:00:15 | [/custom] : unavailable INFO | jvm 1| 2011/03/10 12:00:15 | com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes. INFO | jvm 1| 2011/03/10 12:00:15 | at com.sun.jersey.server.impl.application.RootResourceUriRules.(RootResourceUriRules.java:103) INFO | jvm 1| 2011/03/10 12:00:15 | at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1182) INFO | jvm 1| 2011/03/10 12:00:15 | at com.sun.jersey.server.impl.application.WebApplicationImpl.access$600(WebApplicationImpl.java:161) INFO | jvm 1| 2011/03/10 12:00:15 | at com.sun.jersey.server.impl.application.WebApplicationImpl$12.f(WebApplicationImpl.java:698) INFO | jvm 1| 2011/03/10 12:00:15 | at com.sun.jersey.server.impl.application.WebApplicationImpl$12.f(WebApplicationImpl.java:695) INFO | jvm 1| 2011/03/10 12:00:15 | at
Re: [Neo4j] Unmanaged Extensions
Hi Jim, thx for the reply. it is set like this: org.neo4j.server.thirdparty_jaxrs_classes=org.mediasharks.unmanaged=/custom where org.mediasharks.unmanaged is the package name. - Regards, Francois Kassis. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Unmanaged-Extensions-tp2660066p2660246.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Unmanaged Extensions
I think the problem was in the when removed i got this: Command: $ curl -v http://localhost:7474/custom/helloworld/5 Output: Problem accessing /custom/helloworld/5. Reason: com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes. Caused by:javax.servlet.UnavailableException: com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes neo4j-server.properties: #Comma separated list of JAXRS classes, one package name for each mount point. org.neo4j.server.thirdparty_jaxrs_classes=org.mediasharks.unmanaged=/custom - Regards, Francois Kassis. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Unmanaged-Extensions-tp2660066p2660279.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4J Plugin
Thank you andreas, So would the plugin will let me return Iterable where neoNodeResult is a custom class that have the following properties: 1. nodeType 2. nodeID 3. nodeStxCode 4. nodeLabel 5. nodeDepth I could return Iterable but its not what i want plus I need extra infos about the node to be returned. Thx again. - Regards, Francois Kassis. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Neo4J-Plugin-tp2654214p2654814.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Neo4J Rest server API
Dear All, I a using neo4J 1.2, i filled a sample data and indexed each inserted new node using java with: IndexService index = LuceneIndexService(graphDb) IndexService fulltextindex = LuceneFulltextIndexService(graphDb) but in rest api when using: curl -H Accept:application/json http://localhost:7474/db/data/index/node I don't get any result. Why? Thx in advance. Francois Kassis. - Regards, Francois Kassis. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Neo4J-Rest-server-API-tp2559737p2559737.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4J Rest server API
Hi michael, thx for the reply. ok, if this is the new way to index: graphdb.index().forNodes(indexName).add(node,field,value) . What about the lucene fulltext search and the query search. What i need at end of the day, is to index data using java. and then using the rest api to search for nodes. My old way: IndexService index = new LuceneIndexService(graphDb); IndexService fulltextindex = new LuceneFulltextIndexService(graphDb); index.index(tempSectorNode, index_name, value); fulltextindex.index(tempSectorNode, index_name, value); New way: graphdb.index().forNodes(indexName).add(node,field,value) fulltext ??? I was informed that a non-exact search is not yet available thru rest api. so i was building an extension to do so. Thx again Michael and appreciate your help. - Regards, Francois Kassis. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Neo4J-Rest-server-API-tp2559737p2560303.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4J Rest server API
Thx Mattias. - Regards, Francois Kassis. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Neo4J-Rest-server-API-tp2559737p2565570.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4j rest server indexing
Hi All, I am trying to build a non-exact search plug-in to Neo4J rest server, is there a document or example on how to accomplish that? I checked the get_all_nodes, I am newbie in java and my main problem is how to send the parameters like the index name and the value to be searched for. Thx for your help. Francois Kassis. - Regards, Francois Kassis. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Neo4j-rest-server-indexing-tp2526084p2550661.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4j rest server indexing
Thx Max, I’ll appreciate if you provide the post link, it would be nice. - Regards, Francois Kassis. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Neo4j-rest-server-indexing-tp2526084p2543028.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user