Package com.hp.hpl.jena.ontology

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


  }

  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

  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

    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

    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

      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

      // 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

      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

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.