Package edu.mit.simile.fresnel.selection

Examples of edu.mit.simile.fresnel.selection.InstanceLens


      it = conn.getStatements((Resource) null, FresnelCore.instanceLensDomain, (Value) null, false);
      while (it.hasNext()) {
        try {
          Statement lensResourceStatement = (Statement) it.next();
          InstanceLens lens = new InstanceLens(this._source, lensResourceStatement.getSubject(), this);
          addInstanceLens(lens);
          if (!this._all.containsKey(lens.getIdentifier())) addLens(lens);
        } catch (ParsingException e) {
          gather(e);
        } catch (UnresolvableException u) {
          gather(u);
        }
      }
      it.close();

      it = conn.getStatements((Resource) null, FresnelCore.classLensDomain, (Value) null, false);
      while (it.hasNext()) {
        try {
          Statement lensResourceStatement = (Statement) it.next();
          Lens lens = new Lens(this._source, lensResourceStatement.getSubject(), this);
          if (!this._all.containsKey(lens.getIdentifier())) addLens(lens);
        } catch (ParsingException e) {
          gather(e);
        } catch (UnresolvableException u) {
          gather(u);
        }
View Full Code Here


    else {
      RepositoryConnection conn = null;
      try {
        conn = this._source.getConnection();
        if (conn.hasStatement(identifier, FresnelCore.instanceLensDomain, (Value) null, false)) {
          out = new InstanceLens(this._source, identifier, this);
          addInstanceLens(out);
        } else if (conn.hasStatement(identifier, FresnelCore.classLensDomain, (Value) null, false)) {
          out = new Lens(this._source, identifier, this);
          addLens(out);
        } else {
View Full Code Here

TOP

Related Classes of edu.mit.simile.fresnel.selection.InstanceLens

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.