Package org.mindswap.pellet.jena

Examples of org.mindswap.pellet.jena.JenaLoader


    }
  }

  @Test
  public void testInvalidTransitivity2() {
    KBLoader[] loaders = { new JenaLoader() };
    for( KBLoader loader : loaders ) {
      KnowledgeBase kb = loader.createKB( base + "invalidTransitivity.owl" );

      for( Role r : kb.getRBox().getRoles() ) {
        if ( !ATermUtils.isBuiltinProperty( r.getName() ) ) {
View Full Code Here


    return ProfileUtils.mb( mem );
  }

  public Collection<Result<Task>> profile(String... files) {
    KBLoader loader = (loaderType == LoaderType.JENA)
      ? new JenaLoader()
      : new OWLAPILoader();
   
    loader.setIgnoreImports(!imports);
   
    KnowledgeBase kb = loader.getKB();
View Full Code Here

  public void testTicket424() {
    classes(A, B, C, D, E, F, G);
    objectProperties(p, q, r, s);


    KBLoader loader = new JenaLoader();
   
    KnowledgeBase kb = loader.createKB( new String[] { "file:" + PelletTestSuite.base + "misc/ticket-424-test-case.owl" } );
   
    Taxonomy<ATermAppl> toldTaxonomy = kb.getToldTaxonomy();
       
    try {
View Full Code Here

    boolean savedValue = PelletOptions.DISABLE_EL_CLASSIFIER ;

    try {
      PelletOptions.DISABLE_EL_CLASSIFIER = false;

      KBLoader loader = new JenaLoader();

      KnowledgeBase kb = loader.createKB( new String[] { "file:" + PelletTestSuite.base + "misc/ticket-424-test-case.owl" } );

      assertEquals( SimplifiedELClassifier.class, kb.getTaxonomyBuilder().getClass() );
    }
    finally {
      PelletOptions.DISABLE_EL_CLASSIFIER = savedValue;
View Full Code Here

    boolean savedValue = PelletOptions.DISABLE_EL_CLASSIFIER ;

    try {
      PelletOptions.DISABLE_EL_CLASSIFIER = true;

      KBLoader loader = new JenaLoader();

      KnowledgeBase kb = loader.createKB( new String[] { "file:" + PelletTestSuite.base + "misc/ticket-424-test-case.owl" } );

      assertFalse( SimplifiedELClassifier.class.equals( kb.getTaxonomyBuilder().getClass() ) );
    }
    finally {
      PelletOptions.DISABLE_EL_CLASSIFIER = savedValue;
View Full Code Here

    return getLoader( loaderName );
  }

  protected KBLoader getLoader(String loaderName) {
    if( loaderName.equalsIgnoreCase( "Jena" ) )
      loader = new JenaLoader();
    else if( loaderName.equalsIgnoreCase( "OWLAPIv3" ) )
      loader = new OWLAPILoader();
    else if( loaderName.equalsIgnoreCase( "OWLAPI" ) )
      loader = new org.mindswap.pellet.owlapi.OWLAPILoader();
    else if( loaderName.equalsIgnoreCase( "KRSS" ) )
View Full Code Here

    }   
  }
 
  @Test
  public void testInvalidTransitivity2() {
    KBLoader[] loaders = { new JenaLoader() };
    for( KBLoader loader : loaders ) {
      KnowledgeBase kb = loader.createKB( base + "invalidTransitivity.owl" );
     
      for( Role r : kb.getRBox().getRoles() ) {
        if ( !ATermUtils.isBuiltinProperty( r.getName() ) ) {
View Full Code Here

  public void testTicket424() {
    classes(A, B, C, D, E, F, G);
    objectProperties(p, q, r, s);


    KBLoader loader = new JenaLoader();
   
    KnowledgeBase kb = loader.createKB( new String[] { "file:" + PelletTestSuite.base + "misc/ticket-424-test-case.owl" } );
   
    Taxonomy<ATermAppl> toldTaxonomy = kb.getToldTaxonomy();
       
    try {
View Full Code Here

    boolean savedValue = PelletOptions.DISABLE_EL_CLASSIFIER ;

    try {
      PelletOptions.DISABLE_EL_CLASSIFIER = false;

      KBLoader loader = new JenaLoader();

      KnowledgeBase kb = loader.createKB( new String[] { "file:" + PelletTestSuite.base + "misc/ticket-424-test-case.owl" } );

      assertEquals( SimplifiedELClassifier.class, kb.getTaxonomyBuilder().getClass() );
    }
    finally {
      PelletOptions.DISABLE_EL_CLASSIFIER = savedValue;
View Full Code Here

    boolean savedValue = PelletOptions.DISABLE_EL_CLASSIFIER ;

    try {
      PelletOptions.DISABLE_EL_CLASSIFIER = true;

      KBLoader loader = new JenaLoader();

      KnowledgeBase kb = loader.createKB( new String[] { "file:" + PelletTestSuite.base + "misc/ticket-424-test-case.owl" } );

      assertFalse( SimplifiedELClassifier.class.equals( kb.getTaxonomyBuilder().getClass() ) );
    }
    finally {
      PelletOptions.DISABLE_EL_CLASSIFIER = savedValue;
View Full Code Here

TOP

Related Classes of org.mindswap.pellet.jena.JenaLoader

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.