Examples of asRestriction()


Examples of com.hp.hpl.jena.ontology.OntClass.asRestriction()

                       List<ConceptRestriction> relacionamentosSup = recuperarRelacionamentosSup(aux, ontClass.getLocalName());
                       for(ConceptRestriction conRest : relacionamentosSup){
                         tmpConcept.addConceptRestriction(conRest);
                       }
                   }else{ //eh um restriction
                       Restriction restriction = aux.asRestriction();
                       ConceptRestriction conRest = recuperarDadosRestriction(restriction, tmpConcept.getNome());
                       tmpConcept.addConceptRestriction(conRest);
                      
//                       //Verificar se existe mais de uma classe no range do OP e criar disjoints
//                     ObjectProperty op = parser.recuperarObjectProperty(conRest.getNomeProperty());
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntClass.asRestriction()

                Iterator<OntClass> it = ontClass.listSuperClasses(true);
                OntClass aux = null;
                while(it.hasNext()){
                    aux = it.next();
                    if(aux.getLocalName() == null){
                      Restriction restriction = aux.asRestriction();
                        relacionamentos.add(recuperarDadosRestriction(restriction, nomeConceitoBase));
                    }else{
                      relacionamentos.addAll(recuperarRelacionamentosSup(aux, nomeConceitoBase));
                    }
                }
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntClass.asRestriction()

        c_owl = (OWLClass)iter.next();
        c_ont = (OntClass) ( (Resource)c_owl.getImplementation()).as(OntClass.class);   
        if(c_ont.toString().indexOf("http://www.w3.org/2000/01/rdf-schema")>=0)
        debugDisplay(" - Skipped - " + c_ont);
        else if (c_ont.isRestriction()) {
          res = createRestriction(base,c_ont.asRestriction());
      }   
        else if (c_ont.isIndividual()) {
          debugDisplay("  asIndividual          ");// + r.asIndividual().toString() );
          res = local.createIndividual(c_ont);
       
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.