Tabnine Logo
OWLOntology.classesInSignature
Code IndexAdd Tabnine to your IDE (free)

How to use
classesInSignature
method
in
org.semanticweb.owlapi.model.OWLOntology

Best Java code snippets using org.semanticweb.owlapi.model.OWLOntology.classesInSignature (Showing top 20 results out of 315)

origin: owlcs/owlapi

  @Override
  protected Stream<OWLClass> getEntities(OWLOntology ont) {
    return ont.classesInSignature();
  }
}
origin: owlcs/owlapi

  @Override
  protected Stream<OWLClass> getObjects(OWLOntology ont) {
    return ont.classesInSignature();
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

  @Override
  protected Stream<OWLClass> getEntities(OWLOntology ont) {
    return ont.classesInSignature();
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

  @Override
  protected Stream<OWLClass> getObjects(OWLOntology ont) {
    return ont.classesInSignature();
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  protected Stream<OWLClass> getEntities(OWLOntology ont) {
    return ont.classesInSignature();
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Double recomputeMetric() {
  AtomicInteger total = new AtomicInteger();
  AtomicInteger count = new AtomicInteger();
  Set<OWLClass> processedClasses = new HashSet<>();
  getOntologies().forEach(ont -> ont.classesInSignature().filter(processedClasses::add)
    .forEach(cls -> processClass(total, count, ont, cls)));
  return Double.valueOf((double) total.get() / count.get());
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public Double recomputeMetric() {
  AtomicInteger total = new AtomicInteger();
  AtomicInteger count = new AtomicInteger();
  Set<OWLClass> processedClasses = new HashSet<>();
  getOntologies().forEach(ont -> ont.classesInSignature().filter(processedClasses::add)
    .forEach(cls -> processClass(total, count, ont, cls)));
  return Double.valueOf((double) total.get() / count.get());
}
origin: owlcs/owlapi

@Override
public Double recomputeMetric() {
  AtomicInteger total = new AtomicInteger();
  AtomicInteger count = new AtomicInteger();
  Set<OWLClass> processedClasses = new HashSet<>();
  getOntologies().forEach(ont -> ont.classesInSignature().filter(processedClasses::add)
    .forEach(cls -> processClass(total, count, ont, cls)));
  return Double.valueOf((double) total.get() / count.get());
}
origin: owlcs/owlapi

/**
 * Instantiates a new amalgamate sub class axioms.
 *
 * @param dataFactory the data factory
 * @param ontologies the ontologies to use
 */
public AmalgamateSubClassAxioms(OWLDataFactory dataFactory,
  Collection<OWLOntology> ontologies) {
  super(dataFactory);
  checkNotNull(ontologies, "ontologies cannot be null");
  ontologies.forEach(o -> o.classesInSignature().forEach(cls -> amalgamate(o, cls)));
}
origin: net.sourceforge.owlapi/owlapi-distribution

/**
 * Instantiates a new amalgamate sub class axioms.
 *
 * @param dataFactory the data factory
 * @param ontologies the ontologies to use
 */
public AmalgamateSubClassAxioms(OWLDataFactory dataFactory,
  Collection<OWLOntology> ontologies) {
  super(dataFactory);
  checkNotNull(ontologies, "ontologies cannot be null");
  ontologies.forEach(o -> o.classesInSignature().forEach(cls -> amalgamate(o, cls)));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

/**
 * Instantiates a new amalgamate sub class axioms.
 *
 * @param dataFactory the data factory
 * @param ontologies the ontologies to use
 */
public AmalgamateSubClassAxioms(OWLDataFactory dataFactory,
  Collection<OWLOntology> ontologies) {
  super(dataFactory);
  checkNotNull(ontologies, "ontologies cannot be null");
  ontologies.forEach(o -> o.classesInSignature().forEach(cls -> amalgamate(o, cls)));
}
origin: owlcs/owlapi

@Override
public Integer recomputeMetric() {
  Set<OWLClass> processedClasses = new HashSet<>();
  OptionalLong max = getOntologies()
    .flatMapToLong(o -> o.classesInSignature().filter(processedClasses::add)
      .mapToLong(
        cls -> equivalent(o.equivalentClassesAxioms(cls), OWLClassExpression.class)
          .filter(d -> !d.isAnonymous()).count()))
    .max();
  return Integer.valueOf((int) max.orElse(0L));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Integer recomputeMetric() {
  Set<OWLClass> processedClasses = new HashSet<>();
  OptionalLong max = getOntologies()
    .flatMapToLong(o -> o.classesInSignature().filter(processedClasses::add)
      .mapToLong(
        cls -> equivalent(o.equivalentClassesAxioms(cls), OWLClassExpression.class)
          .filter(d -> !d.isAnonymous()).count()))
    .max();
  return Integer.valueOf((int) max.orElse(0L));
}
origin: net.sourceforge.owlapi/owlapi-tools

@Override
public Integer recomputeMetric() {
  Set<OWLClass> processedClasses = new HashSet<>();
  OptionalLong max = getOntologies()
    .flatMapToLong(o -> o.classesInSignature().filter(processedClasses::add)
      .mapToLong(
        cls -> equivalent(o.equivalentClassesAxioms(cls), OWLClassExpression.class)
          .filter(d -> !d.isAnonymous()).count()))
    .max();
  return Integer.valueOf((int) max.orElse(0L));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public Integer recomputeMetric() {
  Set<OWLClass> processedClasses = new HashSet<>();
  OptionalLong max = getOntologies()
    .flatMapToLong(o -> o.classesInSignature().filter(processedClasses::add)
      .mapToLong(
        cls -> equivalent(o.equivalentClassesAxioms(cls), OWLClassExpression.class)
          .filter(d -> !d.isAnonymous()).count()))
    .max();
  return Integer.valueOf((int) max.orElse(0L));
}
origin: owlcs/owlapi

protected Set<OWLEntity> getEntitiesThatRequireNamespaces() {
  Set<OWLEntity> result = new HashSet<>();
  add(result, ontology.classesInSignature());
  add(result, ontology.objectPropertiesInSignature());
  add(result, ontology.dataPropertiesInSignature());
  add(result, ontology.individualsInSignature());
  add(result, ontology.annotationPropertiesInSignature());
  return result;
}
origin: net.sourceforge.owlapi/owlapi-distribution

protected Set<OWLEntity> getEntitiesThatRequireNamespaces() {
  Set<OWLEntity> result = new HashSet<>();
  add(result, ontology.classesInSignature());
  add(result, ontology.objectPropertiesInSignature());
  add(result, ontology.dataPropertiesInSignature());
  add(result, ontology.individualsInSignature());
  add(result, ontology.annotationPropertiesInSignature());
  return result;
}
origin: owlcs/owlapi

private void renderInOntologySignatureEntities(Collection<IRI> illegalPuns) {
  renderEntities(ontology.annotationPropertiesInSignature(),
    ANNOTATION_PROPERTIES_BANNER_TEXT, illegalPuns);
  renderEntities(ontology.datatypesInSignature(), DATATYPES_BANNER_TEXT, illegalPuns);
  renderEntities(ontology.objectPropertiesInSignature(), OBJECT_PROPERTIES_BANNER_TEXT,
    illegalPuns);
  renderEntities(ontology.dataPropertiesInSignature(), DATA_PROPERTIES_BANNER_TEXT,
    illegalPuns);
  renderEntities(ontology.classesInSignature(), CLASSES_BANNER_TEXT, illegalPuns);
  renderEntities(ontology.individualsInSignature(), INDIVIDUALS_BANNER_TEXT, illegalPuns);
}
origin: net.sourceforge.owlapi/owlapi-distribution

private void renderInOntologySignatureEntities(Collection<IRI> illegalPuns) {
  renderEntities(ontology.annotationPropertiesInSignature(),
    ANNOTATION_PROPERTIES_BANNER_TEXT, illegalPuns);
  renderEntities(ontology.datatypesInSignature(), DATATYPES_BANNER_TEXT, illegalPuns);
  renderEntities(ontology.objectPropertiesInSignature(), OBJECT_PROPERTIES_BANNER_TEXT,
    illegalPuns);
  renderEntities(ontology.dataPropertiesInSignature(), DATA_PROPERTIES_BANNER_TEXT,
    illegalPuns);
  renderEntities(ontology.classesInSignature(), CLASSES_BANNER_TEXT, illegalPuns);
  renderEntities(ontology.individualsInSignature(), INDIVIDUALS_BANNER_TEXT, illegalPuns);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

private void renderInOntologySignatureEntities(Collection<IRI> illegalPuns) {
  renderEntities(ontology.annotationPropertiesInSignature(),
    ANNOTATION_PROPERTIES_BANNER_TEXT, illegalPuns);
  renderEntities(ontology.datatypesInSignature(), DATATYPES_BANNER_TEXT, illegalPuns);
  renderEntities(ontology.objectPropertiesInSignature(), OBJECT_PROPERTIES_BANNER_TEXT,
    illegalPuns);
  renderEntities(ontology.dataPropertiesInSignature(), DATA_PROPERTIES_BANNER_TEXT,
    illegalPuns);
  renderEntities(ontology.classesInSignature(), CLASSES_BANNER_TEXT, illegalPuns);
  renderEntities(ontology.individualsInSignature(), INDIVIDUALS_BANNER_TEXT, illegalPuns);
}
org.semanticweb.owlapi.modelOWLOntologyclassesInSignature

Popular methods of OWLOntology

  • getOWLOntologyManager
    Gets the manager that manages this ontology. The manager is used by various methods on OWLOntology t
  • getOntologyID
    Gets the identity of this ontology (i.e. ontology IRI + version IRI).
  • getAxioms
  • getClassesInSignature
    Gets the classes that are in the signature of this ontology, and possibly the imports closure of thi
  • getObjectPropertiesInSignature
    Gets the object properties that are in the signature of this ontology, and possibly the imports clos
  • getDataPropertiesInSignature
    Gets the data properties that are in the signature of this ontology, and possibly the imports closur
  • getImportsClosure
    Gets the set of loaded ontologies that this ontology is related to via the reflexive transitive clos
  • getIndividualsInSignature
    Gets the individuals that are in the signature of this ontology, and possibly the imports closure of
  • getSubClassAxiomsForSubClass
    Gets all of the subclass axioms where the left hand side (the subclass) is equal to the specified cl
  • containsAxiom
    Determines if this ontology, and possibly the imports closure, contains the specified axiom.
  • getAxiomCount
  • containsEntityInSignature
    Determines if the signature of this ontology, and possibly the signature of any of the ontologies in
  • getAxiomCount,
  • containsEntityInSignature,
  • getAnnotationPropertiesInSignature,
  • containsClassInSignature,
  • getAnnotations,
  • getSignature,
  • isAnonymous,
  • axioms,
  • getEquivalentClassesAxioms

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Table (org.hibernate.mapping)
    A relational table
  • Top PhpStorm 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