Examples of Facet


Examples of com.clarkparsia.pellet.datatypes.Facet

    kb.addInverseProperty( p1, p2 );
  }

 
  public void visit(OWLFacetRestriction node) {
    Facet facet = Facet.Registry.get( ATermUtils.makeTermAppl( node.getFacet().getIRI().toString() ) )

    if( facet != null ) {
      OWLLiteral facetValue = node.getFacetValue();
      facetValue.accept( this );     

      term = ATermUtils.makeFacetRestriction( facet.getName(), term );
    }
  }
View Full Code Here

Examples of com.dotcms.repackage.org.elasticsearch.search.facet.Facet

        //Search with the given query
        Map<String, Facet> facets = siteSearchAPI.getFacets( indexName, query );
        for ( String key : facets.keySet() ) {

            Facet internalFacet = facets.get( key );

            //Verify the type of the facet in order to be able to create a proper wrapper for it
            if ( internalFacet instanceof InternalStringTermsFacet ) {

                InternalStringTermsFacet facet = (InternalStringTermsFacet) internalFacet;
View Full Code Here

Examples of com.google.refine.browsing.facets.Facet

            for (int i = 0; i < length; i++) {
                JSONObject fo = a.getJSONObject(i);
                String type = fo.has("type") ? fo.getString("type") : "list";

                Facet facet = null;
                if ("list".equals(type)) {
                    facet = new ListFacet();
                } else if ("range".equals(type)) {
                    facet = new RangeFacet();
                } else if ("timerange".equals(type)) {
                    facet = new TimeRangeFacet();
                } else if ("scatterplot".equals(type)) {
                    facet = new ScatterplotFacet();
                } else if ("text".equals(type)) {
                    facet = new TextSearchFacet();
                }

                if (facet != null) {
                    facet.initializeFromJSON(_project, fo);
                    _facets.add(facet);
                }
            }
        }
View Full Code Here

Examples of com.intellij.facet.Facet

    public java.util.List<String> getFileNames() {
        return orderedFileList.getFileNames();
    }

    public void apply() throws ConfigurationException {
        final Facet facet = editorContext.getFacet();
        if (facet != null) {
            IvyIdeaFacetConfiguration configuration = (IvyIdeaFacetConfiguration) facet.getConfiguration();
            configuration.getPropertiesSettings().setPropertyFiles(orderedFileList.getFileNames());
        }       
    }
View Full Code Here

Examples of edu.mit.simile.fresnel.facets.Facet

      for (Iterator<?> it = forClasses.iterator(); it.hasNext(); ) {
        Iterator<FacetSet> fsi = this._facets.getFacetSetIterator((Resource) it.next());
        if (null != fsi) {
          while (fsi.hasNext()) {
            for (Iterator<Facet> fi = fsi.next().facetIterator(); fi.hasNext(); ) {
              Facet nextF = fi.next();
              if (!out.contains(nextF))
                out.add(nextF.getIdentifier());
            }
          }
        }
      }
    }
View Full Code Here

Examples of jade.content.schema.Facet

          Integer cardMin = null;
          Integer cardMax = null;
          Facet[] facets = os.getFacets(names[i]);
          if (facets != null) {
            for (int j = 0; j < facets.length; j++) {
              Facet facet = facets[j];
              if (facet instanceof DefaultValueFacet) {
                DefaultValueFacet dvf = (DefaultValueFacet)facet;
                defaultValue = dvf.getDefaultValue();
              } else if (facet instanceof RegexFacet) {
                RegexFacet rf = (RegexFacet)facet;
View Full Code Here

Examples of net.sf.saxon.type.Facet

    private XPathException checkAgainstFacets(String lexicalValue) {
        Iterator iter = typeLabel.getFacets();
        StringValue normalizedValue = null;
        while (iter.hasNext()) {
            Facet f = (Facet)iter.next();
            if (f.getName().equals(Facet.PATTERN)) {
                if (normalizedValue == null) {
                    if (lexicalValue == null) {
                        normalizedValue = new StringValue(primitiveValue.getStringValue());
                    } else {
                        normalizedValue = new StringValue(typeLabel.applyWhitespaceNormalization(lexicalValue));
                    }
                }
                if (!f.testAtomicValue(normalizedValue)) {
                    return new DynamicError(
                            "Value " + Err.wrap(normalizedValue.toString(), Err.VALUE) + " violates the pattern facet " +
                            (f.getValue()==null ? "" : Err.wrap(f.getValue(), Err.VALUE) + " ") +
                            "of the type "
                            + typeLabel.getDescription());
                }
            } else {
                if (!f.testAtomicValue(primitiveValue)) {
                    return new DynamicError(
                            "Value " + Err.wrap(displayValue(), Err.VALUE) + " violates the " +
                            f.getName() + " facet " +
                            (f.getValue()==null ? "" : Err.wrap(f.getValue(), Err.VALUE) + " ") +
                            "of the type "
                            + typeLabel.getDescription());
                    }
            }
        }
View Full Code Here

Examples of org.apache.blur.thrift.generated.Facet

    blurQuery.query.scoreType = ScoreType.SUPER;
    blurQuery.fetch = 10;
    blurQuery.minimumNumberOfResults = Long.MAX_VALUE;
    blurQuery.maxQueryTime = Long.MAX_VALUE;
    blurQuery.uuid = "1";
    blurQuery.facets = Arrays.asList(new Facet("test-family.testcol1:value*", Long.MAX_VALUE), new Facet(
        "test-family.testcol1:value-nohit", Long.MAX_VALUE));

    AtomicLongArray facetedCounts = new AtomicLongArray(2);
    BlurResultIterable iterable = indexManager.query(TABLE, blurQuery, facetedCounts);
    assertEquals(iterable.getTotalResults(), 2);
View Full Code Here

Examples of org.apache.isis.core.metamodel.facetapi.Facet

        class Customer {
        }

        facetFactory.process(new ProcessClassContext(Customer.class, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(NotPersistableFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof NotPersistableFacetAnnotation);
        final NotPersistableFacetAnnotation notPersistableFacetAnnotation = (NotPersistableFacetAnnotation) facet;
        final NotPersistable.By value = notPersistableFacetAnnotation.value();
        assertEquals(NotPersistable.By.USER_OR_PROGRAM, value);
View Full Code Here

Examples of org.apache.isis.core.metamodel.facetapi.Facet

        class Customer {
        }

        facetFactory.process(new ProcessClassContext(Customer.class, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(NotPersistableFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof NotPersistableFacetAnnotation);
        final NotPersistableFacetAnnotation notPersistableFacetAnnotation = (NotPersistableFacetAnnotation) facet;
        final NotPersistable.By value = notPersistableFacetAnnotation.value();
        assertEquals(NotPersistable.By.USER_OR_PROGRAM, value);
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.