Neo4j

neo4j

docker

docker run \
    --name neo4j \
    -p7474:7474 -p7687:7687 \
    -d \
    -v /root/f26/neo4j/data:/data \
    -v /root/f26/neo4j/conf:/var/lib/neo4j/conf\
    -v /root/f26/neo4j/logs:/logs \
    -v /root/f26/neo4j/import:/var/lib/neo4j/import \
    -v /root/f26/neo4j/plugins:/plugins \
    --env NEO4J_AUTH=none \
    neo4j:latest
docker run \
    --name neo4j \
    -p7474:7474 -p7687:7687 \
    -d \
    -v /root/f26/neo4j/data:/data \
    -v /root/f26/neo4j/conf:/var/lib/neo4j/conf\
    -v /root/f26/neo4j/logs:/logs \
    -v /root/f26/neo4j/import:/var/lib/neo4j/import \
    -v /root/f26/neo4j/plugins:/plugins \
    --env NEO4J_AUTH=none \
    --env='NEO4JLABS_PLUGINS=["n10s"]' \
    neo4j:latest
docker run \
    --name neo4j \
    -p7474:7474 -p7687:7687 \
    -d \
    -v $HOME/neo4j/data:/data \
    -v $HOME/neo4j/logs:/logs \
    -v $HOME/neo4j/import:/var/lib/neo4j/import \
    -v $HOME/neo4j/plugins:/plugins \
    --env NEO4J_AUTH=neo4j/mideambt \
    neo4j:latest

https://neo4j.com/developer/docker-run-neo4j/#neo4j-docker

https://neo4j.com/docs/cypher-manual/current/databases/#administration-databases-show-databases

Install RDF plugin

https://neo4j.com/labs/neosemantics/4.2/install/

https://neo4j.com/labs/neosemantics/4.2/introduction/

call n10s.graphconfig.init({ handleVocabUris: "IGNORE", handleMultival: 'ARRAY', multivalPropList : ['http://nyt.com/voc/keyword']});
CREATE CONSTRAINT n10s_unique_uri ON (r:Resource) ASSERT r.uri IS UNIQUE
docker cp dtlab.ttl neo4j:/home
CALL n10s.rdf.import.fetch("file:///home/dtlab.ttl", "Turtle")

MATCH (n) DETACH DELETE n
CALL n10s.graphconfig.init({ handleVocabUris: "IGNORE", handleMultival: 'ARRAY', multivalPropList : ['http://nyt.com/voc/keyword']});

CREATE CONSTRAINT n10s_unique_uri ON (r:Resource) ASSERT r.uri IS UNIQUE

CALL n10s.rdf.import.fetch("file:///D:\Desktop\F26\dtlab.ttl", "Turtle")

CALL n10s.rdf.preview.fetch("file:///D:\Desktop\F26\dtlab.ttl", "Turtle")

Cypher

MATCH (n:AHU) RETURN n LIMIT 25

MATCH (n:VAV)-[r:hasPoint]->(m:Zone_Air_Temperature_Setpoint) where (n.uri="http://midea.com/dtlab#VAV72628") return m.uri

MATCH (n:AHU)-[r:feeds]->(m:VAV) where (n.uri="http://midea.com/dtlab#K_B_26_2") return m
Previous
Next