Examples of listOperands()


Examples of com.hp.hpl.jena.ontology.IntersectionClass.listOperands()

          }
     
      // intersectionOf
      } else if (c.isIntersectionClass()) {
        IntersectionClass ic = c.asIntersectionClass();
          for (Iterator<? extends OntClass> i = ic.listOperands(); i.hasNext(); ) {
              try {
                OntResource op = i.next();
//                OntClass op = (OntClass) i.next();
                getMembers(op, resources, recursive);
              } catch (ConversionException e) {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.UnionClass.listOperands()

            //Verifica se o Datatype é usado por multiplas classes
            if(datatype.getDomain().asClass().isUnionClass()){
                //é usado por multiplas classes
                //recuperar um iterador sobre o conjunto
                UnionClass uniao = datatype.getDomain().asClass().asUnionClass();
                ExtendedIterator<? extends OntClass> iterador = uniao.listOperands();
                //verifica se a classe passada é uma das classes do conjunto
                while(iterador.hasNext()){
                    OntClass classe = (OntClass) iterador.next();
                    //Se a classe passada faz parte do conjunto adicionar ao conjunto de retorno
                    if(classe.getLocalName().equals(ontClass.getLocalName())){
View Full Code Here

Examples of com.hp.hpl.jena.ontology.UnionClass.listOperands()

      }
     
      // unionOf
      else if (c.isUnionClass()) { // in form of unionOf or intersectionOf
        UnionClass uc = c.asUnionClass();
          for (Iterator<? extends OntClass> i = uc.listOperands(); i.hasNext(); ) {
              try {
                OntResource op = i.next();
//                OntClass op = (OntClass) i.next();
                getMembers(op, resources, recursive);
              } catch (ConversionException e) {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.UnionClass.listOperands()

    // Iterate all "union classes"
    while (unionClasses.hasNext()) {

      Resource resource = (Resource) unionClasses.next();
      UnionClass unionClass = ((OntClass) resource).asUnionClass();
      Iterator ops = unionClass.listOperands();

      // Iterate the members of this "union class"
      while (ops.hasNext()) {
        OntClass op = (OntClass) ops.next();
View Full Code Here

Examples of com.hp.hpl.jena.ontology.UnionClass.listOperands()

    // Iterate all "union classes"
    while (unionClasses.hasNext()) {

      Resource resource = (Resource) unionClasses.next();
      UnionClass unionClass = ((OntClass) resource).asUnionClass();
      Iterator ops = unionClass.listOperands();

      // Iterate the members of this "union class"
      while (ops.hasNext()) {
        OntClass op = (OntClass) ops.next();
View Full Code Here

Examples of com.hp.hpl.jena.ontology.UnionClass.listOperands()

      List<OntClass> comps, boolean considerUnionClass) {

    if (considerUnionClass && rcls.isUnionClass()) {

      UnionClass ucls = rcls.asUnionClass();
      Iterator operands = ucls.listOperands();

      while (operands.hasNext()) {
        OntClass operand = (OntClass) operands.next();
        addCompatibleSubClasses(operand, comps, false);
      }
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.