Package org.ontospread.xmlbind

Examples of org.ontospread.xmlbind.Concept


public class ConceptXMLBindTest extends TestCase {

  public void testRestoreConcept(){
    ObjectFactory factory = new ObjectFactory();
    Concept concept  = factory.createConcept();
    assertNotNull(concept);
    assertNotNull(ConceptXMLBind.getInstance().serializeConcept(concept));
  }
View Full Code Here


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

        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

TOP

Related Classes of org.ontospread.xmlbind.Concept

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.