Tabnine Logo
org.semanticweb.owlapi.model
Code IndexAdd Tabnine to your IDE (free)

How to use org.semanticweb.owlapi.model

Best Java code snippets using org.semanticweb.owlapi.model (Showing top 20 results out of 1,179)

origin: owlcs/owlapi

private void mergeImportsClosure() {
  OWLOntology o = ontology;
  try {
    ontology = man
      .createOntology(IRI.getNextDocumentIRI("http://debugger.semanticweb.org/ontolog"),
        o.importsClosure(), true);
  } catch (OWLOntologyCreationException e) {
    throw new OWLRuntimeException(e);
  }
}
origin: protegeproject/protege

public void visit(OWLDataPropertyAssertionAxiom axiom) {
  if (!axiom.getSubject().isAnonymous()) {
    axiom.getSubject().asOWLNamedIndividual().accept(this);
  }
}
origin: protegeproject/protege

public void visit(OWLDifferentIndividualsAxiom axiom) {
  for (OWLIndividual ind : axiom.getIndividuals()) {
    if (!ind.isAnonymous()) {
      ind.asOWLNamedIndividual().accept(this);
    }
  }
}
origin: owlcs/owlapi

@Override
public OWLAxiom visit(OWLClassAssertionAxiom axiom) {
  if (axiom.getClassExpression().isAnonymous()) {
    return df.getOWLClassAssertionAxiom(axiom.getClassExpression().accept(classVisitor),
      axiom.getIndividual());
  }
  return axiom;
}
origin: owlcs/owlapi

@Override
public void visit(OWLClassAssertionAxiom axiom) {
  if (!axiom.getClassExpression().isAnonymous()) {
    source = axiom.getIndividual().asOWLNamedIndividual();
    target = axiom.getClassExpression().asOWLClass();
  }
}
origin: owlcs/owlapi

@Override
public void visit(OWLDataPropertyDomainAxiom axiom) {
  OWLClassExpression sub = dataFactory
    .getOWLDataSomeValuesFrom(axiom.getProperty(), dataFactory
      .getTopDatatype());
  OWLAxiom ax = dataFactory.getOWLSubClassOfAxiom(sub, axiom.getDomain());
  ax.accept(this);
}
origin: owlcs/owlapi

@Override
public void visit(OWLObjectPropertyDomainAxiom axiom) {
  // prop some Thing subclassOf domain
  OWLClassExpression sub = dataFactory
    .getOWLObjectSomeValuesFrom(axiom.getProperty(), dataFactory.getOWLThing());
  OWLSubClassOfAxiom ax = dataFactory.getOWLSubClassOfAxiom(sub, axiom.getDomain());
  ax.accept(this);
}
origin: owlcs/owlapi

@Override
public OWLAxiom visit(OWLSubClassOfAxiom axiom) {
  return df.getOWLSubClassOfAxiom(axiom.getSubClass().accept(classVisitor),
    axiom.getSuperClass().accept(classVisitor));
}
origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLObjectSomeValuesFrom ce) {
  OWLClassExpression filler = ce.getFiller().accept(this);
  if (negated) {
    return df.getOWLObjectAllValuesFrom(ce.getProperty(), filler);
  }
  return df.getOWLObjectSomeValuesFrom(ce.getProperty(), filler);
}
origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLObjectMinCardinality ce) {
  OWLClassExpression filler = ce.getFiller().accept(this);
  return df.getOWLObjectMinCardinality(ce.getCardinality(), ce.getProperty(), filler);
}
origin: owlcs/owlapi

static OWLAxiom create(OWLDataFactory d, OWLIndividual s, OWLAnnotation o,
  Collection<OWLAnnotation> anns) {
  if (s.isAnonymous()) {
    return d.getOWLAnnotationAssertionAxiom(s.asOWLAnonymousIndividual(), o, anns);
  } else {
    return d.getOWLAnnotationAssertionAxiom(s.asOWLNamedIndividual().getIRI(), o, anns);
  }
}
origin: owlcs/owlapi

@Override
public OWLAxiom visit(OWLObjectPropertyDomainAxiom axiom) {
  return df.getOWLObjectPropertyDomainAxiom(axiom.getProperty(),
    axiom.getDomain().accept(classVisitor));
}
origin: owlcs/owlapi

@Override
public OWLAxiom visit(OWLObjectPropertyRangeAxiom axiom) {
  return df.getOWLObjectPropertyRangeAxiom(axiom.getProperty(),
    axiom.getRange().accept(classVisitor));
}
origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLDataMaxCardinality ce) {
  int card = ce.getCardinality();
  OWLDataRange filler = ce.getFiller().accept(rangeVisitor);
  return df.getOWLDataMaxCardinality(card, ce.getProperty(), filler);
}
origin: protegeproject/protege

public void visit(OWLClassAssertionAxiom axiom) {
  if (!axiom.getIndividual().isAnonymous()) {
    axiom.getIndividual().asOWLNamedIndividual().accept(this);
  }
}
origin: owlcs/owlapi

@Override
public OWLAxiom visit(OWLDataPropertyRangeAxiom axiom) {
  return df.getOWLDataPropertyRangeAxiom(axiom.getProperty(),
    axiom.getRange().accept(dataVisitor));
}
origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLDataSomeValuesFrom ce) {
  OWLDataRange filler = ce.getFiller().accept(rangeVisitor);
  return df.getOWLDataSomeValuesFrom(ce.getProperty(), filler);
}
origin: protegeproject/protege

public void visit(OWLNegativeDataPropertyAssertionAxiom axiom) {
  if (!axiom.getSubject().isAnonymous()) {
    axiom.getSubject().asOWLNamedIndividual().accept(this);
  }
}
origin: owlcs/owlapi

/**
 * @param e exception
 * @param importsDeclaration imports declaration
 */
public UnloadableImportException(OWLOntologyCreationException e,
  OWLImportsDeclaration importsDeclaration) {
  super("Could not load imported ontology: " + importsDeclaration.getIRI().toQuotedString()
    + " Cause: "
    + e.getMessage(), e);
  this.importsDeclaration = importsDeclaration;
  ontologyCreationException = e;
}
origin: protegeproject/protege

private boolean datatypesMightHaveChanged(List<? extends OWLOntologyChange> changes) {
  for (OWLOntologyChange change : changes) {
    if (change instanceof OWLAxiomChange) {
      for (OWLEntity e : change.getAxiom().getSignature()) {
        if (e instanceof OWLDatatype && !e.isBuiltIn()) {
          return true;
        }
      }
    }
  }
  return false;
}

org.semanticweb.owlapi.model

Most used classes

  • IRI
    Author: Matthew Horridge Stanford University Bio-Medical Informatics Research Group Date: 19/11/2012
  • OWLOntologyManager
    Author: Matthew Horridge The University Of Manchester Bio-Health Informatics Group Date: 24-Oct-2006
  • OWLOntology
    Represents an OWL 2 Ontology [http://www.w3.org/TR/owl2-syntax/#Ontologies] in the OWL 2 specificati
  • OWLDataFactory
    An interface for creating entities, class expressions and axioms.
  • OWLClass
    Represents a Class [http://www.w3.org/TR/owl2-syntax/#Classes] in the OWL 2 specification.
  • OWLOntologyID,
  • OWLAxiom,
  • OWLSubClassOfAxiom,
  • OWLObjectProperty,
  • OWLLiteral,
  • OWLEntity,
  • OWLObjectPropertyExpression,
  • OWLClassAssertionAxiom,
  • OWLEquivalentClassesAxiom,
  • OWLObjectIntersectionOf,
  • OWLAnnotationProperty,
  • OWLIndividual,
  • OWLDataProperty,
  • OWLNamedIndividual
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