Package eu.planets_project.tb.impl.model.ontology

Examples of eu.planets_project.tb.impl.model.ontology.OntologyPropertyImpl


                for (Iterator<RDFIndividual> jt = instances.iterator(); jt.hasNext();) {
                  try{
                    RDFIndividual individual = (RDFIndividual)jt.next();
                    //OWLIndividual individual = (OWLIndividual) jt.next();   
                    TreeNode child = new TreeNodeImpl();
                      OntologyProperty ontologyProperty = new OntologyPropertyImpl(individual);
                     
                      boolean bMatchesFilter = true;
                     if(applyfilter){
                       boolean b1 = ontologyProperty.getName().toLowerCase().contains(filterTreeString.toLowerCase());
                       boolean b2 = ontologyProperty.getHumanReadableName().toLowerCase().contains(filterTreeString.toLowerCase());
                       bMatchesFilter =  b1||b2;
                     }
                     if(bMatchesFilter){
                       child.setData(ontologyProperty);
                        childClass.addChild(ontologyProperty.getURI(), child);
                    }
                  }catch(ClassCastException e){
                    log.debug("Shouldn't happen any more: Filtering out RDFIndividual");
                  }
                }
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.impl.model.ontology.OntologyPropertyImpl

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.