Examples of Concept


Examples of org.ontospread.xmlbind.Concept

public class JenaOntologyDAOImplTest extends TestCase {

  public void testConceptFound() throws ConceptNotFoundException{
    String conceptUri = "http://websemantica.fundacionctic.org/ontologias/bopa/piscina.owl#Piscina";
    Concept c = DAOUtils.createOntologyDAO().getConcept(conceptUri, "");
    assertNotNull(c);
  }
View Full Code Here

Examples of org.ontospread.xmlbind.Concept

        final double currentScore = getScore(ontoSpreadState, currentUri);
        ontoSpreadState.setCurrentScore(currentScore);//FIXME
        final int depth = uriDepth.getDepth();
        final double []parameters = new double[]{depth};
        double degradation = 1.0;
    Concept concept = getOntologyDAO().getConcept(currentUri, null);
    ConceptOperations conceptOperations = new ConceptOperations(concept);
        //We take all the concepts (and the relation wich join with the  // ''concept'' variable)
        //Iterate over them, and score its spread value
    //System.out.println("Spreading "+uriDepth);
    logger.debug("SPREADING "+uriDepth.getUri()+" DEPTH "+uriDepth.getDepth()+" SCORE "+currentScore);
View Full Code Here

Examples of org.openmrs.Concept

  }
 
  private Obs setObsValue(Obs obs, Object value) throws ResponseException {
    if (obs.getConcept().getDatatype().isCoded()) {
      // setValueAsString is not implemented for coded obs (in core)
      Concept valueCoded = (Concept) ConversionUtil.convert(value, Concept.class);
      obs.setValueCoded(valueCoded);
    } else if (obs.getConcept().getDatatype().isComplex()) {
      obs.setValueComplex(value.toString());
    } else {
      if (obs.getConcept().isNumeric()) {
View Full Code Here

Examples of org.semanticweb.HermiT.model.Concept

        Node node=m_debugger.getTableau().getFirstTableauNode();
        while (node!=null) {
            Debugger.NodeCreationInfo nodeCreationInfo=m_debugger.getNodeCreationInfo(node);
            ExistentialConcept existentialConcept=nodeCreationInfo.m_createdByExistential;
            if (existentialConcept instanceof AtLeastConcept) {
                Concept toConcept=((AtLeastConcept)existentialConcept).getToConcept();
                OriginInfo originInfo=originInfos.get(toConcept);
                if (originInfo==null) {
                    originInfo=new OriginInfo(toConcept);
                    originInfos.put(toConcept,originInfo);
                }
View Full Code Here

Examples of trust.jfcm.Concept

       * compute errors on the output nodes
       */
      List<EntryStructure> outputs = e.getOutputs();
      for(int i=0; i<outputs.size(); i++){
        EntryStructure e1 = outputs.get(i);
        Concept c = e1.getConcept();
       
        if(c==null)
          System.err.println("Error: Concept "+e1.getConcept().getName()+" not found");
       
       
          LearningConcept lc = null;
          if(c instanceof LearningConcept)
            lc = (LearningConcept) c;
         
          if(lc != null && lc.isOutput()){
            OutputLearningConcept oc = (OutputLearningConcept) lc;
            System.out.println("  Output concept: "+c.getName());
            System.out.println("  Desirable output: "+oc.getDesirableOutput()+", output: "+oc.getOutput().doubleValue());
            System.out.println("  Error on output concept: "+c.getName()+": "+(oc.getDesirableOutput() - oc.getOutput().doubleValue()));
           
          }
         
      }
    }
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.