Package org.wikier.trioo.jtrioo.generators

Examples of org.wikier.trioo.jtrioo.generators.ConstructQueryGenerator


  public Model describe(Class cls) {
    RDFMetaResource metaResource = this.session.getMetaRDFResource(cls);
    if (metaResource == null) {
      return JenaHelper.createModel();
    } else {
      ConstructQueryGenerator cqg = QueryGeneratorFactory.createConstructQueryGenerator();
      cqg.visit(metaResource);
      QueryCodeGenerator qcg = new QueryCodeGenerator();
      qcg.visit(cqg.getQuery());
      QueryExecutor qe = this.session.getQueryExecutor();
      return qe.execConstruct(qcg.toString());
    }
  }
View Full Code Here

TOP

Related Classes of org.wikier.trioo.jtrioo.generators.ConstructQueryGenerator

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.