Tabnine Logo
it.unibz.inf.ontop.spec.ontology
Code IndexAdd Tabnine to your IDE (free)

How to use it.unibz.inf.ontop.spec.ontology

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

origin: ontop/ontop

  private void ensureExistsRinv() {
    if (existsRinv == null) {
      if (property instanceof ObjectPropertyExpression) {
        ObjectPropertyExpression inv = ((ObjectPropertyExpression)property).getInverse();			
        existsRinv = inv.getDomain();	
      }
//            else {
//                DataPropertyExpression inv = ((DataPropertyExpression)property).getInverse();            
//                existsRinv = ontFactory.createPropertySomeRestriction(inv);                    
//            }
    }        
  }

origin: ontop/ontop

  @Override
  public boolean isTop() {
    return property.isTop();
  }
}
origin: it.unibz.inf.ontop/ontop-obda-core

  @Override
  public boolean isTop() {
    return property.isTop();
  }
}
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 checkSignature(ClassExpression desc) {
  if (desc instanceof OClass) {
    OClass cl = (OClass) desc;
    if (!classes.contains(cl.getName()))
      throw new IllegalArgumentException(CLASS_NOT_FOUND + desc);
  }
  else if (desc instanceof ObjectSomeValuesFrom) {
    checkSignature(((ObjectSomeValuesFrom) desc).getProperty());
  }
  else  {
    assert (desc instanceof DataSomeValuesFrom);
    checkSignature(((DataSomeValuesFrom) desc).getProperty());
  }
}
origin: ontop/ontop

private Optional<IRI> getPredicateIRI(DataRangeExpression expression) {
  if (expression instanceof Datatype) {
    return Optional.of(((Datatype) expression).getIRI());
  }
  if (expression instanceof DataPropertyRangeExpression) {
    return Optional.of(((DataPropertyRangeExpression) expression).getProperty().getIRI());
  }
  return Optional.empty();
}
origin: ontop/ontop

public Iterator<IRI> iEmptyRoles() {
  return new EmptyEntitiesIterator(onto.objectProperties().iterator(), onto.dataProperties().iterator(), conn);
}
origin: it.unibz.inf.ontop/ontop-mapping-core

private Optional<Predicate> getPredicate(DataRangeExpression expression) {
  if (expression instanceof Datatype) {
    return Optional.of(((Datatype) expression).getPredicate());
  }
  if (expression instanceof DataPropertyRangeExpression) {
    return Optional.of(((DataPropertyRangeExpression) expression).getProperty().getPredicate());
  }
  return Optional.empty();
}
origin: ontop/ontop

@Override
public void visit(OWLInverseFunctionalObjectPropertyAxiom ax) {
  // TEMPORARY FIX
  if (functionalityAxioms) {
    ObjectPropertyExpression ope = getPropertyExpression(ax.getProperty(), builder.objectProperties());
    builder.addFunctionalObjectPropertyAxiom(ope.getInverse());
  }
  else
    log.warn(NOT_SUPPORTED, ax);
}
origin: ontop/ontop

public Set<ClassExpression> getSubConcepts() {
  if (subconcepts == null) {
    subconcepts = new HashSet<>();
    for (ClassExpression con : concepts)
      subconcepts.addAll(reasoner.classesDAG().getSubRepresentatives(con));
  }
  return subconcepts;
}

origin: ontop/ontop

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

  @Override
  public int compare(DataPropertyExpression o1, DataPropertyExpression o2) {
    int compared = o1.getName().compareTo(o2.getName());
    return compared;
  }
};
origin: it.unibz.inf.ontop/ontop-obda-core

  @Override
  public int compare(OClass o1, OClass o2) {
    return o1.getName().compareTo(o2.getName());
  }
};
origin: it.unibz.inf.ontop/ontop-obda-core

@Override
public boolean isBottom() {
  return property.isBottom();
}
origin: ontop/ontop

@Override
public boolean isBottom() {
  return property.isBottom();
}
origin: it.unibz.inf.ontop/ontop-obda-core

private void checkSignature(ClassExpression desc) {
  if (desc instanceof OClass) {
    OClass cl = (OClass) desc;
    if (!classes.contains(cl.getName()))
      throw new IllegalArgumentException(CLASS_NOT_FOUND + desc);
  }
  else if (desc instanceof ObjectSomeValuesFrom) {
    checkSignature(((ObjectSomeValuesFrom) desc).getProperty());
  }
  else  {
    assert (desc instanceof DataSomeValuesFrom);
    checkSignature(((DataSomeValuesFrom) desc).getProperty());
  }
}
origin: it.unibz.inf.ontop/ontop-obda-core

  @Override
  public boolean isTop() {
    return property.isTop();
  }
}
origin: ontop/ontop

  @Override
  public boolean isTop() {
    return property.isTop();
  }
}
origin: ontop/ontop

@Override
public boolean isBottom() {
  return property.isBottom();
}
origin: it.unibz.inf.ontop/ontop-obda-core

@Override
public boolean isBottom() {
  return property.isBottom();
}
it.unibz.inf.ontop.spec.ontology

Most used classes

  • DataPropertyExpression
    Represents DataPropertyExpression from the OWL 2 QL Specification DataPropertyExpression := DataProp
  • ObjectPropertyExpression
    Represents ObjectPropertyExpression from the OWL 2 QL Specification ObjectPropertyExpression := Obje
  • OClass
    A named class. Represents Class from OWL 2 Specification
  • ClassifiedTBox
    This is the interface for the class ClassifiedTBox where we are able to retrieve all the connection
  • OntologyVocabularyCategory
  • OWLAPITranslatorOWL2QL,
  • AnnotationProperty,
  • ClassAssertion,
  • DataPropertyAssertion,
  • Equivalences,
  • EquivalencesDAG,
  • ObjectPropertyAssertion,
  • Ontology,
  • AnnotationAssertion,
  • DataSomeValuesFrom,
  • ObjectSomeValuesFrom,
  • OntologyBuilder,
  • ABoxAssertionSupplier,
  • DataPropertyRangeExpression
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