congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
OWLDataFactory.getOWLAnnotationAssertionAxiom
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: edu.stanford.protege/mapping-master

public OWLAnnotationAssertionAxiom createOWLAnnotationAssertionAxiom(OWLAnnotationProperty ap, OWLAnnotationSubject as,
   OWLAnnotationValue value)
{
 return owlDataFactory.getOWLAnnotationAssertionAxiom(ap, as, value);
}
origin: owlcs/owlapi

static OWLAxiom create(OWLDataFactory d, OWLIndividual s, OWLAnnotation o,
  Collection<OWLAnnotation> anns) {
  if (s.isAnonymous()) {
    return d.getOWLAnnotationAssertionAxiom(s.asOWLAnonymousIndividual(), o, anns);
  } else {
    return d.getOWLAnnotationAssertionAxiom(s.asOWLNamedIndividual().getIRI(), o, anns);
  }
}
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  protected OWLAxiom createAxiom() throws OWLXMLParserException {
    return getOWLDataFactory().getOWLAnnotationAssertionAxiom(property, subject, object, getAnnotations());
  }
}
origin: owlcs/owlapi

@Override
public OWLAnnotationAssertionAxiom buildObject() {
  return df.getOWLAnnotationAssertionAxiom(getProperty(), verifyNotNull(subject),
    verifyNotNull(value),
    annotations);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public OWLAnnotationAssertionAxiom buildObject() {
  return df.getOWLAnnotationAssertionAxiom(getProperty(), verifyNotNull(subject),
    verifyNotNull(value),
    annotations);
}
origin: protegeproject/protege

private void addDeprecationCode(List<OWLOntologyChange> changes) {
  profile.getDeprecationCode().ifPresent(deprecationCode -> {
    info.getDeprecationCode().ifPresent(selectedCode -> {
      OWLAnnotationAxiom ax = dataFactory.getOWLAnnotationAssertionAxiom(
          dataFactory.getOWLAnnotationProperty(deprecationCode.getPropertyIri()),
          info.getEntityToDeprecate().getIRI(),
          selectedCode
      );
      changes.add(new AddAxiom(getHomeOntology(), ax));
    });
  });
}
origin: owlcs/owlapi

private static void generateChanges(OWLOntologyManager ontologyManager, OWLOntology o,
  ShortFormProvider provider,
  IRI annotationIRI, @Nullable String lang) {
  OWLDataFactory df = ontologyManager.getOWLDataFactory();
  OWLAnnotationProperty ap = df.getOWLAnnotationProperty(annotationIRI);
  new ImportsStructureEntitySorter(o).getObjects().forEach((ont, ent) -> ent.forEach(e -> {
    if (o.containsEntityInSignature(e)) {
      ont.add(df.getOWLAnnotationAssertionAxiom(ap, e.getIRI(),
        action(e, lang, provider, df)));
    }
  }));
}
origin: net.sourceforge.owlapi/pellet-owlapi-ignazio1977

public static OWLAnnotationAssertionAxiom comment(OWLEntity entity, String comment) {
  return factory.getOWLAnnotationAssertionAxiom( entity.getIRI(), factory.getOWLAnnotation(
      factory.getOWLAnnotationProperty( OWLRDFVocabulary.RDFS_COMMENT.getIRI() ), 
      factory.getOWLLiteral( comment ) ) );
  
}
origin: org.protege/protege-editor-owl

private List<? extends OWLOntologyChange> createLabel(OWLEntity owlEntity, String value) {
  LabelDescriptor descr = getLabelDescriptor();
  IRI iri = descr.getIRI();
  String lang = descr.getLanguage();
  OWLDataFactory df = mngr.getOWLDataFactory();
  OWLLiteral con = df.getOWLLiteral(value, lang);
  OWLAnnotationProperty prop = df.getOWLAnnotationProperty(iri);
  OWLAxiom ax = df.getOWLAnnotationAssertionAxiom(prop, owlEntity.getIRI(), con);
  return Collections.singletonList(new AddAxiom(mngr.getActiveOntology(), ax));
}
origin: owlcs/owlapi

@Override
public OWLAnnotationAssertionAxiom visit(OWLAnnotationAssertionAxiom ax) {
  return df.getOWLAnnotationAssertionAxiom(t(ax.getProperty()), t(ax.getSubject()),
          t(ax.getValue()), a(ax));
}
origin: owlcs/owlapi

@Override
public OWLAnnotationAssertionAxiom visit(OWLAnnotationAssertionAxiom axiom) {
  return df.getOWLAnnotationAssertionAxiom(get(axiom.getProperty()), get(axiom.getSubject()),
    get(axiom
      .getValue()), anns(axiom));
}
origin: owlcs/owlapi

  @Override
  public void handle(String currentId, String value, String qualifierBlock, String comment) {
    OWLDataFactory df = getDataFactory();
    OWLAnnotationProperty deprecatedProperty = df.getOWLDeprecated();
    OWLLiteral annotationValue = df.getOWLLiteral(true);
    IRI subject = getIRIFromOBOId(currentId);
    OWLAnnotationAssertionAxiom ax = df
      .getOWLAnnotationAssertionAxiom(deprecatedProperty, subject,
        annotationValue);
    applyChange(new AddAxiom(getOntology(), ax));
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public Object visit(OWLAnnotationAssertionAxiom axiom) {
  return visitAxiom(axiom,
    () -> df.getOWLAnnotationAssertionAxiom(t(axiom.getSubject()), t(axiom
      .getAnnotation()), t(axiom.annotations())));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

  protected void addAnnotation(String id, String uriID, OWLLiteral value) {
    IRI subject = getIRIFromOBOId(id);
    OWLAnnotationProperty annotationProperty = getDataFactory()
      .getOWLAnnotationProperty(getIRIFromOBOId(uriID));
    OWLAxiom ax = getDataFactory()
      .getOWLAnnotationAssertionAxiom(annotationProperty, subject, value);
    applyChange(new AddAxiom(getOntology(), ax));
  }
}
origin: owlcs/owlapi

  @Override
  public void handle(String currentId, String value, String qualifierBlock, String comment) {
    HasIRI subject = getConsumer().getCurrentEntity();
    OWLAnnotationProperty property = getDataFactory()
      .getOWLAnnotationProperty(OBOVocabulary.ALT_ID);
    IRI object = getIRIFromOBOId(value);
    OWLAnnotationAssertionAxiom ax = getDataFactory()
      .getOWLAnnotationAssertionAxiom(property, subject.getIRI(),
        object);
    applyChange(new AddAxiom(getOntology(), ax));
  }
}
origin: net.sourceforge.owlapi/oboformat-included-owlapi

  private static void addVersion(OWLOntology ontology, String version, OWLOntologyManager manager){
    OWLDataFactory fac = manager.getOWLDataFactory();
    
    OWLAnnotationProperty ap = fac.getOWLAnnotationProperty( Obo2Owl.trTagToIRI(OboFormatTag.TAG_REMARK.getTag()));
    OWLAnnotation ann = fac.getOWLAnnotation(ap, fac.getOWLLiteral(version));
    
    OWLAxiom ax = fac.getOWLAnnotationAssertionAxiom(ontology.getOntologyID().getOntologyIRI(), ann);
    
    manager.applyChange(new AddAxiom(ontology, ax));

    
  }
}
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: owlcs/owlapi

private void initialiseDataPropertyFrameSections() {
  //@formatter:off
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubDataPropertyOfAxiom(s, o, anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), EQUIVALENT_TO, (s, o, anns) -> df.getOWLEquivalentDataPropertiesAxiom(s,o, anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), DISJOINT_WITH, (s, o, anns) -> df.getOWLDisjointDataPropertiesAxiom(s,o, anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLClassExpression>(x -> parseUnion(), DOMAIN, (s, o, anns) -> df.getOWLDataPropertyDomainAxiom(s, o, anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataRange>(x -> parseDataRange(), RANGE, (s, o, anns) -> df.getOWLDataPropertyRangeAxiom(s, o, anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyCharacteristicAxiom>(this::parseDataPropertyCharacteristic, CHARACTERISTICS, (s, o, anns) -> o.getAnnotatedAxiom(anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), dataPropertyFrameSections);
  //@formatter:on
}
origin: net.sourceforge.owlapi/owlapi-distribution

private void initialiseDataPropertyFrameSections() {
  //@formatter:off
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubDataPropertyOfAxiom(s, o, anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), EQUIVALENT_TO, (s, o, anns) -> df.getOWLEquivalentDataPropertiesAxiom(s,o, anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), DISJOINT_WITH, (s, o, anns) -> df.getOWLDisjointDataPropertiesAxiom(s,o, anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLClassExpression>(x -> parseUnion(), DOMAIN, (s, o, anns) -> df.getOWLDataPropertyDomainAxiom(s, o, anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataRange>(x -> parseDataRange(), RANGE, (s, o, anns) -> df.getOWLDataPropertyRangeAxiom(s, o, anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyCharacteristicAxiom>(this::parseDataPropertyCharacteristic, CHARACTERISTICS, (s, o, anns) -> o.getAnnotatedAxiom(anns)), dataPropertyFrameSections);
  initialiseSection(new AnnAxiom<OWLDataProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), dataPropertyFrameSections);
  //@formatter:on
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLAnnotationAssertionAxiom

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,
  • getOWLDataPropertyAssertionAxiom,
  • getOWLDatatype,
  • getOWLAnnotation

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm 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