Tabnine Logo
OWLDataFactory.getOWLSubClassOfAxiom
Code IndexAdd Tabnine to your IDE (free)

How to use
getOWLSubClassOfAxiom
method
in
org.semanticweb.owlapi.model.OWLDataFactory

Best Java code snippets using org.semanticweb.owlapi.model.OWLDataFactory.getOWLSubClassOfAxiom (Showing top 20 results out of 504)

origin: owlcs/owlapi

public static OWLSubClassOfAxiom SubClassOf(OWLClassExpression subClass,
  OWLClassExpression superClass,
  Collection<OWLAnnotation> a) {
  return DF.getOWLSubClassOfAxiom(subClass, superClass, a);
}
origin: protegeproject/webprotege

@Nonnull
@Override
public Set<OWLAxiom> visit(OWLClass subject) {
  return Collections.singleton(df.getOWLSubClassOfAxiom(subject, classExpression));
}
origin: protegeproject/protege

@Nonnull
@Override
public Optional<OWLAxiom> visit(@Nonnull OWLClass cls) {
  return strategy.getDeprecatedClassParentIri()
          .map(parent -> dataFactory.getOWLSubClassOfAxiom(cls, dataFactory.getOWLClass(parent)));
}
origin: owlcs/owlapi

/**
 * Domain(R) = C is tautology iff ER.Top [= C
 */
@Override
public void visit(OWLObjectPropertyDomainAxiom axiom) {
  isLocal = true;
  for (OWLClassExpression e : exprMap.get(axiom)) {
    isLocal &= kernel.isEntailed(df.getOWLSubClassOfAxiom(e, axiom.getDomain()));
  }
}
origin: owlcs/owlapi

private void generateChanges() {
  Set<OWLClassExpression> supers = new HashSet<>();
  for (OWLOntology o : ontologies) {
    o.equivalentClassesAxioms(cls).forEach(ax -> {
      addChange(new RemoveAxiom(o, ax));
      ax.classExpressions().forEach(c -> collectClassExpressions(c, supers));
    });
  }
  supers.remove(cls);
  supers.forEach(
    sup -> addChange(new AddAxiom(targetOntology, df.getOWLSubClassOfAxiom(cls, sup))));
}
origin: protegeproject/protege

public static OWLAxiom getClosureAxiom(OWLClass cls, OWLObjectProperty prop, OWLDataFactory df, Set<OWLOntology> onts) {
  ClosureAxiomFactory fac = new ClosureAxiomFactory(prop, df, onts);
  cls.accept(fac);
  final OWLObjectAllValuesFrom closure = fac.getClosureRestriction();
  return (closure != null) ? df.getOWLSubClassOfAxiom(cls, closure) : null;
}
origin: owlcs/owlapi

@Override
public void visit(OWLClassAssertionAxiom axiom) {
  OWLClassExpression sub = dataFactory.getOWLObjectOneOf(axiom.getIndividual());
  OWLAxiom ax = dataFactory.getOWLSubClassOfAxiom(sub, axiom.getClassExpression());
  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 Collection<OWLAxiom> visit(OWLFunctionalDataPropertyAxiom axiom) {
  return doDefault(df.getOWLSubClassOfAxiom(df.getOWLThing(),
    df.getOWLDataMaxCardinality(1, axiom.getProperty())));
}
origin: owlcs/owlapi

@Override
public Collection<OWLAxiom> visit(OWLFunctionalObjectPropertyAxiom axiom) {
  return doDefault(df.getOWLSubClassOfAxiom(df.getOWLThing(),
    df.getOWLObjectMaxCardinality(1, axiom.getProperty())));
}
origin: owlcs/owlapi

  @Override
  public OWLSubClassOfAxiom buildObject() {
    return df
      .getOWLSubClassOfAxiom(verifyNotNull(getSub()), verifyNotNull(getSup()), annotations);
  }
}
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

  private void translate(IRI s, IRI p, IRI o) {
    OWLClassExpression subClass = ce(s);
    OWLClassExpression supClass = ce(o);
    OWLAxiom ax = df.getOWLSubClassOfAxiom(subClass, supClass, anns());
    add(ax);
    consume(s, p, o);
  }
}
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 Collection<OWLAxiom> visit(OWLInverseFunctionalObjectPropertyAxiom axiom) {
  return doDefault(df.getOWLSubClassOfAxiom(df.getOWLThing(),
    df.getOWLObjectMaxCardinality(1, axiom.getProperty().getInverseProperty())));
}
origin: owlcs/owlapi

 final public void Implies() throws ParseException, KRSS2OWLParserException {OWLClassExpression subDescription, superDescription;
  jj_consume_token(OPENPAR);
  jj_consume_token(IMPLIES);
  subDescription = ConceptExpression();
  superDescription = ConceptExpression();
  jj_consume_token(CLOSEPAR);
addAxiom( df.getOWLSubClassOfAxiom(subDescription, superDescription));
}

origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLDataPropertyAssertionAxiom axiom) {
  OWLClassExpression sub = oneOf(axiom.getSubject());
  OWLClassExpression sup = factory.getOWLDataHasValue(axiom.getProperty(), axiom.getObject());
  OWLSubClassOfAxiom ax = factory.getOWLSubClassOfAxiom(sub, sup);
  return ax.accept(this);
}
origin: owlcs/owlapi

@Override
public Object visit(OWLSubClassOfAxiom axiom) {
  return visitAxiom(axiom,
    () -> df.getOWLSubClassOfAxiom(t(axiom.getSubClass()), t(axiom.getSuperClass()), t(
      axiom.annotations())));
}
origin: protegeproject/protege

protected OWLClassAxiom createAxiom(OWLClassExpression editedObject) {
  if (getAxiom() instanceof OWLSubClassOfAxiom) {
    return getOWLDataFactory().getOWLSubClassOfAxiom(getRoot(), editedObject);
  }
  else {
    return getOWLDataFactory().getOWLEquivalentClassesAxiom(CollectionFactory.createSet(getRoot(),
                                              editedObject));
  }
}
origin: protegeproject/protege

public void actionPerformed(ActionEvent e) {
  OWLClass cls = getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass();
  // TODO: Push into OWLAPI
  Set<OWLClass> subClses = getOWLModelManager().getOWLHierarchyManager().getOWLClassHierarchyProvider().getChildren(cls);
  OWLClassExpression coveringDesc = getOWLDataFactory().getOWLObjectUnionOf(subClses);
  OWLSubClassOfAxiom ax = getOWLDataFactory().getOWLSubClassOfAxiom(cls, coveringDesc);
  getOWLModelManager().applyChange(new AddAxiom(getOWLModelManager().getActiveOntology(), ax));
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLSubClassOfAxiom

Popular methods of OWLDataFactory

  • getOWLClass
    Gets an OWL class that has the specified IRI
  • getOWLNamedIndividual
    Gets an OWL individual that has the specified IRI
  • getOWLObjectProperty
    Gets an OWL object property that has the specified IRI
  • getOWLClassAssertionAxiom
  • getOWLDataProperty
    Gets an OWL data property that has the specified IRI
  • getOWLThing
    Gets the built in owl:Thing class, which has a URI of
  • getOWLAnnotationProperty
    Gets an OWLAnnotationProperty that has the specified IRI
  • getOWLLiteral
    Convenience method that obtains a literal typed as a boolean.
  • getOWLDeclarationAxiom
    Gets a declaration with zero or more annotations for an entity
  • getOWLObjectIntersectionOf
  • getOWLEquivalentClassesAxiom
  • getOWLObjectSomeValuesFrom
    Gets an OWLObjectSomeValuesFrom restriction
  • getOWLEquivalentClassesAxiom,
  • getOWLObjectSomeValuesFrom,
  • getOWLNothing,
  • getOWLObjectComplementOf,
  • getOWLObjectPropertyAssertionAxiom,
  • getOWLAnnotationAssertionAxiom,
  • getOWLDataPropertyAssertionAxiom,
  • getOWLDatatype,
  • getOWLAnnotation

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • CodeWhisperer alternatives
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