Package edu.isi.karma.rep.model

Examples of edu.isi.karma.rep.model.Argument


      logger.info("atom does not have an argument1.");
      return null;
    }
   
    Label predicateName = new Label(predicateUri, predicateNs, predicatePrefix);
    Argument arg1 = new Argument(argument1Id, argument1Id, argument1Type);
   
    ClassAtom classAtom = new ClassAtom(predicateName, arg1);

    return classAtom;
View Full Code Here


      logger.info("atom does not have an argument2.");
      return null;
    }
   
    Label predicateName = new Label(predicateUri, predicateNs, predicatePrefix);
    Argument arg1 = new Argument(argument1Id, argument1Id, argument1Type);
    Argument arg2 = new Argument(argument2Id, argument2Id, argument2Type);
   
    IndividualPropertyAtom propertyAtom = new IndividualPropertyAtom(predicateName, arg1, arg2);

    return propertyAtom; 
  }
View Full Code Here

   
    Label featurePredicatName = new Label(geoOntology + "Feature", geoOntology, "geo");
    Label latPredicatName = new Label(geoOntology + "lat", geoOntology, "geo");
    Label lngPredicatName = new Label(geoOntology + "long", geoOntology, "geo");
   
    ClassAtom c1 = new ClassAtom(featurePredicatName, new Argument("arg1", "arg1", ArgumentType.ATTRIBUTE));
    IndividualPropertyAtom p1 = new IndividualPropertyAtom(latPredicatName,
        new Argument("arg1", "arg1", ArgumentType.ATTRIBUTE),
        new Argument("arg2", "arg2", ArgumentType.ATTRIBUTE));
    IndividualPropertyAtom p2 = new IndividualPropertyAtom(lngPredicatName,
        new Argument("arg1", "arg1", ArgumentType.ATTRIBUTE),
        new Argument("arg3", "arg3", ArgumentType.ATTRIBUTE));
//    ClassAtom c2 = new ClassAtom(featurePredicatName, new Argument("arg2", "arg2", ArgumentType.ATTRIBUTE));

    semanticModel.getAtoms().add(c1);
//    semanticModel.getAtoms().add(c2);
    semanticModel.getAtoms().add(p1);
View Full Code Here

        hNodeId = ((ColumnNode)n).getHNodeId();
      } else {
        logger.debug("Node " + n.getLocalId() + " is an intermediate node.");
        String variableId = "v" + String.valueOf(variables.size() + 1);
        variables.add(variableId);
        vertexIdToArgument.put(n.getId(), new Argument(variableId, variableId, ArgumentType.VARIABLE));
        continue;
      }
     
      Attribute att = this.hNodeIdToAttribute.get(hNodeId);
      if (att == null) {
        logger.error("No attribute is associated to the column with semantic type " + n.getId());
        continue;
      }
     
      vertexIdToArgument.put(n.getId(), new Argument(att.getId(), att.getId(), ArgumentType.ATTRIBUTE));
     
      if (att.getIOType() == IOType.INPUT) {
        inputAttributesNodes.add(n);
      }
      if (att.getIOType() == IOType.OUTPUT) {
View Full Code Here

        String attId = "att" + String.valueOf(attributeList.size() + 1);
        Attribute att = new Attribute(attId, this.getUri(), n.getLabel().getLocalName(), IOType.NONE, AttributeRequirement.NONE);
        att.sethNodeId(hNodeId);
        attributeList.add(att);
       
        vertexIdToArgument.put(n.getId(), new Argument(att.getId(), att.getId(), ArgumentType.ATTRIBUTE));
      } else {
        logger.debug("Vertex " + n.getLocalId() + " is an intermediate node.");
        String variableId = "v" + String.valueOf(variables.size() + 1);
        this.variables.add(variableId);

        vertexIdToArgument.put(n.getId(), new Argument(variableId, variableId, ArgumentType.VARIABLE));
      }
    }

    for (Node n : treeModel.vertexSet()) {
     
View Full Code Here

TOP

Related Classes of edu.isi.karma.rep.model.Argument

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.