Graph Metadata Modeling Commands

The following are the graph metadata modeling commands:

No. Command Description
1. create attrdesc <attrname> as <type> Create an attribute descriptor (attrdesc) with name, type. The <type> that are supported are as follows:
  • String
  • Boolean
  • Byte
  • Char
  • Short
  • Int
  • Long
  • Float
  • Double
  • Number(p, s)
  • Date
  • Time
  • Timestamp
2. create [unique] index <indexname> attributes ([<attrname>]+)[on <nodetypename>] Create new index in the Graph DB server with a subset of attributes and nodetype in the global set.
3. create nodetype <nodetypename> attributes ([<attrname>]+) pkeys ([<pkeyname>]+)] Create a new nodetype which uses a subset of the attributes.
4. show attrdesc Show all attrdesc created in the DB.
5. show indeces Show all indexes created in the DB.
6. show types Show all nodetypes created in the DB.
Note:
  • Creating an edgetype is not supported by the admin in the 1.0.0 release of TIBCO Graph Database. The client Java API creates the edgetype dynamically. See the Hands-on Exercise topic in the TIBCO Graph Database Getting Started Guide for more details.
  • Metadata can also be defined during the DB initialization phase (initdb.conf). See the Hands-on Exercise topic in the TIBCO Graph Database Getting Started Guide for more details.