Main Content

propertyKeys

All property keys in Neo4j database

Description

example

propkeys = propertyKeys(neo4jconn) returns all property keys in the Neo4j® database using the Neo4j database connection neo4jconn.

Examples

collapse all

Create a Neo4j® database connection using the URL http://localhost:7474/db/data, user name neo4j, and password matlab.

url = 'http://localhost:7474/db/data';
username = 'neo4j';
password = 'matlab';

neo4jconn = neo4j(url,username,password);

Check the Message property of the Neo4j connection object neo4jconn. The blank Message property indicates a successful connection.

neo4jconn.Message
ans =

     []

Retrieve all property keys using the Neo4j database connection neo4jconn. The cell array propkeys contains a character vector for the one property key in the Neo4j database.

propkeys = propertyKeys(neo4jconn)
propkeys = 15×1 cell array
    {'Weight'     }
    {'EndNodes'   }
    {'Address'    }
    {'Department' }
    {'title'      }
    {'name'       }
    {'Name'       }
    {'EndDate'    }
    {'Description'}
    {'StartDate'  }
    {'property'   }
    {'Date'       }
    {'Project'    }
    {'Location'   }
    {'Title'      }

Close the database connection.

close(neo4jconn)

Input Arguments

collapse all

Neo4j database connection, specified as a Neo4jConnect object created with the function neo4j.

Output Arguments

collapse all

Property keys in the Neo4j database, returned as a cell array of character vectors. Each character vector denotes a property key.

Version History

Introduced in R2016b