congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now