Package com.clarkparsia.pellet.rules.model

Examples of com.clarkparsia.pellet.rules.model.AtomIVariable


   

    ATermAppl i = term( "i" );
    ATermAppl C = term( "C" );
    ATermAppl D = term( "D" );
    AtomIVariable x = new AtomIVariable( "x" );

    kb.addClass( C );
    kb.addClass( D );
    kb.addSubClass( C, D );
    kb.addIndividual( i );
View Full Code Here


   

    ATermAppl i = term( "i" );
    ATermAppl C = term( "C" );
    ATermAppl D = term( "D" );
    AtomIVariable x = new AtomIVariable( "x" );

    kb.addClass( C );
    kb.addClass( D );
    kb.addSubClass( C, D );
    kb.addIndividual( i );
View Full Code Here

   

    ATermAppl i = term( "i" );
    ATermAppl R = term( "R" );
    ATermAppl l = literal( "l" );
    AtomIVariable v = new AtomIVariable( "v" );
    AtomDConstant c = new AtomDConstant( l );

    kb.addIndividual( i );
    kb.addDatatypeProperty( R );
    kb.addPropertyValue( R, i, l );
View Full Code Here

    ATermAppl i = term( "i" );
    ATermAppl C = term( "C" );
    ATermAppl D = term( "D" );
    ATermAppl CuD = or( C, D );
    AtomIVariable x = new AtomIVariable( "x" );

    kb.addClass( C );
    kb.addClass( D );
    kb.addClass( CuD );
    kb.addIndividual( i );
View Full Code Here

    ATermAppl b = term( "b" );
    ATermAppl c = term( "c" );
    ATermAppl p = term( "p" );
    ATermAppl q = term( "q" );

    AtomIVariable x = new AtomIVariable( "x" );
    AtomIVariable y = new AtomIVariable( "y" );

    kb.addObjectProperty( p );
    kb.addObjectProperty( q );
    kb.addTransitiveProperty( p );
   
View Full Code Here

    kb.addIndividual( a );
    kb.addIndividual( b );

    kb.addEquivalentClass( C, some( p, TOP ) );
   
    AtomIVariable x = new AtomIVariable( "x" );
    AtomIVariable y = new AtomIVariable( "y" );
    List<RuleAtom> body = new ArrayList<RuleAtom>();
    body.add( new ClassAtom( C, x ) );
    List<RuleAtom> head = new ArrayList<RuleAtom>();
    head.add( new IndividualPropertyAtom( p, x, y ) );
    Rule rule = new Rule( head, body );
View Full Code Here

   
    kb.addPropertyValue( p, a, a );
    kb.addPropertyValue( p, b, a );
    kb.addPropertyValue( p, b, c );
   
    AtomIVariable x = new AtomIVariable( "x" )
    List<RuleAtom> body = Arrays.<RuleAtom>asList( new IndividualPropertyAtom( p, x, x ) );
    List<RuleAtom> head = Arrays.<RuleAtom>asList( new ClassAtom( A, x ) );
 
    kb.addRule( new Rule( head, body ) );
 
View Full Code Here

   
    kb.addPropertyValue( p, a, b );
    kb.addPropertyValue( p, b, c );
    kb.addPropertyValue( p, c, c );
   
    AtomIVariable x = new AtomIVariable( "x" )
    List<RuleAtom> body = Arrays.<RuleAtom>asList( new IndividualPropertyAtom( p, x, new AtomIConstant( c ) ) );
    List<RuleAtom> head = Arrays.<RuleAtom>asList( new ClassAtom( A, x ) );
 
    kb.addRule( new Rule( head, body ) );
 
View Full Code Here

    kb.addPropertyValue(p, b, TermFactory.literal(true));

    ATermAppl t = TermFactory.literal("t");
    ATermAppl f = TermFactory.literal("f");

    AtomIVariable x = new AtomIVariable("x");

    List<RuleAtom> body = Arrays.<RuleAtom> asList(new ClassAtom(A, x), new DatavaluedPropertyAtom(p,
                    new AtomIConstant(b), new AtomDConstant(TermFactory.literal(true))));
    List<RuleAtom> head = Arrays.<RuleAtom> asList(new DatavaluedPropertyAtom(q, x, new AtomDConstant(t)));
    kb.addRule(new Rule(head, body));
View Full Code Here

    kb.addType(b, B);

    ATermAppl t = TermFactory.literal("t");
    ATermAppl f = TermFactory.literal("f");

    AtomIVariable x = new AtomIVariable("x");

    List<RuleAtom> body = Arrays.<RuleAtom> asList(new ClassAtom(A, x), new ClassAtom(B, new AtomIConstant(b)));
    List<RuleAtom> head = Arrays.<RuleAtom> asList(new DatavaluedPropertyAtom(q, x, new AtomDConstant(t)));
    kb.addRule(new Rule(head, body));
View Full Code Here

TOP

Related Classes of com.clarkparsia.pellet.rules.model.AtomIVariable

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.