Package org.semanticweb.owl.model

Examples of org.semanticweb.owl.model.OWLDataType


     * @return <code>true</code> if the specified data range expression is the top data range
     *         or a built-in infinite datatype; <code>false</code> otherwise
     */
    protected static boolean isTopEquivalentDataRange(OWLDataRange dataRange) {
        if (dataRange.isDataType()){
            OWLDataType dataType = dataRange.asOWLDataType();
            return (dataType.isTopDataType() || (dataType.isBuiltIn() && !dataType.getBuiltInDatatype().isFinite()));
        }
        else return false;
    }
View Full Code Here


        else
          return factory.getOWLUntypedConstant( lexValue, lang.toString() );
      }
      else {
        URI dtypeURI = URI.create( dtype.toString() );
        OWLDataType datatype = factory.getOWLDataType( dtypeURI );
        return factory.getOWLTypedConstant( lexValue, datatype );
      }
    }
View Full Code Here

      else
        obj = factory.getOWLUntypedConstant( lexValue, lang.toString() );
    }
    else {
      URI dtypeURI = URI.create( dtype.toString() );
      OWLDataType datatype = factory.getOWLDataType( dtypeURI );
      obj = factory.getOWLTypedConstant( lexValue, datatype );
    }
  }
View Full Code Here

    obj = factory.getOWLObjectPropertyInverse( prop );
  }
 
 
  public void visitRestrictedDatatype(ATermAppl dt) {
        OWLDataType baseDatatype = factory.getOWLDataType( URI.create( ((ATermAppl) dt
        .getArgument( 0 )).getName() ) );

    Set<OWLDataRangeFacetRestriction> restrictions = new HashSet<OWLDataRangeFacetRestriction>();   
    for( ATermList list = (ATermList) dt.getArgument( 1 ); !list.isEmpty() ; list = list.getNext()) {
      ATermAppl facet = (ATermAppl) list.getFirst();
View Full Code Here

TOP

Related Classes of org.semanticweb.owl.model.OWLDataType

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.