Package edu.mit.simile.fresnel.selection

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


    for (Iterator<ISelector> di = lens.getDomainSet().iterator(); di.hasNext(); ) {
      ISelector domain = di.next();
      // TODO other valid selector types may need to be integrated, such as FSE/SPARQL selectors
      if (domain instanceof InstanceSelector) {
        InstanceSelector is = (InstanceSelector) domain;
        LensMatchSet lms = this._instanceLensMatches.getMatch(is.getInstance());
        if (null == lms) {
          lms = new LensMatchSet(is.getInstance());
        }
        lms.add(lens);
        this._instanceLensMatches.putMatch(is.getInstance(), lms);
      }
    }
  }
View Full Code Here


    while (domainsI.hasNext()) {
      ISelector domain = null;
      Value domainNode = domainsI.next().getObject();
      if (domainNode instanceof Resource) {
        // This is an instance selector
        domain = new InstanceSelector((URI) domainNode);
      } else if (domainNode instanceof Literal) {
        Literal domainL = (Literal) domainNode;
        // TODO: catch bad expressions?  throw exceptions?
        if (domainL.getDatatype().equals(FresnelCoreTypes.fslSelector)) {
          domain = new FSESelector(domainL.getLabel(), _fslContext, conf.getNamespaceMap());
View Full Code Here

TOP

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

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.