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

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

Best Java code snippets using org.semanticweb.owlapi.model.OWLDataFactory.getOWLAnnotationPropertyRangeAxiom (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: com.github.ansell.owlapi/owlapi-parsers

@Override
public OWLAxiom createAxiom(OWLAnnotationProperty s, IRI o,
    Set<OWLAnnotation> anns) {
  return dataFactory.getOWLAnnotationPropertyRangeAxiom(s, o, anns);
}
origin: edu.stanford.protege/org.protege.owl.server

@Override
public Object read(OWLInputStream in) throws IOException {
  OWLAnnotationProperty p = (OWLAnnotationProperty) in.read();
  IRI range = (IRI) in.read();
  return in.getOWLDataFactory().getOWLAnnotationPropertyRangeAxiom(p, range);
}
origin: owlcs/owlapi

private void translateAsAnnotationPropertyRange(IRI s, IRI p, IRI o) {
  OWLAnnotationProperty prop = df.getOWLAnnotationProperty(s);
  add(df.getOWLAnnotationPropertyRangeAxiom(prop, o, anns()));
  consume(s, p, o);
}
origin: net.sourceforge.owlapi/owlapi-distribution

private void translateAsAnnotationPropertyRange(IRI s, IRI p, IRI o) {
  OWLAnnotationProperty prop = df.getOWLAnnotationProperty(s);
  add(df.getOWLAnnotationPropertyRangeAxiom(prop, o, anns()));
  consume(s, p, o);
}
origin: net.sourceforge.owlapi/owlapi

public OWLAnnotationPropertyRangeAxiom getAxiomWithoutAnnotations() {
  if(!isAnnotated()) {
    return this;
  }
  return getOWLDataFactory().getOWLAnnotationPropertyRangeAxiom(getProperty(), getRange());
}
origin: liveontologies/elk-reasoner

@Override
public OWLAnnotationPropertyRangeAxiom visit(
    ElkAnnotationPropertyRangeAxiom axiom) {
  return owlFactory_.getOWLAnnotationPropertyRangeAxiom(
      convert(axiom.getProperty()), convert(axiom.getRange()));
}
origin: owlcs/owlapi

@Override
public OWLAnnotationPropertyRangeAxiom visit(OWLAnnotationPropertyRangeAxiom axiom) {
  return df
    .getOWLAnnotationPropertyRangeAxiom(get(axiom.getProperty()), get(axiom.getRange()),
      anns(axiom));
}
origin: net.sourceforge.owlapi/owlapi

public void visit(OWLAnnotationPropertyRangeAxiom axiom) {
  axiom.getProperty().accept(this);
  OWLAnnotationProperty prop = (OWLAnnotationProperty) obj;
  axiom.getRange().accept(this);
  IRI range = (IRI) obj;
  obj = dataFactory.getOWLAnnotationPropertyRangeAxiom(prop, range, duplicateAxiomAnnotations(axiom));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLAnnotationPropertyRangeAxiom visit(OWLAnnotationPropertyRangeAxiom axiom) {
  return df
    .getOWLAnnotationPropertyRangeAxiom(get(axiom.getProperty()), get(axiom.getRange()),
      anns(axiom));
}
origin: owlcs/owlapi

 final public OWLAnnotationPropertyRangeAxiom AnnotationPropertyRange() throws ParseException {IRI range;
  OWLAnnotationProperty prop;
  Set<OWLAnnotation> axiomAnnos;
  jj_consume_token(ANNOTATIONPROPERTYRANGE);
  jj_consume_token(OPENPAR);
  axiomAnnos = AxiomAnnotationSet();
  prop = AnnotationPropertyIRI();
  range = IRI();
  jj_consume_token(CLOSEPAR);
return df.getOWLAnnotationPropertyRangeAxiom(prop, range, axiomAnnos);
}

origin: net.sourceforge.owlapi/owlapi-osgidistribution

 final public OWLAnnotationPropertyRangeAxiom AnnotationPropertyRange() throws ParseException {IRI range;
  OWLAnnotationProperty prop;
  Set<OWLAnnotation> axiomAnnos;
  jj_consume_token(ANNOTATIONPROPERTYRANGE);
  jj_consume_token(OPENPAR);
  axiomAnnos = AxiomAnnotationSet();
  prop = AnnotationPropertyIRI();
  range = IRI();
  jj_consume_token(CLOSEPAR);
return df.getOWLAnnotationPropertyRangeAxiom(prop, range, axiomAnnos);
}

origin: com.github.ansell.owlapi/owlapi-parsers

private void translateAsAnnotationPropertyRange(IRI subject, IRI predicate, IRI object) {
  OWLAnnotationProperty prop = getDataFactory().getOWLAnnotationProperty(subject);
  addAxiom(getDataFactory().getOWLAnnotationPropertyRangeAxiom(prop, object, getPendingAnnotations()));
  consumeTriple(subject, predicate, object);
}
origin: net.sourceforge.owlapi/owlapi-distribution

 final public OWLAnnotationPropertyRangeAxiom AnnotationPropertyRange() throws ParseException {IRI range;
  OWLAnnotationProperty prop;
  Set<OWLAnnotation> axiomAnnos;
  jj_consume_token(ANNOTATIONPROPERTYRANGE);
  jj_consume_token(OPENPAR);
  axiomAnnos = AxiomAnnotationSet();
  prop = AnnotationPropertyIRI();
  range = IRI();
  jj_consume_token(CLOSEPAR);
return df.getOWLAnnotationPropertyRangeAxiom(prop, range, axiomAnnos);
}

origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Object visit(OWLAnnotationPropertyRangeAxiom axiom) {
  return visitAxiom(axiom,
    () -> df.getOWLAnnotationPropertyRangeAxiom(t(axiom.getProperty()), t(axiom
      .getRange()), t(axiom.annotations())));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public Object visit(OWLAnnotationPropertyRangeAxiom axiom) {
  return visitAxiom(axiom,
    () -> df.getOWLAnnotationPropertyRangeAxiom(t(axiom.getProperty()), t(axiom
      .getRange()), t(axiom.annotations())));
}
origin: owlcs/owlapi

@Override
public Object visit(OWLAnnotationPropertyRangeAxiom axiom) {
  return visitAxiom(axiom,
    () -> df.getOWLAnnotationPropertyRangeAxiom(t(axiom.getProperty()), t(axiom
      .getRange()), t(axiom.annotations())));
}
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  protected OWLAxiom createAxiom() throws OWLXMLParserException {
    if(property == null) {
      throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "Expected annotation property element");
    }
    if(range == null) {
      throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "Expected IRI element");
    }
    return getOWLDataFactory().getOWLAnnotationPropertyRangeAxiom(property, range, getAnnotations());
  }
}
origin: owlcs/owlapi

private void initialiseAnnotationPropertyFrameSections() {
  //@formatter:off
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotationProperty>(x -> parseAnnotationProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubAnnotationPropertyOfAxiom(s, o, anns)), annotationPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), DOMAIN, (s, o, anns) -> df.getOWLAnnotationPropertyDomainAxiom(s, o, anns)), annotationPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), RANGE, (s, o, anns) -> df.getOWLAnnotationPropertyRangeAxiom(s, o, anns)), annotationPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), annotationPropertyFrameSections);
  //@formatter:on
}
origin: net.sourceforge.owlapi/owlapi-parsers

private void initialiseAnnotationPropertyFrameSections() {
  //@formatter:off
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotationProperty>(x -> parseAnnotationProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubAnnotationPropertyOfAxiom(s, o, anns)), annotationPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), DOMAIN, (s, o, anns) -> df.getOWLAnnotationPropertyDomainAxiom(s, o, anns)), annotationPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), RANGE, (s, o, anns) -> df.getOWLAnnotationPropertyRangeAxiom(s, o, anns)), annotationPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), annotationPropertyFrameSections);
  //@formatter:on
}
origin: net.sourceforge.owlapi/owlapi-distribution

private void initialiseAnnotationPropertyFrameSections() {
  //@formatter:off
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotationProperty>(x -> parseAnnotationProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubAnnotationPropertyOfAxiom(s, o, anns)), annotationPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), DOMAIN, (s, o, anns) -> df.getOWLAnnotationPropertyDomainAxiom(s, o, anns)), annotationPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), RANGE, (s, o, anns) -> df.getOWLAnnotationPropertyRangeAxiom(s, o, anns)), annotationPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), annotationPropertyFrameSections);
  //@formatter:on
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLAnnotationPropertyRangeAxiom

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

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • orElseThrow (Optional)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Collectors (java.util.stream)
  • JList (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
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