Package org.mindswap.pellet

Examples of org.mindswap.pellet.PropertyType


        else if( isObjectRestriction.isFalse() ) {
          c = node2term( qualification );
          defineDatatypeProperty( pt );
        }
        else {
          PropertyType propType = kb.getPropertyType( pt );
          if( propType == PropertyType.OBJECT ) {
                      c = ATermUtils.TOP;
                    }
                    else if( propType == PropertyType.DATATYPE ) {
                      c = ATermUtils.TOP_LIT;
View Full Code Here


   * @param p1
   * @param p2
   * @return
   */
  private boolean defineProperties(ATermAppl p1, ATermAppl p2) {
    PropertyType type1 = kb.getPropertyType( p1 );
    PropertyType type2 = kb.getPropertyType( p2 );
    if( type1 != type2 ) {
      if( type1 == PropertyType.UNTYPED ) {
        if( type2 == PropertyType.OBJECT ) {
                  defineObjectProperty( p1 );
                }
View Full Code Here

    return true;
  }

  @SuppressWarnings("unused")
  private PropertyType guessPropertyType(ATermAppl p, Node prop) {
    PropertyType roleType = kb.getPropertyType( p );
    if( roleType != PropertyType.UNTYPED ) {
          return roleType;
        }

    defineProperty( p );
View Full Code Here

    ATermAppl ot = node2term( o );

    if( builtinTerm == null ) {
      ATermAppl pt = node2term( p );
      Role role = kb.getProperty( pt );
      PropertyType type = (role == null)
        ? PropertyType.UNTYPED
        : role.getType();

      if( type == PropertyType.ANNOTATION ) {
        // Skip ontology annotations
View Full Code Here

        else if( isObjectRestriction.isFalse() ) {
          c = node2term( qualification );
          defineDatatypeProperty( pt );
        }
        else {
          PropertyType propType = kb.getPropertyType( pt );
          if( propType == PropertyType.OBJECT ) {
                      c = ATermUtils.TOP;
                    }
                    else if( propType == PropertyType.DATATYPE ) {
                      c = ATermUtils.TOP_LIT;
View Full Code Here

   * @param p1
   * @param p2
   * @return
   */
  private boolean defineProperties(ATermAppl p1, ATermAppl p2) {
    PropertyType type1 = kb.getPropertyType( p1 );
    PropertyType type2 = kb.getPropertyType( p2 );
    if( type1 != type2 ) {
      if( type1 == PropertyType.UNTYPED ) {
        if( type2 == PropertyType.OBJECT ) {
                  defineObjectProperty( p1 );
                }
View Full Code Here

    return true;
  }

  @SuppressWarnings("unused")
  private PropertyType guessPropertyType(ATermAppl p, Node prop) {
    PropertyType roleType = kb.getPropertyType( p );
    if( roleType != PropertyType.UNTYPED ) {
          return roleType;
        }

    defineProperty( p );
View Full Code Here

    ATermAppl ot = node2term( o );

    if( builtinTerm == null ) {
      ATermAppl pt = node2term( p );
      Role role = kb.getProperty( pt );
      PropertyType type = (role == null)
        ? PropertyType.UNTYPED
        : role.getType();

      if( type == PropertyType.ANNOTATION ) {
        // Skip ontology annotations
View Full Code Here

        if( !kb.isDatatypeProperty( pt ) )
          return null;
        c = node2term( qualification );
      }
      else {
        PropertyType propType = kb.getPropertyType( pt );
        if( propType == PropertyType.OBJECT )
          c = ATermUtils.TOP;
        else if( propType == PropertyType.DATATYPE )
          c = ATermUtils.TOP_LIT;
        else
View Full Code Here

TOP

Related Classes of org.mindswap.pellet.PropertyType

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.