Exemplo n.º 1
0
  /* @see org.mindswap.owls.process.Input#transformInputType() */
  public boolean transformInputType() {
    OWLDataValue dv = getProperty(FLAServiceOnt.transformInputType);
    if (dv != null && Boolean.FALSE.toString().equals(dv.getLexicalValue().trim().toLowerCase()))
      return false;

    return true;
  }
Exemplo n.º 2
0
  /** @return Returns the constantValue. */
  public OWLValue getConstantValue() {
    OWLDataValue dataValue = getProperty(OWLS.Process.parameterValue);
    if (dataValue != null) {
      OWLType paramType = getParamType();
      OWLValue owlValue = null;
      if ((paramType == null) || paramType.isDataType()) owlValue = dataValue;
      else {
        String rdf = RDFUtils.addRDFTag(dataValue.getLexicalValue());
        owlValue = getOntology().parseLiteral(rdf);
      }

      return owlValue;
    }

    return null;
  }