Examples of Individual


Examples of com.hp.hpl.jena.ontology.Individual

      //list instances
      for (Iterator i=cls.listInstances(); i.hasNext(); ) {
        //add search terms for each instance

        //list labels
        Individual individual = (Individual) i.next();
        for (Iterator j=individual.listLabels(null); j.hasNext();) {
          Literal l = (Literal) j.next();
          OntologyImpl.addSearchTerm(l.toString(), individual);
        }
      }
    }

Examples of com.hp.hpl.jena.ontology.Individual

      }
   
      if (resource instanceof Individual) {
      //get all individuals same as this one
        for (Iterator i=resource.listSameAs(); i.hasNext();) {
          Individual individual = (Individual) i.next();
          //add labels
          for (Iterator j =individual.listLabels(null); j.hasNext();) {
            Literal l = (Literal) i.next();
            synonyms.put(l.toString(), "1");
          }
        }
      } else if (resource instanceof OntClass) {

Examples of com.hp.hpl.jena.ontology.Individual

        occurs.add( cls );
        renderHierarchy( out, sub, occurs, depth + 1 );
        occurs.remove( cls );
      }
      for (Iterator i=cls.listInstances(); i.hasNext(); ) {
        Individual individual = (Individual) i.next();
        renderURI(out, individual.getModel(), individual.getURI());
        out.print(" [");
        for (Iterator j=individual.listLabels(null); j.hasNext();) {
          out.print(((Literal)j.next()).getString()+", ");
        }
        out.print("] ");
        out.println();
      }

Examples of com.hp.hpl.jena.ontology.Individual

      //list instances
      for (Iterator i=cls.listInstances(); i.hasNext(); ) {
        //add search terms for each instance

        //list labels
        Individual individual = (Individual) i.next();
        for (Iterator j=individual.listLabels(null); j.hasNext();) {
          Literal l = (Literal) j.next();
          OntologyImpl.addSearchTerm(l.toString(), individual);
        }
      }
    }

Examples of com.hp.hpl.jena.ontology.Individual

      }
   
      if (resource instanceof Individual) {
      //get all individuals same as this one
        for (Iterator i=resource.listSameAs(); i.hasNext();) {
          Individual individual = (Individual) i.next();
          //add labels
          for (Iterator j =individual.listLabels(null); j.hasNext();) {
            Literal l = (Literal) i.next();
            synonyms.put(l.toString(), "1");
          }
        }
      } else if (resource instanceof OntClass) {

Examples of ec.Individual

                {
                if (state.population.subpops.length > 1)
                    state.output.println("Subpopulation " + s, frontLog);
                for (int i = 0; i < sortedFront.length; i++)
                    {
                    Individual ind = (Individual)(sortedFront[i]);
                    MultiObjectiveFitness mof = (MultiObjectiveFitness) (ind.fitness);
                    double[] objectives = mof.getObjectives();
       
                    String line = "";
                    for (int f = 0; f < objectives.length; f++)

Examples of net.sourceforge.gedapi.view.Individual

  //public void nontestParseGLinksXML() throws IOException
  public void testParseGLinksXML() throws IOException
  {
    String gedcomURL = "http://localhost:8081/gedapi/export.ged";
    String individualId = "I55";
    Individual individual = new Individual(gedcomURL+"/"+individualId);
    individual.setId(individualId);
   
    boolean causedException = false;
    try
    {
      GLinkURL glinkURL = new GLinkURL(gedcomURL+"/"+individualId);

Examples of net.sourceforge.gedapi.view.Individual

  //public void nontestParseGLinksMissingRelationXML() throws IOException
  public void testParseGLinksMissingRelationXML() throws IOException
  {
    String gedcomURL = "http://localhost:8081/gedapi/export.ged";
    String individualId = "I66";
    Individual individual = new Individual(gedcomURL+"/"+individualId);
    individual.setId(individualId);
   
    boolean causedException = false;
    try
    {
      Gedcom2View.parseGLinksXML(new GLinkURL(gedcomURL+"/"+individualId), individual, true, false);

Examples of net.sourceforge.gedapi.view.Individual

   
    // DONE: fix it so that if an individual is still alive then the person's
    // name, birthDate and deathDate will be masked so that a living person's
    // data is not displayed on the web site
   
    Individual individual = new Individual(gedcomURL.getGedcomURL()+"/"+indi.getId());
    individual.id = indi.getId();

    int gedcomSex = indi.getSex();
    if(gedcomSex == PropertySex.UNKNOWN)
    {
      individual.setGender(Individual.UNKNOWN);
    }
    else if(gedcomSex == PropertySex.MALE)
    {
      individual.setGender(Individual.MALE);
    }
    else if(gedcomSex == PropertySex.FEMALE)
    {
      individual.setGender(Individual.FEMALE);
    }
   
    if(isLiving(indi))
    {
      // DONE: the .charAt(0) method call causes a

Examples of net.sourceforge.gedapi.view.Individual

    }
   
    int indiIndex = -1;
    for(Indi indi : indis)
    {
      Individual newIndividual = indi2Individual(indi, gedcomURL, networkReload);
      if(newIndividual != null && newIndividual.lastModified > baseView.lastModified)
      {
        baseView.lastModified = newIndividual.lastModified;
      }
      individuals.add(newIndividual);
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.