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

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

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

  • 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

  /**
   * Gets the declaration.
   *
   * @param e the e
   * @return the declaration
   */
  private OWLDeclarationAxiom getDeclaration(OWLEntity e) {
    return getOntologyManager().getOWLDataFactory().getOWLDeclarationAxiom(e);
  }
}
origin: net.sourceforge.owlapi/owlapi-tools

  /**
   * Gets the declaration.
   *
   * @param e the e
   * @return the declaration
   */
  private OWLDeclarationAxiom getDeclaration(OWLEntity e) {
    return getOntologyManager().getOWLDataFactory().getOWLDeclarationAxiom(e);
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  public List<OWLOntologyChange> repair() {
    return list(new AddAxiom(ontology, df.getOWLDeclarationAxiom(getExpression())));
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

private Set<OntologyAxiomPair> parseObjectPropertyFrame(boolean eof) {
  Set<OntologyAxiomPair> axioms = new HashSet<>();
  consumeToken(OBJECT_PROPERTY);
  String token = consumeToken();
  OWLObjectProperty prop = getOWLObjectProperty(token);
  if (!prop.isAnonymous()) {
    axioms.add(new OntologyAxiomPair(defaultOntology,
      df.getOWLDeclarationAxiom(prop.asOWLObjectProperty())));
  }
  parseFrameSections(eof, axioms, prop, objectPropertyFrameSections);
  return axioms;
}
origin: owlcs/owlapi

private Set<OntologyAxiomPair> parseObjectPropertyFrame(boolean eof) {
  Set<OntologyAxiomPair> axioms = new HashSet<>();
  consumeToken(OBJECT_PROPERTY);
  String token = consumeToken();
  OWLObjectProperty prop = getOWLObjectProperty(token);
  if (!prop.isAnonymous()) {
    axioms.add(new OntologyAxiomPair(defaultOntology,
      df.getOWLDeclarationAxiom(prop.asOWLObjectProperty())));
  }
  parseFrameSections(eof, axioms, prop, objectPropertyFrameSections);
  return axioms;
}
origin: owlcs/owlapi

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLNamedIndividual individual = df.getOWLNamedIndividual(s);
      add(df.getOWLDeclarationAxiom(individual, anns()));
    }
    consumer.addOWLNamedIndividual(s, true);
  }
}
origin: owlcs/owlapi

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLDataProperty owlDataProperty = df.getOWLDataProperty(s);
      add(df.getOWLDeclarationAxiom(owlDataProperty, anns()));
    }
    addDp(s, true);
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLDatatype dt = df.getOWLDatatype(s);
      add(df.getOWLDeclarationAxiom(dt, anns()));
    }
    addDR(s, true);
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLObjectProperty op = df.getOWLObjectProperty(s);
      add(df.getOWLDeclarationAxiom(op, anns()));
    }
    addOp(s, true);
  }
}
origin: owlcs/owlapi

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLDatatype dt = df.getOWLDatatype(s);
      add(df.getOWLDeclarationAxiom(dt, anns()));
    }
    addDR(s, true);
  }
}
origin: owlcs/owlapi

private Set<OntologyAxiomPair> parseClassFrame(boolean eof) {
  String tok = consumeToken();
  if (!CLASS.matches(tok)) {
    throw new ExceptionBuilder().withKeyword(CLASS).build();
  }
  String subj = consumeToken();
  OWLClass cls = getOWLClass(subj);
  Set<OntologyAxiomPair> axioms = new HashSet<>();
  axioms.add(new OntologyAxiomPair(defaultOntology, df.getOWLDeclarationAxiom(cls)));
  parseFrameSections(eof, axioms, cls, classFrameSections);
  return axioms;
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLDataProperty owlDataProperty = df.getOWLDataProperty(s);
      add(df.getOWLDeclarationAxiom(owlDataProperty, anns()));
    }
    addDp(s, true);
  }
}
origin: owlcs/owlapi

 final public OWLAxiom Declaration() throws ParseException {OWLEntity entity = null;
  IRI iri = null;
  OWLLiteral con = null;
  Set<OWLAnnotation> axiomAnnos;
  jj_consume_token(DECLARATION);
  jj_consume_token(OPENPAR);
  axiomAnnos = AxiomAnnotationSet();
  entity = Entity();
  jj_consume_token(CLOSEPAR);
return ignoreAnnotationsAndDeclarations? null: df.getOWLDeclarationAxiom(entity, axiomAnnos);
}

origin: owlcs/owlapi

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

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLObjectProperty op = df.getOWLObjectProperty(s);
      add(df.getOWLDeclarationAxiom(op, anns()));
    }
    addOp(s, true);
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLAnnotationProperty property = df.getOWLAnnotationProperty(s);
      add(df.getOWLDeclarationAxiom(property, anns()));
      consume(s, p, o);
    }
    addAp(s, true);
  }
}
origin: net.sourceforge.owlapi/owlapi

  public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException {
    addAxiom(getDataFactory().getOWLDeclarationAxiom(getDataFactory().getOWLDataProperty(subject)));
    getConsumer().addOWLDataProperty(subject);
  }
}
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  public void handle(String currentId, String value, String qualifierBlock, String comment) {
    getConsumer().setCurrentId(value);
    final OWLEntity entity = getConsumer().getCurrentEntity();
    if (entity != null){
      applyChange(new AddAxiom(getOntology(), getDataFactory().getOWLDeclarationAxiom(entity)));
    }
  }
}
origin: net.sourceforge.owlapi/owlapi

  public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException {
    if (!isAnonymous(subject)) {
      addAxiom(getDataFactory().getOWLDeclarationAxiom(getDataFactory().getOWLObjectProperty(subject), getPendingAnnotations()));
    }
    getConsumer().addOWLObjectProperty(subject);
  }
}
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException {
    if (!isAnonymous(subject)) {
      Set<OWLAnnotation> annos = getConsumer().getPendingAnnotations();
      OWLClass owlClass = getDataFactory().getOWLClass(subject);
      addAxiom(getDataFactory().getOWLDeclarationAxiom(owlClass, annos));
    }
    getConsumer().addClassExpression(subject, true);
  }
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLDeclarationAxiom

Javadoc

Gets a declaration for an entity

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.
  • getOWLObjectIntersectionOf
  • getOWLEquivalentClassesAxiom
  • getOWLObjectSomeValuesFrom
    Gets an OWLObjectSomeValuesFrom restriction
  • getOWLEquivalentClassesAxiom,
  • getOWLObjectSomeValuesFrom,
  • getOWLNothing,
  • getOWLObjectComplementOf,
  • getOWLObjectPropertyAssertionAxiom,
  • getOWLAnnotationAssertionAxiom,
  • getOWLDataPropertyAssertionAxiom,
  • getOWLDatatype,
  • getOWLAnnotation

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Reference (javax.naming)
  • JComboBox (javax.swing)
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