Tabnine Logo
ClassifiedTBox.classes
Code IndexAdd Tabnine to your IDE (free)

How to use
classes
method
in
it.unibz.inf.ontop.spec.ontology.ClassifiedTBox

Best Java code snippets using it.unibz.inf.ontop.spec.ontology.ClassifiedTBox.classes (Showing top 10 results out of 315)

origin: ontop/ontop

public Iterator<IRI> iEmptyConcepts() {
  return new EmptyEntitiesIterator(onto.classes().iterator(), conn);
}
origin: ontop/ontop

public Intersection<ClassExpression> getSubConcepts(Collection<Function> atoms) {
  Intersection<ClassExpression> subc = new Intersection<>(reasoner.classesDAG());
  for (Function a : atoms) {
    Optional<IRI> optionalClassIRI = extractClassIRI(a);
    if (!optionalClassIRI.isPresent()) {
      subc.setToBottom();   // binary predicates R(x,x) cannot be matched to the anonymous part
      break;
    }
    IRI classIRI = optionalClassIRI.get();
     if (reasoner.classes().contains(classIRI))
       subc.intersectWith(reasoner.classes().get(classIRI));
     else
       subc.setToBottom();
     if (subc.isBottom())
       break;
  }
  return subc;
}

origin: ontop/ontop

if (classIRI.isPresent() && reasoner.classes().contains(classIRI.get())) {
  OClass c = reasoner.classes().get(classIRI.get());
  OClass equivalent = (OClass)reasoner.classesDAG().getCanonicalForm(c);
  if (equivalent != null && !equivalent.equals(c)) {
origin: ontop/ontop

private Assertion translate(OWLAxiom axiom) {
  try {
    if (axiom instanceof OWLClassAssertionAxiom)
      return owlapiTranslator.translate((OWLClassAssertionAxiom)axiom, tbox.classes());
    else if (axiom instanceof OWLObjectPropertyAssertionAxiom)
      return owlapiTranslator.translate((OWLObjectPropertyAssertionAxiom)axiom, tbox.objectProperties());
    else if (axiom instanceof OWLDataPropertyAssertionAxiom)
      return owlapiTranslator.translate((OWLDataPropertyAssertionAxiom)axiom, tbox.dataProperties());
  }
  catch (TranslationException | InconsistentOntologyException e) {
    return null;
  } 
  return null;
}
origin: ontop/ontop

private void setIndex(String iri, int type, int idx) {
  if (type == CLASS_TYPE) {
    OClass c = reasonerDag.classes().get(iri);
    if (reasonerDag.classesDAG().getVertex(c) == null)
      throw new RuntimeException("UNKNOWN CLASS: " + iri);
origin: it.unibz.inf.ontop/ontop-mapping-core

private void checkObjectOrAnnotationProperty(String predicateIRI, PPMappingAssertionProvenance provenance,
                       Ontology ontology)
    throws MappingOntologyMismatchException {
  /*
   * Cannot be a data property (should be either an object or an annotation property)
   */
  if (ontology.tbox().dataProperties().contains(predicateIRI))
    throw new MappingOntologyMismatchException(generatePropertyOrClassConflictMessage(predicateIRI, provenance,
        DATA_PROPERTY_STR, OBJECT_PROPERTY_STR));
  /*
   * Cannot be a class
   */
  if (ontology.tbox().classes().contains(predicateIRI))
    throw new MappingOntologyMismatchException(generatePropertyOrClassConflictMessage(predicateIRI, provenance,
        CLASS_STR, OBJECT_PROPERTY_STR));
}
origin: ontop/ontop

private void checkObjectOrAnnotationProperty(IRI predicateIRI, PPMappingAssertionProvenance provenance,
                       Ontology ontology)
    throws MappingOntologyMismatchException {
  /*
   * Cannot be a data property (should be either an object or an annotation property)
   */
  if (ontology.tbox().dataProperties().contains(predicateIRI))
    throw new MappingOntologyMismatchException(generatePropertyOrClassConflictMessage(predicateIRI, provenance,
        DATA_PROPERTY_STR, OBJECT_PROPERTY_STR));
  /*
   * Cannot be a class
   */
  if (ontology.tbox().classes().contains(predicateIRI))
    throw new MappingOntologyMismatchException(generatePropertyOrClassConflictMessage(predicateIRI, provenance,
        CLASS_STR, OBJECT_PROPERTY_STR));
}
origin: ontop/ontop

OClass c = reasonerDag.classes().get(iri);
range = cacheSI.getEntry(c);
origin: it.unibz.inf.ontop/ontop-mapping-core

if (ontology.tbox().classes().contains(predicateIRI))
  throw new MappingOntologyMismatchException(generatePropertyOrClassConflictMessage(predicateIRI, provenance,
      CLASS_STR, DATA_PROPERTY_STR));
origin: ontop/ontop

if (ontology.tbox().classes().contains(predicateIRI))
  throw new MappingOntologyMismatchException(generatePropertyOrClassConflictMessage(predicateIRI, provenance,
      CLASS_STR, DATA_PROPERTY_STR));
it.unibz.inf.ontop.spec.ontologyClassifiedTBoxclasses

Javadoc

classes

Popular methods of ClassifiedTBox

  • classesDAG
  • dataProperties
    data properties
  • dataPropertiesDAG
  • objectProperties
    object properties
  • objectPropertiesDAG
  • dataRangesDAG
    datatypes and data property ranges
  • disjointClasses
  • disjointDataProperties
  • disjointObjectProperties
  • functionalDataProperties
  • functionalObjectProperties
  • functionalObjectProperties

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • putExtra (Intent)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • From CI to AI: The AI layer in your organization
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