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

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

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

origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Stream<OWLDeclarationAxiom> declarationAxioms(OWLEntity subject) {
  return withReadLock(() -> delegate.declarationAxioms(subject));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public Stream<OWLDeclarationAxiom> declarationAxioms(OWLEntity subject) {
  return withReadLock(() -> delegate.declarationAxioms(subject));
}
origin: net.sourceforge.owlapi/owlapi-impl

@Override
public Stream<OWLDeclarationAxiom> declarationAxioms(OWLEntity subject) {
  return withReadLock(() -> delegate.declarationAxioms(subject));
}
origin: owlcs/owlapi

@Override
public Stream<OWLDeclarationAxiom> declarationAxioms(OWLEntity subject) {
  return withReadLock(() -> delegate.declarationAxioms(subject));
}
origin: owlcs/owlapi

/**
 * Writes out the declaration axioms for the specified entity.
 *
 * @param entity The entity
 * @return The axioms that were written out
 */
protected Set<OWLAxiom> writeDeclarations(OWLEntity entity) {
  Set<OWLAxiom> axioms = new HashSet<>();
  ont.declarationAxioms(entity).sorted().forEach(ax -> {
    ax.accept(this);
    axioms.add(ax);
    writeReturn();
  });
  return axioms;
}
origin: owlcs/owlapi

private static Stream<OWLAxiom> getAxioms(OWLOntology ont, OWLEntity entity) {
  return Stream.of(ont.referencingAxioms(entity), ont.declarationAxioms(entity),
    ont.annotationAssertionAxioms(entity.getIRI())).flatMap(x -> x);
}
origin: net.sourceforge.owlapi/owlapi-distribution

private static Stream<OWLAxiom> getAxioms(OWLOntology ont, OWLEntity entity) {
  return Stream.of(ont.referencingAxioms(entity), ont.declarationAxioms(entity),
    ont.annotationAssertionAxioms(entity.getIRI())).flatMap(x -> x);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

private static Stream<OWLAxiom> getAxioms(OWLOntology ont, OWLEntity entity) {
  return Stream.of(ont.referencingAxioms(entity), ont.declarationAxioms(entity),
    ont.annotationAssertionAxioms(entity.getIRI())).flatMap(x -> x);
}
origin: owlcs/owlapi

private void remove(OWLNamedIndividual ind) {
  ontologies().forEach(o -> {
    remove(o.declarationAxioms(ind), o);
    remove(o.classAssertionAxioms(ind), o);
  });
}
origin: net.sourceforge.owlapi/owlapi-distribution

private void remove(OWLDataProperty prop) {
  ontologies().forEach(o -> {
    remove(o.declarationAxioms(prop), o);
    remove(o.axioms(prop), o);
  });
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

private void remove(OWLDataProperty prop) {
  ontologies().forEach(o -> {
    remove(o.declarationAxioms(prop), o);
    remove(o.axioms(prop), o);
  });
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

private void remove(OWLNamedIndividual ind) {
  ontologies().forEach(o -> {
    remove(o.declarationAxioms(ind), o);
    remove(o.classAssertionAxioms(ind), o);
  });
}
origin: owlcs/owlapi

private void writeDeclarations(OWLEntity entity, Set<OWLAxiom> alreadyWrittenAxioms,
  Collection<IRI> illegals) {
  Collection<OWLDeclarationAxiom> axioms = asList(ont.declarationAxioms(entity).sorted());
  axioms.stream().filter(alreadyWrittenAxioms::add).forEach(this::acceptAndReturn);
  // if multiple illegal declarations already exist, they have already
  // been outputted the renderer cannot take responsibility for removing
  // them. It should not add declarations for illegally punned entities
  // here, though
  if (addMissingDeclarations && axioms.isEmpty() && !entity.isBuiltIn()
    && !illegals.contains(entity.getIRI()) && !ont.isDeclared(entity, Imports.INCLUDED)) {
    OWLDeclarationAxiom declaration =
      ont.getOWLOntologyManager().getOWLDataFactory().getOWLDeclarationAxiom(entity);
    acceptAndReturn(declaration);
  }
}
origin: owlcs/owlapi

private void remove(OWLDataProperty prop) {
  ontologies().forEach(o -> {
    remove(o.declarationAxioms(prop), o);
    remove(o.axioms(prop), o);
  });
}
origin: net.sourceforge.owlapi/owlapi-distribution

private void writeDeclarations(OWLEntity entity, Set<OWLAxiom> alreadyWrittenAxioms,
  Collection<IRI> illegals) {
  Collection<OWLDeclarationAxiom> axioms = asList(ont.declarationAxioms(entity).sorted());
  axioms.stream().filter(alreadyWrittenAxioms::add).forEach(this::acceptAndReturn);
  // if multiple illegal declarations already exist, they have already
  // been outputted the renderer cannot take responsibility for removing
  // them. It should not add declarations for illegally punned entities
  // here, though
  if (addMissingDeclarations && axioms.isEmpty() && !entity.isBuiltIn()
    && !illegals.contains(entity.getIRI()) && !ont.isDeclared(entity, Imports.INCLUDED)) {
    OWLDeclarationAxiom declaration =
      ont.getOWLOntologyManager().getOWLDataFactory().getOWLDeclarationAxiom(entity);
    acceptAndReturn(declaration);
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

private void remove(OWLNamedIndividual ind) {
  ontologies().forEach(o -> {
    remove(o.declarationAxioms(ind), o);
    remove(o.classAssertionAxioms(ind), o);
  });
}
origin: owlcs/owlapi

private boolean createGraph(OWLEntity entity, Collection<IRI> illegalPuns) {
  final List<OWLAxiom> axioms = new ArrayList<>();
  add(axioms, ontology.declarationAxioms(entity));
  entity.accept(new GraphVisitor(ontology, axioms, this::createGraph));
  if (axioms.isEmpty() && shouldInsertDeclarations() && !illegalPuns.contains(entity.getIRI())
    && OWLDocumentFormat.isMissingType(entity, ontology)) {
    axioms.add(df.getOWLDeclarationAxiom(entity));
  }
  // Don't write out duplicates for punned annotations!
  if (!punned.contains(entity.getIRI())) {
    add(axioms, ontology.annotationAssertionAxioms(entity.getIRI(), EXCLUDED));
  }
  createGraph(axioms.stream());
  return !axioms.isEmpty();
}
origin: net.sourceforge.owlapi/owlapi-distribution

private static Collection<OWLAxiom> getAxioms(OWLOntology ont, OWLLiteral entity) {
  List<OWLAxiom> axioms = asList(ont.referencingAxioms(entity, EXCLUDED));
  add(axioms, ont.declarationAxioms(entity.getDatatype()));
  return axioms;
}
origin: owlcs/owlapi

private static Collection<OWLAxiom> getAxioms(OWLOntology ont, OWLLiteral entity) {
  List<OWLAxiom> axioms = asList(ont.referencingAxioms(entity, EXCLUDED));
  add(axioms, ont.declarationAxioms(entity.getDatatype()));
  return axioms;
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

private static Collection<OWLAxiom> getAxioms(OWLOntology ont, OWLLiteral entity) {
  List<OWLAxiom> axioms = asList(ont.referencingAxioms(entity, EXCLUDED));
  add(axioms, ont.declarationAxioms(entity.getDatatype()));
  return axioms;
}
org.semanticweb.owlapi.modelOWLOntologydeclarationAxioms

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,
  • classesInSignature

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for Android Studio
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