Jump to content

Cypher

From NeoWiki Demo

This page demonstrates the cypher_raw parser function for executing Cypher queries against the Neo4j graph database.

This is a demo feature for the NeoWiki proof of concept demo. It will not be present as-is in a production version.

Query Companies

MATCH (n:Company) RETURN n.name, n.id

[
    {
        "n.name": "ACME Inc.",
        "n.id": "s1demo1aaaaaaa1"
    },
    {
        "n.name": "Hallo Welt! GmbH",
        "n.id": "s1demo5ssssssz1"
    },
    {
        "n.name": "Professional Wiki GmbH",
        "n.id": "s1demo5sssssss1"
    },
    {
        "n.name": "Main Pagegfsdgt",
        "n.id": "sEpjeGi3EjWM9dw"
    },
    {
        "n.name": "Fggxftgx",
        "n.id": "sEq1P1iwqG1s4UP"
    },
    {
        "n.name": "KMA Knowledge Management Associates",
        "n.id": "sEr2axw2QTXhVLk"
    }
]

Query Products

MATCH (n:Product) RETURN n.name, n.id

[
    {
        "n.name": "ProWiki",
        "n.id": "s1demo6sssssss1"
    },
    {
        "n.name": "NeoWiki",
        "n.id": "s1demo4sssssss1"
    },
    {
        "n.name": "Foo",
        "n.id": "s1demo1aaaaaaa2"
    },
    {
        "n.name": "Bar",
        "n.id": "s1demo1aaaaaaa3"
    },
    {
        "n.name": "Baz",
        "n.id": "s1demo1aaaaaaa4"
    },
    {
        "n.name": "Test Subject",
        "n.id": "sEpYcxD6JZ1khpL"
    }
]

Query Relations

MATCH (source:Company)-[r]->(target)
RETURN source.name, type(r), target.name
LIMIT 10

[
    {
        "source.name": "ACME Inc.",
        "type(r)": "Has product",
        "target.name": "Foo"
    },
    {
        "source.name": "ACME Inc.",
        "type(r)": "Has product",
        "target.name": "Bar"
    },
    {
        "source.name": "ACME Inc.",
        "type(r)": "Has product",
        "target.name": "Baz"
    },
    {
        "source.name": "Hallo Welt! GmbH",
        "type(r)": "Has product",
        "target.name": "ProWiki"
    },
    {
        "source.name": "Hallo Welt! GmbH",
        "type(r)": "Has product",
        "target.name": "NeoWiki"
    },
    {
        "source.name": "Professional Wiki GmbH",
        "type(r)": "Has product",
        "target.name": "ProWiki"
    },
    {
        "source.name": "Professional Wiki GmbH",
        "type(r)": "Has product",
        "target.name": "ProWiki"
    },
    {
        "source.name": "Professional Wiki GmbH",
        "type(r)": "Has product",
        "target.name": "ProWiki"
    },
    {
        "source.name": "Professional Wiki GmbH",
        "type(r)": "Has product",
        "target.name": "ProWiki"
    },
    {
        "source.name": "Professional Wiki GmbH",
        "type(r)": "Has product",
        "target.name": "NeoWiki"
    }
]

Notes

  • Only read-only queries are allowed. Write operations like CREATE, SET, DELETE are rejected.
  • Query results are displayed as formatted JSON.
This page defines 0 NeoWiki subjects.
View or edit JSON