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

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

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

origin: owlcs/owlapi

@Override
public Stream<OWLAnnotationProperty> annotationPropertiesInSignature(Imports imports) {
  return withReadLock(() -> delegate.annotationPropertiesInSignature(imports));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public Stream<OWLAnnotationProperty> annotationPropertiesInSignature(Imports imports) {
  return withReadLock(() -> delegate.annotationPropertiesInSignature(imports));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Stream<OWLAnnotationProperty> annotationPropertiesInSignature(Imports imports) {
  return withReadLock(() -> delegate.annotationPropertiesInSignature(imports));
}
origin: net.sourceforge.owlapi/owlapi-impl

@Override
public Stream<OWLAnnotationProperty> annotationPropertiesInSignature(Imports imports) {
  return withReadLock(() -> delegate.annotationPropertiesInSignature(imports));
}
origin: Galigator/openllet

private void renameObjects(final OWLOntology o)
{
  final OWLOntologyManager m = o.getOWLOntologyManager();
  final OWLEntityRenamer renamer = new OWLEntityRenamer(m, Collections.singleton(o));
  final Map<OWLEntity, IRI> entity2IRIMap = new HashMap<>();
  final AtomicInteger ai = new AtomicInteger();
  o.individualsInSignature().forEach(toRename -> entity2IRIMap.put(toRename, IRI.create("x:ind/" + ai.getAndIncrement())));
  o.classesInSignature().forEach(toRename -> entity2IRIMap.put(toRename, IRI.create("x:cls/" + ai.getAndIncrement())));
  o.annotationPropertiesInSignature().forEach(toRename -> entity2IRIMap.put(toRename, IRI.create("x:ap/" + ai.getAndIncrement())));
  o.dataPropertiesInSignature().forEach(toRename -> entity2IRIMap.put(toRename, IRI.create("x:dp/" + ai.getAndIncrement())));
  o.objectPropertiesInSignature().forEach(toRename -> entity2IRIMap.put(toRename, IRI.create("x:op/" + ai.getAndIncrement())));
  o.applyChanges(renamer.changeIRI(entity2IRIMap));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
protected Set<OWLEntity> getEntitiesThatRequireNamespaces() {
  return asUnorderedSet(
    Stream.of(
      getOntology().axioms(AxiomType.OBJECT_PROPERTY_ASSERTION).flatMap(
        ax -> ax.getProperty().objectPropertiesInSignature()),
      getOntology().axioms(AxiomType.DATA_PROPERTY_ASSERTION)
        .map(ax -> ax.getProperty().asOWLDataProperty()),
      getOntology().annotationPropertiesInSignature(Imports.INCLUDED)).flatMap(x -> x));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
protected Set<OWLEntity> getEntitiesThatRequireNamespaces() {
  return asUnorderedSet(
    Stream.of(
      getOntology().axioms(AxiomType.OBJECT_PROPERTY_ASSERTION).flatMap(
        ax -> ax.getProperty().objectPropertiesInSignature()),
      getOntology().axioms(AxiomType.DATA_PROPERTY_ASSERTION)
        .map(ax -> ax.getProperty().asOWLDataProperty()),
      getOntology().annotationPropertiesInSignature(Imports.INCLUDED)).flatMap(x -> x));
}
origin: owlcs/owlapi

@Override
protected Set<OWLEntity> getEntitiesThatRequireNamespaces() {
  return asUnorderedSet(
    Stream.of(
      getOntology().axioms(AxiomType.OBJECT_PROPERTY_ASSERTION).flatMap(
        ax -> ax.getProperty().objectPropertiesInSignature()),
      getOntology().axioms(AxiomType.DATA_PROPERTY_ASSERTION)
        .map(ax -> ax.getProperty().asOWLDataProperty()),
      getOntology().annotationPropertiesInSignature(Imports.INCLUDED)).flatMap(x -> x));
}
origin: net.sourceforge.owlapi/owlapi-parsers

@Override
protected Set<OWLEntity> getEntitiesThatRequireNamespaces() {
  return asUnorderedSet(
    Stream.of(
      getOntology().axioms(AxiomType.OBJECT_PROPERTY_ASSERTION).flatMap(
        ax -> ax.getProperty().objectPropertiesInSignature()),
      getOntology().axioms(AxiomType.DATA_PROPERTY_ASSERTION)
        .map(ax -> ax.getProperty().asOWLDataProperty()),
      getOntology().annotationPropertiesInSignature(Imports.INCLUDED)).flatMap(x -> x));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@SuppressWarnings("null")
protected AbstractMacroExpansionVisitor(OWLOntology o) {
  df = o.getOWLOntologyManager().getOWLDataFactory();
  expandExpressionMap = new HashMap<>();
  expandAssertionToMap = new HashMap<>();
  OWLAnnotationProperty ap424 = df.getOWLAnnotationProperty(IRI_IAO_0000424.getIRI());
  o.objectPropertiesInSignature()
    .forEach(p -> getAnnotationObjects(p, o.importsClosure(), ap424).forEach(
      a -> mapToExpand(p, a)));
  o.annotationPropertiesInSignature().forEach(p -> expandAssertions(o, p));
  OIO_ISEXPANSION = df.getOWLAnnotationProperty(
    IRI.create(Obo2OWLConstants.OIOVOCAB_IRI_PREFIX, "is_expansion"));
  expansionMarkerAnnotation = df.getOWLAnnotation(OIO_ISEXPANSION, df.getOWLLiteral(true));
}
origin: owlcs/owlapi

@SuppressWarnings("null")
protected AbstractMacroExpansionVisitor(OWLOntology o) {
  df = o.getOWLOntologyManager().getOWLDataFactory();
  expandExpressionMap = new HashMap<>();
  expandAssertionToMap = new HashMap<>();
  OWLAnnotationProperty ap424 = df.getOWLAnnotationProperty(IRI_IAO_0000424.getIRI());
  o.objectPropertiesInSignature()
    .forEach(p -> getAnnotationObjects(p, o.importsClosure(), ap424).forEach(
      a -> mapToExpand(p, a)));
  o.annotationPropertiesInSignature().forEach(p -> expandAssertions(o, p));
  OIO_ISEXPANSION = df.getOWLAnnotationProperty(
    IRI.create(Obo2OWLConstants.OIOVOCAB_IRI_PREFIX, "is_expansion"));
  expansionMarkerAnnotation = df.getOWLAnnotation(OIO_ISEXPANSION, df.getOWLLiteral(true));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@SuppressWarnings("null")
protected AbstractMacroExpansionVisitor(OWLOntology o) {
  df = o.getOWLOntologyManager().getOWLDataFactory();
  expandExpressionMap = new HashMap<>();
  expandAssertionToMap = new HashMap<>();
  OWLAnnotationProperty ap424 = df.getOWLAnnotationProperty(IRI_IAO_0000424.getIRI());
  o.objectPropertiesInSignature()
    .forEach(p -> getAnnotationObjects(p, o.importsClosure(), ap424).forEach(
      a -> mapToExpand(p, a)));
  o.annotationPropertiesInSignature().forEach(p -> expandAssertions(o, p));
  OIO_ISEXPANSION = df.getOWLAnnotationProperty(
    IRI.create(Obo2OWLConstants.OIOVOCAB_IRI_PREFIX, "is_expansion"));
  expansionMarkerAnnotation = df.getOWLAnnotation(OIO_ISEXPANSION, df.getOWLLiteral(true));
}
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: net.sourceforge.owlapi/owlapi-parsers

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-osgidistribution

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);
}
origin: net.sourceforge.owlapi/owlapi-parsers

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.modelOWLOntologyannotationPropertiesInSignature

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?
  • 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