Tabnine Logo
OWLAPITranslatorOWL2QL.translateAndClassify
Code IndexAdd Tabnine to your IDE (free)

How to use
translateAndClassify
method
in
it.unibz.inf.ontop.spec.ontology.owlapi.OWLAPITranslatorOWL2QL

Best Java code snippets using it.unibz.inf.ontop.spec.ontology.owlapi.OWLAPITranslatorOWL2QL.translateAndClassify (Showing top 5 results out of 315)

origin: ontop/ontop

/***
 * This method loads the given ontologies in the system. This will merge
 * these new ontologies with the existing ones in a set. Then it will
 * translate the assertions in all the ontologies into a single one, in our
 * internal representation.
 * 
 * The translation is done using our OWLAPITranslator that gets the TBox
 * part of the ontologies and filters all the DL-Lite axioms (RDFS/OWL2QL
 * and DL-Lite).
 *
 */
private ClassifiedTBox loadOntologies(OWLOntology ontology) {
  /*
   * We will keep track of the loaded ontologies and translate the TBox
   * part of them into our internal representation.
   */
  log.debug("Load ontologies called. Translating ontologies.");
  Ontology mergeOntology = owlapiTranslator.translateAndClassify(ontology);
  return mergeOntology.tbox();
}
origin: ontop/ontop

Optional<Ontology> loadOntology() throws OntologyException {
  OWLAPITranslatorOWL2QL translator = getInjector().getInstance(OWLAPITranslatorOWL2QL.class);
  try {
    return loadInputOntology()
        .map(o -> translator.translateAndClassify(o));
  }
  catch (OWLOntologyCreationException e) {
    throw new OntologyException(e.getMessage());
  }
}
origin: ontop/ontop

/**
 * Methods to get the empty concepts and roles in the ontology using the given mappings.
 * It generates SPARQL queries to check for entities.
 * @return QuestOWLEmptyEntitiesChecker class to get empty concepts and roles
 * @throws Exception
 */
public QuestOWLEmptyEntitiesChecker getEmptyEntitiesChecker() throws Exception {
  OWLOntology rootOntology = getRootOntology();
  Ontology mergeOntology = owlapiTranslator.translateAndClassify(rootOntology);
  ClassifiedTBox tBox = mergeOntology.tbox();
  return new QuestOWLEmptyEntitiesChecker(tBox, owlConnection);
}
origin: ontop/ontop

/**
 * High-level method
 */
public static OntopSemanticIndexLoader loadOntologyIndividuals(OWLOntology owlOntology, Properties properties)
    throws SemanticIndexException {
  OntopModelConfiguration defaultConfiguration = OntopModelConfiguration.defaultBuilder().build();
  OWLAPITranslatorOWL2QL translatorOWL2QL = defaultConfiguration.getInjector().getInstance(OWLAPITranslatorOWL2QL.class);
  Ontology ontology = translatorOWL2QL.translateAndClassify(owlOntology);
  SIRepository repo = new SIRepository(ontology.tbox(), defaultConfiguration.getTermFactory(),
      defaultConfiguration.getTypeFactory(),
      defaultConfiguration.getInjector().getInstance(TargetAtomFactory.class)
      );
  try {
    Connection connection = repo.createConnection();
    // load the data
    Set<OWLOntology> ontologyClosure = owlOntology.getOWLOntologyManager().getImportsClosure(owlOntology);
    OWLAPIABoxIterator aBoxIter = new OWLAPIABoxIterator(ontologyClosure, ontology.tbox(), translatorOWL2QL);
    int count = repo.insertData(connection, aBoxIter);
    LOG.debug("Inserted {} triples from the ontology.", count);
    return new OntopSemanticIndexLoaderImpl(repo, connection, properties,
        Optional.of(extractTBox(owlOntology)));
  }
  catch (SQLException e) {
    throw new SemanticIndexException(e.getMessage());
  }
}
origin: ontop/ontop

Ontology ontology = translatorOWL2QL.translateAndClassify(inputOntology);
SIRepository repo = new SIRepository(ontology.tbox(),
    obdaConfiguration.getTermFactory(), obdaConfiguration.getTypeFactory(),
it.unibz.inf.ontop.spec.ontology.owlapiOWLAPITranslatorOWL2QLtranslateAndClassify

Javadoc

Include all imports and load then into a single translated merge.

Popular methods of OWLAPITranslatorOWL2QL

  • extractOntoloyVocabulary
  • getIndividual
  • getOClass
  • getPropertyExpression
    ObjectPropertyExpression := ObjectProperty | InverseObjectProperty InverseObjectProperty := 'ObjectI
  • getValue
  • getValueOfLiteral
  • translate

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFrame (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now