Examples of addSubProperty()


Examples of edu.pitt.dbmi.nlp.noble.ontology.IProperty.addSubProperty()

      if(tp != null){
        tp.setInverseProperty((IProperty)convertResource(target,sp.getInverseProperty()));
        IProperty [] sub = sp.getSubProperties();
        if(sub != null && sub.length > 0){
          for(IProperty p: (IProperty []) convertResources(target,sub,IProperty.class)){
            tp.addSubProperty(p);
          }
        }
        IProperty [] sup = sp.getSuperProperties();
        if(sup != null && sup.length > 0){
          for(IProperty p: (IProperty []) convertResources(target,sup,IProperty.class)){
View Full Code Here

Examples of edu.pitt.ontology.IProperty.addSubProperty()

      if(tp != null){
        tp.setInverseProperty((IProperty)convertResource(target,sp.getInverseProperty()));
        IProperty [] sub = sp.getSubProperties();
        if(sub != null && sub.length > 0){
          for(IProperty p: (IProperty []) convertResources(target,sub,IProperty.class)){
            tp.addSubProperty(p);
          }
        }
        IProperty [] sup = sp.getSuperProperties();
        if(sup != null && sup.length > 0){
          for(IProperty p: (IProperty []) convertResources(target,sup,IProperty.class)){
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addSubProperty()

    // first add the ABox assertions to make sure none is ignored
    kb.addPropertyValue( p, a, b );
    kb.addPropertyValue( q, a, b );

    // add the subproperty axiom later
    kb.addSubProperty( p, q );
    kb.addInverseProperty( p, invP );
    kb.addInverseProperty( q, invQ );

    // force b to be merged to one of c or d
    kb.addType( b, or( value( c ), value( d ) ) );
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addSubProperty()

    kb.addObjectProperty( s );

    kb.addTransitiveProperty( r );
    kb.addTransitiveProperty( s );

    kb.addSubProperty( r, p );
    kb.addSubProperty( s, p );

    kb.addIndividual( a );
    kb.addIndividual( b );
    kb.addIndividual( c );
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addSubProperty()

    kb.addTransitiveProperty( r );
    kb.addTransitiveProperty( s );

    kb.addSubProperty( r, p );
    kb.addSubProperty( s, p );

    kb.addIndividual( a );
    kb.addIndividual( b );
    kb.addIndividual( c );
    kb.addIndividual( d );
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addSubProperty()

    // first add the ABox assertions to make sure none is ignored
    kb.addPropertyValue( p, a, b );
    kb.addPropertyValue( q, a, b );

    // add the subproperty axiom later
    kb.addSubProperty( p, q );
    kb.addInverseProperty( p, invP );
    kb.addInverseProperty( q, invQ );

    // force b to be merged to one of c or d
    kb.addType( b, or( value( c ), value( d ) ) );
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addSubProperty()

    ATermAppl c = term( "c" );

    kb.addObjectProperty( p );
    kb.addObjectProperty( q );
    kb.addObjectProperty( r );
    kb.addSubProperty( list( p, q ), r );

    kb.addClass( C );
    kb.addClass( D );
    kb.addSubClass( C, some( p, some( q, all( inv( r ), D ) ) ) );
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addSubProperty()

    ATermAppl d = term( "d" );
   
    kb.addObjectProperty( p );
    kb.addObjectProperty( q );
    kb.addObjectProperty( r );
    kb.addSubProperty( list( p, q, r ), q );
   
    kb.addClass( B );
    kb.addClass( C );
    kb.addClass( D );
    kb.addSubClass( B, some( p, some( q, some( r, D ) ) ) );
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addSubProperty()

    ATermAppl d = term( "d" );
   
    kb.addObjectProperty( p );
    kb.addObjectProperty( q );
    kb.addObjectProperty( r );
    kb.addSubProperty( list( p, q, r ), p );
   
    kb.addClass( C );
    kb.addClass( D );
    kb.addSubClass( C, some( p, some( q, some( r, all( inv( p ), D ) ) ) ) );
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addSubProperty()

    kb.addObjectProperty( p );
    kb.addObjectProperty( q );
    kb.addObjectProperty( r );
    kb.addObjectProperty( r2 );
    kb.addEquivalentProperty( r, r2 );
    kb.addSubProperty( list( p, q, r2 ), r );
   
    kb.addClass( C );
    kb.addClass( D );
    kb.addSubClass( C, some( p, some( q, some( r, all( inv( r ), D ) ) ) ) );
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.