congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
OWLDataFactory.getOWLDataPropertyAssertionAxiom
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: net.sourceforge.owlapi/owlapi-distribution

public static OWLDataPropertyAssertionAxiom DataPropertyAssertion(
  OWLDataPropertyExpression property,
  OWLIndividual source, OWLLiteral target) {
  return DF.getOWLDataPropertyAssertionAxiom(property, source, target);
}
origin: owlcs/owlapi

public static OWLDataPropertyAssertionAxiom DataPropertyAssertion(
  OWLDataPropertyExpression property,
  OWLIndividual source, OWLLiteral target, Collection<OWLAnnotation> a) {
  return DF.getOWLDataPropertyAssertionAxiom(property, source, target, a);
}
origin: com.github.galigator.openllet/openllet-owlapi

/**
 * remove axiom from the ontology
 *
 * @param property that carry the data
 * @param subject is the root of the property
 * @param literal is the target of the property
 * @since 2.5.1
 */
default public void removeDataPropertyAxiom(final OWLDataProperty property, final OWLIndividual subject, final OWLLiteral literal)
{
  removeAxiom(getFactory().getOWLDataPropertyAssertionAxiom(property, subject, literal));
}
origin: Galigator/openllet

/**
 * Remove all the value of an data property that are related to an individual. This function is slow and should be optmized.
 *
 * @param property to remove
 * @param subject to consider.
 * @since 2.5.1
 */
default public void removeDataPropertyAxiom(final OWLDataProperty property, final OWLNamedIndividual subject)
{
  removeAxioms(getValues(subject, property).stream().map(value -> getFactory().getOWLDataPropertyAssertionAxiom(property, subject, value)));
}
origin: Galigator/openllet

/**
 * remove axiom from the ontology
 *
 * @param property that carry the data
 * @param subject is the root of the property
 * @param literal is the target of the property
 * @since 2.5.1
 */
default public void removeDataPropertyAxiom(final OWLDataProperty property, final OWLIndividual subject, final OWLLiteral literal)
{
  removeAxiom(getFactory().getOWLDataPropertyAssertionAxiom(property, subject, literal));
}
origin: Galigator/openllet

/**
 * Remove all the value of an data property that are related to an individual. This function is slow and should be optmized.
 *
 * @param property to remove
 * @param subject to consider.
 * @since 2.5.1
 */
default public void removeDataPropertyAxiom(final OWLDataProperty property, final OWLNamedIndividual subject)
{
  removeAxioms(getValues(subject, property).stream().map(value -> getFactory().getOWLDataPropertyAssertionAxiom(property, subject, value)));
}
origin: edu.stanford.protege/org.protege.editor.owl.codegeneration

public void addPropertyValue(OWLNamedIndividual i, OWLDataProperty p, Object o) {
  OWLLiteral literal = getLiteralFromObject(owlDataFactory, o);
  if (literal != null) {
    OWLAxiom axiom = owlDataFactory.getOWLDataPropertyAssertionAxiom(p, i, literal);
    manager.addAxiom(owlOntology, axiom);
  }
  else {
    throw new CodeGenerationRuntimeException("Invalid type for property value object " + o);
  }
}
origin: owlcs/owlapi

@Override
public OWLDataPropertyAssertionAxiom buildObject() {
  return df.getOWLDataPropertyAssertionAxiom(getProperty(), getSubject(), getLiteral(),
    annotations);
}
origin: protegeproject/protege

protected OWLDataPropertyAssertionAxiom createAxiom(OWLDataPropertyConstantPair editedObject) {
  return getOWLDataFactory().getOWLDataPropertyAssertionAxiom(editedObject.getProperty(),
                                getRootObject(),
                                editedObject.getConstant());
}
origin: protegeproject/protege

protected OWLDataPropertyAssertionAxiom createAxiom(OWLDataPropertyConstantPair object) {
  return getOWLDataFactory().getOWLDataPropertyAssertionAxiom(object.getProperty(),
                                getRootObject(),
                                object.getConstant());
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  public void handleTriple(IRI s, IRI p, OWLLiteral o) {
    add(df.getOWLDataPropertyAssertionAxiom(dp(p), ind(s), o, anns()));
    consume(s, p, o);
  }
}
origin: owlcs/owlapi

@Override
public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) {
  return df.getOWLDataPropertyAssertionAxiom(axiom.getProperty(), axiom.getSubject(),
    process(axiom
      .getProperty(), axiom.getObject()));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) {
  return df.getOWLDataPropertyAssertionAxiom(axiom.getProperty(), axiom.getSubject(),
    process(axiom
      .getProperty(), axiom.getObject()));
}
origin: net.sourceforge.owlapi/owlapi

public void visit(OWLDataPropertyAssertionAxiom axiom) {
  axiom.getSubject().accept(this);
  OWLIndividual subj = (OWLIndividual) obj;
  axiom.getProperty().accept(this);
  OWLDataPropertyExpression prop = (OWLDataPropertyExpression) obj;
  axiom.getObject().accept(this);
  OWLLiteral con = (OWLLiteral) obj;
  obj = dataFactory.getOWLDataPropertyAssertionAxiom(prop, subj, con, duplicateAxiomAnnotations(axiom));
}
origin: owlcs/owlapi

@Override
public void visit(OWLDataPropertyAssertionAxiom ax) {
  obj = df.getOWLDataPropertyAssertionAxiom(dup(ax.getProperty()), dup(ax.getSubject()),
    dup(ax.getObject()),
    anns(ax));
}
origin: owlcs/owlapi

@Override
public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) {
  return df
    .getOWLDataPropertyAssertionAxiom(get(axiom.getProperty()), get(axiom.getSubject()),
      get(axiom
        .getObject()), anns(axiom));
}
origin: owlcs/owlapi

@Override
public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom ax) {
  return df.getOWLDataPropertyAssertionAxiom(t(ax.getProperty()), t(ax.getSubject()),
          t(ax.getObject()), a(ax));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) {
  return df
    .getOWLDataPropertyAssertionAxiom(get(axiom.getProperty()), get(axiom.getSubject()),
      get(axiom
        .getObject()), anns(axiom));
}
origin: owlcs/owlapi

@Override
public Object visit(OWLDataPropertyAssertionAxiom axiom) {
  return visitAxiom(axiom,
    () -> df.getOWLDataPropertyAssertionAxiom(t(axiom.getProperty()), t(axiom
      .getSubject()), t(axiom.getObject()), t(axiom.annotations())));
}
origin: com.hermit-reasoner/org.semanticweb.hermit

public void visit(SWRLDataPropertyAtom atom) {
  if (!(atom.getSecondArgument() instanceof SWRLLiteralArgument))
    throwVarError(atom);
  if (!(atom.getFirstArgument() instanceof SWRLIndividualArgument))
    throwVarError(atom);
  OWLIndividual ind=((SWRLIndividualArgument)atom.getFirstArgument()).getIndividual();
  if (ind.isAnonymous())
    throwAnonIndError(atom);
  OWLLiteral lit=((SWRLLiteralArgument)atom.getSecondArgument()).getLiteral();
  addFact(m_factory.getOWLDataPropertyAssertionAxiom(atom.getPredicate().asOWLDataProperty(),ind.asOWLNamedIndividual(),lit));
}
public void visit(SWRLBuiltInAtom atom) {
org.semanticweb.owlapi.modelOWLDataFactorygetOWLDataPropertyAssertionAxiom

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • JCheckBox (javax.swing)
  • Top 17 PhpStorm Plugins
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