Package org.neo4j.meta.model

Examples of org.neo4j.meta.model.MetaModelClass


        try
        {
            MetaModelNamespace namespace = meta.getGlobalNamespace();

            // Create a class, use ", true" for "create it if it doesn't exist".
            MetaModelClass personClass = namespace.getMetaClass(
                    "http://metaexample.org/meta#Person", true );

            // Create a property in a similar way.
            MetaModelProperty nameProperty = namespace.getMetaProperty(
                    "http://metaexample.org/meta#name", true );

            // Tell the meta model that persons can have name properties.
            personClass.getDirectProperties().add( nameProperty );
            tx.success();
        }
        catch ( Exception e )
        {
            tx.failure();
View Full Code Here

TOP

Related Classes of org.neo4j.meta.model.MetaModelClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.