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

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

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

  • 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: protegeproject/protege

  public void createRestrictions(Set<OWLObjectProperty> properties, Set<OWLClass> fillers,
                  Set<OWLClassExpression> result) {
    for (OWLObjectProperty prop : properties) {
      for (OWLClass filler : fillers) {
        result.add(getDataFactory().getOWLObjectSomeValuesFrom(prop, filler));
      }
    }
  }
});
origin: owlcs/owlapi

  @Override
  @Nullable
  protected OWLClassExpression expandOWLObjHasVal(OWLObjectHasValue desc,
    OWLIndividual filler,
    OWLObjectPropertyExpression p) {
    OWLClassExpression result = expandObject(filler, p);
    if (result != null) {
      result = df.getOWLObjectSomeValuesFrom(desc.getProperty(), result);
    }
    return result;
  }
};
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  @Nullable
  protected OWLClassExpression expandOWLObjHasVal(OWLObjectHasValue desc,
    OWLIndividual filler,
    OWLObjectPropertyExpression p) {
    OWLClassExpression result = expandObject(filler, p);
    if (result != null) {
      result = df.getOWLObjectSomeValuesFrom(desc.getProperty(), result);
    }
    return result;
  }
};
origin: protegeproject/webprotege

@Nonnull
public OWLObjectSomeValuesFrom toSomeValuesFrom(@Nonnull OBORelationship relationship) {
  OWLObjectProperty property = relationship.getRelation().getEntity();
  OWLClass filler = relationship.getValue().getEntity();
  return dataFactory.getOWLObjectSomeValuesFrom(property, filler);
}
origin: owlcs/owlapi

  @Override
  public OWLObjectSomeValuesFrom buildObject() {
    return df.getOWLObjectSomeValuesFrom(verifyNotNull(getProperty()), getRange());
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  public OWLObjectSomeValuesFrom buildObject() {
    return df.getOWLObjectSomeValuesFrom(verifyNotNull(getProperty()), getRange());
  }
}
origin: owlcs/owlapi

@Override
public Collection<OWLAxiom> visit(OWLObjectPropertyDomainAxiom axiom) {
  return subClassOf(df.getOWLObjectSomeValuesFrom(axiom.getProperty(), df.getOWLThing()),
    axiom.getDomain());
}
origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLObjectSomeValuesFrom ce) {
  OWLClassExpression filler = ce.getFiller().accept(this);
  if (negated) {
    return df.getOWLObjectAllValuesFrom(ce.getProperty(), filler);
  }
  return df.getOWLObjectSomeValuesFrom(ce.getProperty(), filler);
}
origin: owlcs/owlapi

 final public OWLClassExpression ObjectSomeValuesFrom() throws ParseException {OWLObjectPropertyExpression prop;
  OWLClassExpression filler;
  jj_consume_token(OBJECTSOMEVALUESFROM);
  jj_consume_token(OPENPAR);
  prop = ObjectPropertyExpression();
  filler = ClassExpression();
  jj_consume_token(CLOSEPAR);
return df.getOWLObjectSomeValuesFrom(prop, filler);
}

origin: owlcs/owlapi

@Override
public void visit(OWLObjectPropertyDomainAxiom axiom) {
  // prop some Thing subclassOf domain
  OWLClassExpression sub = dataFactory
    .getOWLObjectSomeValuesFrom(axiom.getProperty(), dataFactory.getOWLThing());
  OWLSubClassOfAxiom ax = dataFactory.getOWLSubClassOfAxiom(sub, axiom.getDomain());
  ax.accept(this);
}
origin: owlcs/owlapi

 final public OWLClassExpression Some() throws ParseException, KRSS2OWLParserException {OWLObjectPropertyExpression prop;
  OWLClassExpression filler;
  jj_consume_token(OPENPAR);
  jj_consume_token(SOME);
  prop = RoleExpression();
  filler = ConceptExpression();
  jj_consume_token(CLOSEPAR);
return df.getOWLObjectSomeValuesFrom(prop, filler);
}

origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLObjectSomeValuesFrom ce) {
  if (ce.getFiller().isAnonymous()) {
    OWLClass name = createNewName();
    axioms.add(getSCA(name, ce.getFiller().accept(this)));
    return ldf.getOWLObjectSomeValuesFrom(ce.getProperty(), name);
  }
  return ce;
}
origin: owlcs/owlapi

@Override
public Object visit(OWLObjectSomeValuesFrom ce) {
  return visit(ce,
    () -> df.getOWLObjectSomeValuesFrom(t(ce.getProperty()), t(ce.getFiller())));
}
origin: owlcs/owlapi

 final public OWLClassExpression Some() throws ParseException {OWLObjectProperty prop;
  OWLClassExpression filler;
  jj_consume_token(OPENPAR);
  jj_consume_token(SOME);
  prop = RoleName();
  filler = ConceptExpression();
  jj_consume_token(CLOSEPAR);
return df.getOWLObjectSomeValuesFrom(prop, filler);
}

origin: net.sourceforge.owlapi/owlapi-distribution

 final public OWLClassExpression Some() throws ParseException, KRSS2OWLParserException {OWLObjectPropertyExpression prop;
  OWLClassExpression filler;
  jj_consume_token(OPENPAR);
  jj_consume_token(SOME);
  prop = RoleExpression();
  filler = ConceptExpression();
  jj_consume_token(CLOSEPAR);
return df.getOWLObjectSomeValuesFrom(prop, filler);
}

origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public void visit(OWLObjectPropertyDomainAxiom axiom) {
  // prop some Thing subclassOf domain
  OWLClassExpression sub = dataFactory
    .getOWLObjectSomeValuesFrom(axiom.getProperty(), dataFactory.getOWLThing());
  OWLSubClassOfAxiom ax = dataFactory.getOWLSubClassOfAxiom(sub, axiom.getDomain());
  ax.accept(this);
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLClassExpression visit(OWLObjectAllValuesFrom ce) {
  OWLClassExpression filler = ce.getFiller().accept(this);
  if (negated) {
    return df.getOWLObjectSomeValuesFrom(ce.getProperty(), filler);
  }
  return df.getOWLObjectAllValuesFrom(ce.getProperty(), filler);
}
origin: owlcs/owlapi

protected OWLClassExpression getOWLClassOrRestriction(String termList) {
  String[] strings = termList.split(" ");
  if (strings.length == 1) {
    return getDataFactory().getOWLClass(getIRIFromOBOId(strings[0]));
  }
  String id0 = strings[0];
  String id1 = strings[1];
  IRI propertyIRI = getConsumer().getRelationIRIFromSymbolicIdOrOBOId(id0);
  OWLObjectProperty prop = getDataFactory().getOWLObjectProperty(propertyIRI);
  OWLClass filler = getDataFactory().getOWLClass(getIRIFromOBOId(id1));
  return getDataFactory().getOWLObjectSomeValuesFrom(prop, filler);
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public void visit(OWLObjectPropertyDomainAxiom axiom) {
  df.getOWLObjectSomeValuesFrom(axiom.getProperty(), df.getOWLThing()).accept(this);
  writeSpace();
  write(SUBCLASS);
  writeSpace();
  axiom.getDomain().accept(this);
}
origin: owlcs/owlapi

  @Override
  public OWLObjectSomeValuesFrom translate(IRI mainNode) {
    getConsumer().consumeTriple(mainNode, RDF_TYPE.getIRI(), OWL_RESTRICTION.getIRI());
    IRI propertyIRI = getConsumer().getResourceObject(mainNode, OWL_ON_PROPERTY, true);
    OWLObjectPropertyExpression property = getConsumer()
      .translateObjectPropertyExpression(verifyNotNull(propertyIRI));
    IRI fillerIRI = getConsumer().getResourceObject(mainNode, OWL_SOME_VALUES_FROM, true);
    OWLClassExpression filler = accessor.translateClassExpression(verifyNotNull(fillerIRI));
    return getDataFactory().getOWLObjectSomeValuesFrom(property, filler);
  }
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLObjectSomeValuesFrom

Javadoc

Gets an OWLObjectSomeValuesFrom restriction

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,
  • getOWLNothing,
  • getOWLObjectComplementOf,
  • getOWLObjectPropertyAssertionAxiom,
  • getOWLAnnotationAssertionAxiom,
  • getOWLDataPropertyAssertionAxiom,
  • getOWLDatatype,
  • getOWLAnnotation

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Option (scala)
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