Package edu.mit.simile.fresnel.configuration

Examples of edu.mit.simile.fresnel.configuration.Configuration.select()


        else
          purpose = new Purpose(new URIImpl("http://www.w3.org/2004/09/fresnel#defaultLens")); /* this must be provided, or a random lens is chosen */

        try {
          /* Perform Fresnel selection using the requested display purpose and language */
          selected = conf.select(dataRepository, focalResource, purpose, langPref);
   
          /* Perform Fresnel formatting */
          selected = conf.format(dataRepository, selected);
        }
        catch (NoResultsException e) {
View Full Code Here


    }
   
    try {
      Configuration conf = new Configuration(confRepo, ontoRepo);
      if (conf.hasWarnings()) System.err.println(conf.getWarningsString());
      Selection selected = conf.select(dataRepo);
      selected = conf.format(dataRepo, selected);
      Document out = selected.render();
      if (opts.isDebug()) {
        System.out.println(conf);
      } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.