congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
OWLDataFactory.getOWLDeclarationAxiom
Code IndexAdd Tabnine 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)

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)) {
      OWLDataProperty owlDataProperty = df.getOWLDataProperty(s);
      add(df.getOWLDeclarationAxiom(owlDataProperty, anns()));
    }
    addDp(s, true);
  }
}
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: 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

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

@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: 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: 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

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Sublime Text 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