Examples of IProperty


Examples of edu.pitt.ontology.IProperty

        addAxiom(getOWLDataFactory().getOWLDataPropertyRangeAxiom(asOWLDataProperty(),((OWLLiteral)convertOntologyObject(o)).getDatatype()));
    }
  }

  public boolean isInverseOf(IProperty p) {
    IProperty i = getInverseProperty();
    return (i != null)?i.equals(p):false;
  }
View Full Code Here

Examples of edu.pitt.ontology.IProperty

   */
  public boolean evaluate(Object obj){
    if(obj instanceof IInstance){
      IInstance inst = (IInstance) obj;
      // see if this instance has a value that fits this restriction
      IProperty prop = getProperty();
     
      // is property satisfied
      boolean satisfied = isPropertySatisfied(prop, inst);
     
      // check if there is evidence to contradict inverse property
      // then the instance becomes inconsistent again
      if(satisfied && isPropertySatisfied(prop.getInverseProperty(), inst)){
        satisfied = false;
      }
      return satisfied;
    }else{
      return super.evaluate(obj);
View Full Code Here

Examples of edu.pitt.ontology.IProperty

   */
  public boolean evaluate(Object obj){
    if(obj instanceof IInstance){
      IInstance inst = (IInstance) obj;
      // see if this instance has a value that fits this restriction
      IProperty prop = getProperty();
     
      // is property satisfied
      boolean satisfied = isPropertySatisfied(prop, inst);
     
      // check if there is evidence to contradict inverse property
      // then the instance becomes inconsistent again
      if(satisfied && isPropertySatisfied(prop.getInverseProperty(), inst)){
        satisfied = false;
      }
      return satisfied;
    }else{
      return super.evaluate(obj);
View Full Code Here

Examples of fr.soleil.salsa.persistence.converter.properties.IProperty

            String nodeName = p.getNodeName();
            String attribute = p.getAttribute("attribute");
            String fieldName = p.getAttribute("fieldName");
            String type = p.getAttribute("type");

            IProperty ip = null;
            IAttribute ia = null;

            if ("property".equals(nodeName)) {
                ip = new SimplePropertyConverter(fieldName, attribute);
            } else if ("simpleAttribute".equals(nodeName)) {
View Full Code Here

Examples of fr.soleil.salsa.persistence.converter.properties.IProperty

            String nodeName = p.getNodeName();
            String attribute = p.getAttribute("attribute");
            String fieldName = p.getAttribute("fieldName");
            String type = p.getAttribute("type");

            IProperty ip = null;
            IAttribute ia = null;

            if ("property".equals(nodeName)) {
                ip = new SimplePropertyConverter(fieldName, attribute);
            }
View Full Code Here

Examples of fr.soleil.salsa.persistence.converter.properties.IProperty

            String nodeName = p.getNodeName();
            String attribute = p.getAttribute("attribute");
            String fieldName = p.getAttribute("fieldName");
            String type = p.getAttribute("type");

            IProperty ip = null;
            IAttribute ia = null;

            if ("property".equals(nodeName)) {
                ip = new SimplePropertyConverter(fieldName, attribute);
            }
View Full Code Here

Examples of fr.soleil.salsa.persistence.converter.properties.IProperty

            String nodeName = p.getNodeName();
            String attribute = p.getAttribute("attribute");
            String fieldName = p.getAttribute("fieldName");
            String type = p.getAttribute("type");
         
            IProperty ip = null;
            IAttribute ia = null;

            if ("property".equals(nodeName)) {
                ip = new SimplePropertyConverter(fieldName, attribute);
            }
View Full Code Here

Examples of fr.soleil.salsa.persistence.converter.properties.IProperty

            String nodeName = p.getNodeName();
            String attribute = p.getAttribute("attribute");
            String fieldName = p.getAttribute("fieldName");
            String type = p.getAttribute("type");

            IProperty ip = null;
            IAttribute ia = null;

            if ("property".equals(nodeName)) {
                ip = new SimplePropertyConverter(fieldName, attribute);
            }
View Full Code Here

Examples of helma.objectmodel.IProperty

        while (e.hasMoreElements()) {
            String key = (String) e.nextElement();
            if (dbmode && key.charAt(0) == '_') {
                continue;
            }
            IProperty prop = node.get(key);

            if (prop != null) {
                boolean validName = isValidElementName(key);
                String elementName;
                String propName;

                if (validName) {
                    elementName = key;
                    propName = null;
                } else {
                    elementName = "property";
                    propName = key;
                }

                int type = prop.getType();

                if (type == IProperty.NODE) {
                    write(prop.getNodeValue(), elementName, propName, level);
                } else {
                    writeProperty(prop, elementName, propName);
                }
            }
        }
View Full Code Here

Examples of helma.objectmodel.IProperty

                    if (columnName != null) {
                        DbMapping dbmap = nonvirtual.getDbMapping();
                        String propertyName = dbmap.columnNameToProperty(columnName);
                        if (propertyName == null)
                            propertyName = columnName;
                        IProperty property = nonvirtual.get(propertyName);
                        if (property != null) {
                            value = property.getStringValue();
                        }
                        if (value == null) {
                            if (columnName.equalsIgnoreCase(dbmap.getIDField())) {
                                value = nonvirtual.getID();
                            } else if (columnName.equalsIgnoreCase(dbmap.getNameField())) {
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.