Package com.hp.gloze

Examples of com.hp.gloze.Context


        URI uri = prune(o).resolve(loc);
        xs.ont.getOntology(ctx.getBaseMap().toString()).addImport(xs.ont.createResource(uri.toString()));
       
        // map included schema
        URI base = prune(ctx.getBaseMap().resolve(location)).resolve(loc);
        Context c = ctx.copy();
        c.setBase(base);
       
        if (target!=null) {
          File t = target.getCanonicalFile();
          if (!t.isDirectory()) t = t.getParentFile();
          schema.toOWL(new File(t,loc),base.toString(),false, c);
View Full Code Here


     
      // map included schema
      String suffix = ctx.getLang().toLowerCase().equals("n3")?"n3":"owl";
      String loc = changeSuffix(schemaLocation, suffix);
      URI base = prune(ctx.getBaseMap().resolve(location)).resolve(loc);
      Context c = ctx.copy();
      c.setBase(base);
     
      if (target!=null) {
        File t = target.getCanonicalFile();
        if (!t.isDirectory()) t = t.getParentFile();
        ont.add(_schema.toOWL(new File(t,loc),base.toString(),true, c).getBaseModel());
View Full Code Here

        // map imported schema
        if (target!=null) {
          File b = target.getCanonicalFile();
          if (!b.isDirectory()) b = b.getParentFile();
          schema.toOWL(new File(b, l),base.toString(),false, new Context(base, ctx));
        }
        else schema.toOWL((File)null,base.toString(),false, new Context(base, ctx));
      }
    }
    catch (Exception e) {
      e.printStackTrace(System.err);
    }
View Full Code Here

TOP

Related Classes of com.hp.gloze.Context

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.