Examples of addAltEntry()


Examples of com.hp.hpl.jena.ontology.OntDocumentManager.addAltEntry()

    return inferenceModel.size();
  }

  private void setUpAltEntries() throws IOException {
    OntDocumentManager documentManager = baseModel.getDocumentManager();
    documentManager.addAltEntry("http://evolizer.org/ontologies/evolizer-nl/2010/11/annotations.owl", fsPathFor("ontologies/local_evolizer_annotations_10_11"));
    documentManager.addAltEntry("http://evolizer.org/ontologies/seon/2009/06/java.owl", fsPathFor("ontologies/local_seon_java_09_06"));
    documentManager.addAltEntry("http://evolizer.org/ontologies/seon/2010/11/java-synonyms.owl", fsPathFor("ontologies/local_seon_java_synonyms_10_11"));
  }

  private void readOntologies() {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntDocumentManager.addAltEntry()

  }

  private void setUpAltEntries() throws IOException {
    OntDocumentManager documentManager = baseModel.getDocumentManager();
    documentManager.addAltEntry("http://evolizer.org/ontologies/evolizer-nl/2010/11/annotations.owl", fsPathFor("ontologies/local_evolizer_annotations_10_11"));
    documentManager.addAltEntry("http://evolizer.org/ontologies/seon/2009/06/java.owl", fsPathFor("ontologies/local_seon_java_09_06"));
    documentManager.addAltEntry("http://evolizer.org/ontologies/seon/2010/11/java-synonyms.owl", fsPathFor("ontologies/local_seon_java_synonyms_10_11"));
  }

  private void readOntologies() {
    String[] ontUris = new String[] {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntDocumentManager.addAltEntry()

  private void setUpAltEntries() throws IOException {
    OntDocumentManager documentManager = baseModel.getDocumentManager();
    documentManager.addAltEntry("http://evolizer.org/ontologies/evolizer-nl/2010/11/annotations.owl", fsPathFor("ontologies/local_evolizer_annotations_10_11"));
    documentManager.addAltEntry("http://evolizer.org/ontologies/seon/2009/06/java.owl", fsPathFor("ontologies/local_seon_java_09_06"));
    documentManager.addAltEntry("http://evolizer.org/ontologies/seon/2010/11/java-synonyms.owl", fsPathFor("ontologies/local_seon_java_synonyms_10_11"));
  }

  private void readOntologies() {
    String[] ontUris = new String[] {
        "http://evolizer.org/ontologies/evolizer-nl/2010/11/annotations.owl",
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntDocumentManager.addAltEntry()

    try {
      String dir = EvolizerOntologyPlugin.getDefault().getAbsoluteFSPath(ONTOLOGY_DIR);

      // Sem. Web defaults
      documentManager.addAltEntry(RDF.BASE, "file:" + dir + RDF.LOCAL);
      documentManager.addAltEntry(RDFS.BASE, "file:" + dir + RDFS.LOCAL);
      documentManager.addAltEntry(OWL.BASE, "file:" + dir + OWL.LOCAL);
      documentManager.addAltEntry(DCES.BASE, "file:" + dir + DCES.LOCAL);

      // Seon defaults
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntDocumentManager.addAltEntry()

    try {
      String dir = EvolizerOntologyPlugin.getDefault().getAbsoluteFSPath(ONTOLOGY_DIR);

      // Sem. Web defaults
      documentManager.addAltEntry(RDF.BASE, "file:" + dir + RDF.LOCAL);
      documentManager.addAltEntry(RDFS.BASE, "file:" + dir + RDFS.LOCAL);
      documentManager.addAltEntry(OWL.BASE, "file:" + dir + OWL.LOCAL);
      documentManager.addAltEntry(DCES.BASE, "file:" + dir + DCES.LOCAL);

      // Seon defaults
      documentManager.addAltEntry(SeonRelations.BASE, "file:" + dir + SeonRelations.LOCAL);
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntDocumentManager.addAltEntry()

      String dir = EvolizerOntologyPlugin.getDefault().getAbsoluteFSPath(ONTOLOGY_DIR);

      // Sem. Web defaults
      documentManager.addAltEntry(RDF.BASE, "file:" + dir + RDF.LOCAL);
      documentManager.addAltEntry(RDFS.BASE, "file:" + dir + RDFS.LOCAL);
      documentManager.addAltEntry(OWL.BASE, "file:" + dir + OWL.LOCAL);
      documentManager.addAltEntry(DCES.BASE, "file:" + dir + DCES.LOCAL);

      // Seon defaults
      documentManager.addAltEntry(SeonRelations.BASE, "file:" + dir + SeonRelations.LOCAL);
    } catch (IOException e) {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntDocumentManager.addAltEntry()

      // Sem. Web defaults
      documentManager.addAltEntry(RDF.BASE, "file:" + dir + RDF.LOCAL);
      documentManager.addAltEntry(RDFS.BASE, "file:" + dir + RDFS.LOCAL);
      documentManager.addAltEntry(OWL.BASE, "file:" + dir + OWL.LOCAL);
      documentManager.addAltEntry(DCES.BASE, "file:" + dir + DCES.LOCAL);

      // Seon defaults
      documentManager.addAltEntry(SeonRelations.BASE, "file:" + dir + SeonRelations.LOCAL);
    } catch (IOException e) {
      throw new EvolizerRuntimeException("Error while resolving ontology directory.", e); // TODO own exception?
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntDocumentManager.addAltEntry()

      documentManager.addAltEntry(RDFS.BASE, "file:" + dir + RDFS.LOCAL);
      documentManager.addAltEntry(OWL.BASE, "file:" + dir + OWL.LOCAL);
      documentManager.addAltEntry(DCES.BASE, "file:" + dir + DCES.LOCAL);

      // Seon defaults
      documentManager.addAltEntry(SeonRelations.BASE, "file:" + dir + SeonRelations.LOCAL);
    } catch (IOException e) {
      throw new EvolizerRuntimeException("Error while resolving ontology directory.", e); // TODO own exception?
    }
  }
}
View Full Code Here

Examples of com.hp.hpl.jena.util.LocationMapper.addAltEntry()

     * Test that @include supports fileManger redirections
     */
    public void testIncludeRedirect() {
        assertFalse( checkIncludeFound("file:testing/reasoners/importTest.rules") );
        LocationMapper lm = FileManager.get().getLocationMapper();
        lm.addAltEntry("file:testing/reasoners/includeAlt.rules",
                     "file:testing/reasoners/include.rules");
        assertTrue( checkIncludeFound("file:testing/reasoners/importTest.rules") );
        lm.removeAltEntry("file:testing/reasoners/includeAlt.rules");
    }
   
View Full Code Here

Examples of com.hp.hpl.jena.util.LocationMapper.addAltEntry()

     * Test that @include supports fileManger redirections
     */
    public void testIncludeRedirect() {
        assertFalse( checkIncludeFound("file:testing/reasoners/importTest.rules") );
        LocationMapper lm = FileManager.get().getLocationMapper();
        lm.addAltEntry("file:testing/reasoners/includeAlt.rules",
                     "file:testing/reasoners/include.rules");
        assertTrue( checkIncludeFound("file:testing/reasoners/importTest.rules") );
        lm.removeAltEntry("file:testing/reasoners/includeAlt.rules");
    }
   
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.