Package com.hp.gloze

Examples of com.hp.gloze.Restrictions


   
    schema xs = (schema) this.get_owner();
    String uri = createURI(xs.ont,ctx);   
    attribute def = getDefinition(xs.ont,ctx);
    if (def==null) return;
    if (rest==null) rest = new Restrictions();
    String type = expandQName(ctx.getDefaultNS(),def.getType(),xs.ont);
   
    // add cardinality restrictions
    // simple types (including QNames, IDREFs) have minCard of at most 1 because of possible duplication */
    boolean simple = type==null || (type.startsWith(schema.XSD_URI) && !type.endsWith("#anyType")) ;
View Full Code Here


    else if (rest==null) return c;
    if (cls==null) cls = xs.ont.createClass(uri);
    if (cls!=null) cls.addProperty(RDFS.subClassOf,OWL.Thing);

    // restrictions are required internally to define the class, if not by the caller
    if (rest==null && (uri!=null || (uri==null && createAnon))) rest = new Restrictions();

    // declare local elements & attributes, extensions & restrictions (for subclassing below)
    if (sequence!=null) sequence.toOWL(rest, 1, 1, ctx);
    if (choice!=null) choice.toOWL(rest, 1, 1, ctx);
   
View Full Code Here

TOP

Related Classes of com.hp.gloze.Restrictions

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.