Package edu.mit.simile.fresnel.selection

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


      conn.close();
    } catch (RepositoryException sue) {
      System.err.println("Could not add to repository: " + sue);
      return null;
    }
     PropertySet finalProperties = resolvePropertySet(lens, in, focus);
    Iterator<ISelector> focusPSI = finalProperties.iterator();
    r.setTitle(resolveLabel(in, focus));
    this._resultModelHash.putResult(FresnelUtilities.dupResource(focus), r);
    while (focusPSI.hasNext()) {
      ISelector selector = focusPSI.next();
      if (selector.canSelectStatements()) {
View Full Code Here


      conn.close();
    } catch (RepositoryException sue) {
      System.err.println("Could not add to repository: " + sue);
      return null;
    }
    PropertySet finalProperties = resolvePropertySet(lens, in, focus);
    Iterator<ISelector> focusPSI = finalProperties.iterator();
    this._resultModelHash.putResult(FresnelUtilities.dupResource(focus), r);
    while (focusPSI.hasNext()) {
      ISelector selector = focusPSI.next();
      if (selector.canSelectStatements()) {
        try {
View Full Code Here

   * @param in The <code>Repository</code> with all the data
   * @param focus The <code>Resource</code> to resolve
   * @return A <code>PropertySet</code> of properties to select.
   */
  protected PropertySet resolvePropertySet(Lens lens, Repository in, Resource focus) {
    PropertySet properties = new PropertySet();
    PropertySet hide = lens.getHideProperties();
    PropertySet show = lens.getShowProperties();
    if (show.seenAllProperties()) {
      try {
        RepositoryConnection conn = in.getConnection();
                RepositoryResult<Statement> focusProperties = conn.getStatements(focus, (URI) null, (Value) null, true);
                RepositoryResult<Statement> focusPropertiesInverse = conn.getStatements(null, (URI) null, focus, true);
        Iterator<ISelector> showPSI = show.iterator();
        while (showPSI.hasNext()) {
          ISelector selector = showPSI.next();
          if (AllPropertiesSelector.isAllProperties(selector)) {
            // get all properties and check if in hidden properties
            while (focusProperties.hasNext() || focusPropertiesInverse.hasNext()) {
View Full Code Here

TOP

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

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.