Examples of addIndividual()


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

    ATermAppl p = term( "p" );
    ATermAppl q = term( "q" );
    ATermAppl plain = ATermUtils.makePlainLiteral( "lit" );
    ATermAppl typed = ATermUtils.makeTypedLiteral( "lit", XSDString.getInstance().getName() );

    kb.addIndividual( a );
    kb.addDatatypeProperty( p );
    kb.addDatatypeProperty( q );

    kb.addPropertyValue( p, a, plain );
    kb.addPropertyValue( q, a, typed );
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.