Tabnine Logo
OWLDataFactory.getOWLObjectProperty
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: owlcs/owlapi

/**
 * Gets the oWL object property.
 *
 * @param iri the iri
 * @return the oWL object property
 */
protected OWLObjectProperty getOWLObjectProperty(IRI iri) {
  return df.getOWLObjectProperty(iri);
}
origin: ontop/ontop

public OWLIndividualAxiom translate(ObjectPropertyAssertion opa) {
  IRI roleIRI = IRI.create(opa.getProperty().getName());
  OWLObjectProperty property = dataFactory.getOWLObjectProperty(roleIRI);
  OWLIndividual subject = translate(opa.getSubject());
  OWLIndividual object = translate(opa.getObject());
  return dataFactory.getOWLObjectPropertyAssertionAxiom(property, subject, object);				
}

origin: owlcs/owlapi

@Override
@Nullable
public OWLObjectProperty getOWLObjectProperty(String name) {
  if (objectPropertyNames.contains(name)) {
    return df.getOWLObjectProperty(getIRI(name));
  }
  return null;
}
origin: com.github.ansell.owlapi/owlapi-parsers

final public OWLObjectProperty ObjectPropertyIRI() throws ParseException {
  IRI iri;
  iri = IRI();
  return dataFactory.getOWLObjectProperty(iri);
}
origin: protegeproject/protege

@Nonnull
@Override
public Optional<OWLAxiom> visit(@Nonnull OWLObjectProperty property) {
  return strategy.getDeprecatedObjectPropertyParentIri()
          .map(parent -> dataFactory.getOWLSubObjectPropertyOfAxiom(property, dataFactory.getOWLObjectProperty(parent)));
}
origin: owlcs/owlapi

/**
 * @param dataFactory data factory to use
 * @return set of SKOS object properties
 */
public static Set<OWLObjectProperty> getObjectProperties(OWLDataFactory dataFactory) {
  return asSet(stream().filter(v -> v.entityType.equals(OBJECT_PROPERTY)).map(v -> dataFactory
    .getOWLObjectProperty(v.iri)));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

/**
 * @param dataFactory data factory to use
 * @return set of SKOS object properties
 */
public static Set<OWLObjectProperty> getObjectProperties(OWLDataFactory dataFactory) {
  return asSet(stream().filter(v -> v.entityType.equals(OBJECT_PROPERTY)).map(v -> dataFactory
    .getOWLObjectProperty(v.iri)));
}
origin: owlcs/owlapi

  @Override
  public OWLObjectProperty buildObject() {
    if (pm != null && string != null) {
      return df.getOWLObjectProperty(getString(), getPM());
    }
    return df.getOWLObjectProperty(getIRI());
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  public OWLObjectProperty buildObject() {
    if (pm != null && string != null) {
      return df.getOWLObjectProperty(getString(), getPM());
    }
    return df.getOWLObjectProperty(getIRI());
  }
}
origin: owlcs/owlapi

private static Map<OWLEntity, IRI> remap(Map<IRI, IRI> iriReplacementMap, OWLDataFactory df) {
  Map<OWLEntity, IRI> map = new HashMap<>();
  iriReplacementMap.forEach((k, v) -> {
    map.put(df.getOWLClass(k), v);
    map.put(df.getOWLObjectProperty(k), v);
    map.put(df.getOWLDataProperty(k), v);
    map.put(df.getOWLNamedIndividual(k), v);
    map.put(df.getOWLDatatype(k), v);
    map.put(df.getOWLAnnotationProperty(k), v);
  });
  return map;
}
origin: owlcs/owlapi

/**
 * Tr object prop.
 *
 * @param relId the rel id
 * @return the oWL object property
 */
protected OWLObjectProperty trObjectProp(String relId) {
  return fac.getOWLObjectProperty(oboIdToIRI(mapPropId(relId)));
}
origin: owlcs/owlapi

/**
 * Tr object prop.
 *
 * @param v the v
 * @return the oWL object property expression
 */
protected OWLObjectPropertyExpression trObjectProp(Object v) {
  return fac.getOWLObjectProperty(oboIdToIRI(mapPropId((String) v)));
}
origin: net.sourceforge.owlapi/owlapi-distribution

/**
 * Tr object prop.
 *
 * @param relId the rel id
 * @return the oWL object property
 */
protected OWLObjectProperty trObjectProp(String relId) {
  return fac.getOWLObjectProperty(oboIdToIRI(mapPropId(relId)));
}
origin: net.sourceforge.owlapi/owlapi-distribution

/**
 * Tr object prop.
 *
 * @param v the v
 * @return the oWL object property expression
 */
protected OWLObjectPropertyExpression trObjectProp(Object v) {
  return fac.getOWLObjectProperty(oboIdToIRI(mapPropId((String) v)));
}
origin: com.github.galigator.openllet/openllet-owlapi

default void addObject(final IRI property, final OWLNamedIndividual object)
{
  final OWLObjectProperty owlProperty = getFactory().getOWLObjectProperty(property);
  addObjectPropertyAxiom(owlProperty, getMe(), object);
}
origin: owlcs/owlapi

private OWLObjectProperty getOWLObjectProperty(String name) {
  OWLObjectProperty prop = checker.getOWLObjectProperty(name);
  if (prop == null && objectPropertyNames.contains(name)) {
    prop = df.getOWLObjectProperty(getIRI(name));
  }
  if (prop == null) {
    throw new ExceptionBuilder().withObject().build();
  }
  return prop;
}
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

  @Override
  public void handle(String currentId, String value, String qualifierBlock, String comment) {
    if (Boolean.parseBoolean(value)) {
      OWLObjectProperty prop = getDataFactory()
        .getOWLObjectProperty(getIRIFromOBOId(currentId));
      OWLAxiom ax = getDataFactory().getOWLTransitiveObjectPropertyAxiom(prop);
      applyChange(new AddAxiom(getOntology(), ax));
    }
  }
}
origin: com.hermit-reasoner/org.semanticweb.hermit

public BuiltInPropertyManager(OWLDataFactory factory) {
  m_factory=factory;
  m_topObjectProperty=m_factory.getOWLObjectProperty(IRI.create(AtomicRole.TOP_OBJECT_ROLE.getIRI()));
  m_bottomObjectProperty=m_factory.getOWLObjectProperty(IRI.create(AtomicRole.BOTTOM_OBJECT_ROLE.getIRI()));
  m_topDataProperty=m_factory.getOWLDataProperty(IRI.create(AtomicRole.TOP_DATA_ROLE.getIRI()));
  m_bottomDataProperty=m_factory.getOWLDataProperty(IRI.create(AtomicRole.BOTTOM_DATA_ROLE.getIRI()));
}
public void axiomatizeBuiltInPropertiesAsNeeded(OWLAxioms axioms,boolean skipTopObjectProperty,boolean skipBottomObjectProperty,boolean skipTopDataProperty,boolean skipBottomDataProperty) {
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);
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLObjectProperty

Javadoc

Gets an OWLObjectProperty that has an IRI that is obtained by expanding an abbreviated name using an appropriate prefix mapping. See The OWL 2 Structural Specification for more details.

Popular methods of OWLDataFactory

  • getOWLClass
    Gets an OWL class that has the specified IRI
  • getOWLNamedIndividual
    Gets an OWL individual 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
  • getOWLObjectSomeValuesFrom
    Gets an OWLObjectSomeValuesFrom restriction
  • getOWLEquivalentClassesAxiom,
  • getOWLObjectSomeValuesFrom,
  • getOWLNothing,
  • getOWLObjectComplementOf,
  • getOWLObjectPropertyAssertionAxiom,
  • getOWLAnnotationAssertionAxiom,
  • getOWLDataPropertyAssertionAxiom,
  • getOWLDatatype,
  • getOWLAnnotation

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Permission (java.security)
    Legacy security code; do not use.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • BoxLayout (javax.swing)
  • PhpStorm for WordPress
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