Codota Logo
OWLDataFactory.getOWLDifferentIndividualsAxiom
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain OWLDataFactory
private void myMethod () {
OWLDataFactory o =
  • Codota IconOWLOntologyManager manager;manager.getOWLDataFactory()
  • Codota IconOWLOntology ontology;ontology.getOWLOntologyManager().getOWLDataFactory()
  • Codota IconOWLManager.getOWLDataFactory()
  • Smart code suggestions by Codota
}
origin: owlcs/owlapi

  @Override
  public OWLDifferentIndividualsAxiom buildObject() {
    return df.getOWLDifferentIndividualsAxiom(items, annotations);
  }
}
origin: owlcs/owlapi

static OWLAxiom create(OWLDataFactory d, OWLIndividual s, Set<OWLIndividual> o,
  Collection<OWLAnnotation> anns) {
  Set<OWLIndividual> individuals = new HashSet<>();
  individuals.add(s);
  individuals.addAll(o);
  return d.getOWLDifferentIndividualsAxiom(individuals, anns);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

static OWLAxiom create(OWLDataFactory d, OWLIndividual s, Set<OWLIndividual> o,
  Collection<OWLAnnotation> anns) {
  Set<OWLIndividual> individuals = new HashSet<>();
  individuals.add(s);
  individuals.addAll(o);
  return d.getOWLDifferentIndividualsAxiom(individuals, anns);
}
origin: net.sourceforge.owlapi/owlapi-parsers

static OWLAxiom create(OWLDataFactory d, OWLIndividual s, Set<OWLIndividual> o,
  Collection<OWLAnnotation> anns) {
  Set<OWLIndividual> individuals = new HashSet<>();
  individuals.add(s);
  individuals.addAll(o);
  return d.getOWLDifferentIndividualsAxiom(individuals, anns);
}
origin: protegeproject/protege

  public List<OWLOntologyChange> getChanges() {
    Set<OWLIndividual> individuals = ontologies.stream()
                          .flatMap(o -> o.getIndividualsInSignature().stream())
                          .collect(toSet());
    List<OWLOntologyChange> changes = new ArrayList<>();
    if (!individuals.isEmpty()) {
      changes.add(new AddAxiom(ont, dataFactory.getOWLDifferentIndividualsAxiom(individuals)));
    }
    return changes;
  }
}
origin: org.protege/protege-editor-owl

  public List<OWLOntologyChange> getChanges() {
    Set<OWLIndividual> individuals = new HashSet<OWLIndividual>();
    for(OWLOntology ont : ontologies) {
      individuals.addAll(ont.getIndividualsInSignature());
    }
    List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>();
    if(!individuals.isEmpty()) {
      changes.add(new AddAxiom(ont, dataFactory.getOWLDifferentIndividualsAxiom(individuals)));
    }
    return changes;
  }
}
origin: net.sourceforge.owlapi/owlexplanation

@Override
public Set<? extends OWLAxiom> visit(OWLDifferentIndividualsAxiom axiom) {
  // Pairwise, or the power set?  It should be pairwise - an optimisation.
  // This means if we have something like  Diff(a, b, c, d) and we only
  // care that Diff(a, b) and Diff(a, c) then we can strike out d
  // from the original checker. In other words, we only need the weakest sets
  Set<OWLAxiom> result = new HashSet<>();
  axiom.walkAllPairwise((a, b) -> result.add(dataFactory.getOWLDifferentIndividualsAxiom(a, b)));
  return log(result);
}
origin: com.github.ansell.owlapi/owlapi-parsers

final public void Distinct() throws ParseException, KRSS2OWLParserException {
  OWLIndividual indA, indB;
  Set<OWLIndividual> inds = new HashSet<OWLIndividual>();
  jj_consume_token(OPENPAR);
  jj_consume_token(DISTINCT);
  indA = IndividualName();
  indB = IndividualName();
  jj_consume_token(CLOSEPAR);
  inds.add(indA);
  inds.add(indB);
  addAxiom(dataFactory.getOWLDifferentIndividualsAxiom(inds));
}
origin: net.sourceforge.owlapi/owlapi

  public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException {
    Set<OWLIndividual> inds = new HashSet<OWLIndividual>();
    inds.add(translateIndividual(subject));
    inds.add(translateIndividual(object));
    addAxiom(getDataFactory().getOWLDifferentIndividualsAxiom(inds, getPendingAnnotations()));
    consumeTriple(subject, predicate, object);
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    add(df.getOWLDifferentIndividualsAxiom(Sets.newHashSet(ind(s), ind(o)), anns()));
    consume(s, p, o);
  }
}
origin: owlcs/owlapi

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    add(df.getOWLDifferentIndividualsAxiom(Sets.newHashSet(ind(s), ind(o)), anns()));
    consume(s, p, o);
  }
}
origin: owlcs/owlapi

 final public OWLIndividualAxiom DifferentIndividuals() throws ParseException {Set<OWLIndividual> individuals;
  Set<OWLAnnotation> axiomAnnos;
  jj_consume_token(DIFFERENTINDIVIDUALS);
  jj_consume_token(OPENPAR);
  axiomAnnos = AxiomAnnotationSet();
  individuals = IndividualSet();
  jj_consume_token(CLOSEPAR);
return df.getOWLDifferentIndividualsAxiom(individuals, axiomAnnos);
}

origin: owlcs/owlapi

 final public OWLAxiom Distinct() throws ParseException {OWLIndividual indA, indB;
  jj_consume_token(OPENPAR);
  jj_consume_token(DISTINCT);
  indA = IndividualName();
  indB = IndividualName();
  jj_consume_token(CLOSEPAR);
return df.getOWLDifferentIndividualsAxiom(indA, indB);
}

origin: net.sourceforge.owlapi/owlapi-osgidistribution

 final public OWLIndividualAxiom DifferentIndividuals() throws ParseException {Set<OWLIndividual> individuals;
  Set<OWLAnnotation> axiomAnnos;
  jj_consume_token(DIFFERENTINDIVIDUALS);
  jj_consume_token(OPENPAR);
  axiomAnnos = AxiomAnnotationSet();
  individuals = IndividualSet();
  jj_consume_token(CLOSEPAR);
return df.getOWLDifferentIndividualsAxiom(individuals, axiomAnnos);
}

origin: owlcs/owlapi

@Override
public Object visit(OWLDifferentIndividualsAxiom axiom) {
  return visitAxiom(axiom,
    () -> df.getOWLDifferentIndividualsAxiom(t(axiom.individuals()), t(axiom
      .annotations())));
}
origin: owlcs/owlapi

 final public void Distinct() throws ParseException, KRSS2OWLParserException {OWLIndividual indA, indB;
  jj_consume_token(OPENPAR);
  jj_consume_token(DISTINCT);
  indA = IndividualName();
  indB = IndividualName();
  jj_consume_token(CLOSEPAR);
addAxiom( df.getOWLDifferentIndividualsAxiom(indA, indB));
}

origin: net.sourceforge.owlapi/owlapi-osgidistribution

 final public void Distinct() throws ParseException, KRSS2OWLParserException {OWLIndividual indA, indB;
  jj_consume_token(OPENPAR);
  jj_consume_token(DISTINCT);
  indA = IndividualName();
  indB = IndividualName();
  jj_consume_token(CLOSEPAR);
addAxiom( df.getOWLDifferentIndividualsAxiom(indA, indB));
}

origin: net.sourceforge.owlapi/owlapi-parsers

 final public void Distinct() throws ParseException, KRSS2OWLParserException {OWLIndividual indA, indB;
  jj_consume_token(OPENPAR);
  jj_consume_token(DISTINCT);
  indA = IndividualName();
  indB = IndividualName();
  jj_consume_token(CLOSEPAR);
addAxiom( df.getOWLDifferentIndividualsAxiom(indA, indB));
}

origin: net.sourceforge.owlapi/owlapi-distribution

private void initialiseIndividualFrameSections() {
  //@formatter:off
  initialiseSection(new AnnAxiom<OWLIndividual, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> create(df, s, o, anns)), individualFrameSections);
  initialiseSection(new AnnAxiom<OWLIndividual, OWLClassExpression>(x -> parseUnion(), TYPES, (s, o, anns) -> df.getOWLClassAssertionAxiom(o, s, anns)), individualFrameSections);
  initialiseSection(new AnnAxiom<>(this::parseFact, FACTS, (s, o, anns) -> o.getAnnotatedAxiom(anns)), individualFrameSections);
  initialiseSection(new AnnAxiom<OWLIndividual, OWLIndividual>(x -> parseIndividual(), SAME_AS, (s, o, anns) -> df.getOWLSameIndividualAxiom(s, o, anns)), individualFrameSections);
  initialiseSection(new AnnAxiom<OWLIndividual, OWLIndividual>(x -> parseIndividual(), DIFFERENT_FROM, (s, o, anns) -> df.getOWLDifferentIndividualsAxiom(s, o, anns)), individualFrameSections);
  // Extensions
  initialiseSection(new AnnAxiom<OWLIndividual, Set<OWLIndividual>>(x -> parseIndividualList(), DIFFERENT_INDIVIDUALS, (s, o, anns) -> create(df, s, o, anns)), individualFrameSections);
  //@formatter:on
}
origin: owlcs/owlapi

private void initialiseIndividualFrameSections() {
  //@formatter:off
  initialiseSection(new AnnAxiom<OWLIndividual, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> create(df, s, o, anns)), individualFrameSections);
  initialiseSection(new AnnAxiom<OWLIndividual, OWLClassExpression>(x -> parseUnion(), TYPES, (s, o, anns) -> df.getOWLClassAssertionAxiom(o, s, anns)), individualFrameSections);
  initialiseSection(new AnnAxiom<>(this::parseFact, FACTS, (s, o, anns) -> o.getAnnotatedAxiom(anns)), individualFrameSections);
  initialiseSection(new AnnAxiom<OWLIndividual, OWLIndividual>(x -> parseIndividual(), SAME_AS, (s, o, anns) -> df.getOWLSameIndividualAxiom(s, o, anns)), individualFrameSections);
  initialiseSection(new AnnAxiom<OWLIndividual, OWLIndividual>(x -> parseIndividual(), DIFFERENT_FROM, (s, o, anns) -> df.getOWLDifferentIndividualsAxiom(s, o, anns)), individualFrameSections);
  // Extensions
  initialiseSection(new AnnAxiom<OWLIndividual, Set<OWLIndividual>>(x -> parseIndividualList(), DIFFERENT_INDIVIDUALS, (s, o, anns) -> create(df, s, o, anns)), individualFrameSections);
  //@formatter:on
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLDifferentIndividualsAxiom

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
  • getOWLSubClassOfAxiom
  • 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
  • getOWLObjectIntersectionOf,
  • getOWLEquivalentClassesAxiom,
  • getOWLObjectSomeValuesFrom,
  • getOWLNothing,
  • getOWLObjectComplementOf,
  • getOWLObjectPropertyAssertionAxiom,
  • getOWLAnnotationAssertionAxiom,
  • getOWLDataPropertyAssertionAxiom,
  • getOWLDatatype,
  • getOWLAnnotation

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • Path (java.nio.file)
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Reference (javax.naming)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now