neo4j-labs / neosemantics

Graph+Semantics: Import/Export RDF from Neo4j. SHACL Validation, Model mapping and more.... If you like it, please ★ ⇧
https://neo4j.com/labs/neosemantics/
Apache License 2.0
813 stars 141 forks source link

RDF endpoint unavailable #278

Open Raf23 opened 1 year ago

Raf23 commented 1 year ago

Hello,

I have already used neosemantics in the past, it's really a great lib ! Thanks for all ;-) Unfortunately I would like to use it with docker and I have some issues to use RDF endpoint. Everything is well installed in plugins folder (apoc.jar & n10s.jar) When I call CALL dbms.procedures() I see well the n10s available procedures.

I'm using the following docker command to run:

docker run \ --name testneo4j \ -p7474:7474 -p7687:7687 \ -d \ -v C:/neo4j/docker/data:/data \ -v C:/neo4j/docker/logs:/logs \ -v C:/neo4j/docker/import:/var/lib/neo4j/import \ -v C:/neo4j/docker/plugins:/plugins \ --env NEO4J_AUTH=neo4j/test \ --env='NEO4JLABS_PLUGINS=["apoc", "n10s"]' \ --env='NEO4J_dbms_unmanaged__extension__classes="n10s.endpoint=/rdf"' \ --env='NEO4J_dbms_security_procedures_unrestricted=apoc.*,n10s.*' \ --env='NEO4J_dbms_security_procedures_whitelist=apoc.*,n10s.*' \ neo4j:latest

I see in the following lines in my logs

2022-10-12 14:44:53.396+0000 INFO Mounted unmanaged extension ["n10s.endpoint] at [/rdf"] 2022-10-12 14:44:54.288+0000 INFO Remote interface available at http://localhost:7474/

But when I try a GET http://localhost:7474/rdf/ping I receive an HTTP 404

Any helps would be really appreciated

Kind regards,

Raphaël

tla commented 1 year ago

I am also having this problem on an entirely fresh install - Neosemantics 4.4.0.1 on Neo4J 4.4.5 on Neo4J Desktop 1.5.0, default configuration and nothing in the database.

tla commented 1 year ago

I found my own problem, which is that I was missing the dbms.unmanaged_extension_classes line. For the info of the OP, I don't have the whitelist line, but I'm not seeing how that would cause this 404...

Raf23 commented 1 year ago

Thanks for your comment @tla The endpoint for the RDF is working for you after docker run ? => http://localhost:7474/rdf/ping

I continue to search the reason...