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

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

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

origin: owlcs/owlapi

/**
 * Gets the oWL data property.
 *
 * @param iri the iri
 * @return the oWL data property
 */
protected OWLDataProperty getOWLDataProperty(IRI iri) {
  return df.getOWLDataProperty(iri);
}
origin: owlcs/owlapi

/**
 * Translate data property expression.
 *
 * @param iri the iri
 * @return the oWL data property expression
 */
public OWLDataPropertyExpression translateDataPropertyExpression(IRI iri) {
  return df.getOWLDataProperty(iri);
}
origin: net.sourceforge.owlapi/owlapi-parsers

@Override
@Nullable
public OWLDataProperty getOWLDataProperty(String name) {
  if (dataPropertyNames.contains(name)) {
    return df.getOWLDataProperty(getIRI(name));
  }
  return null;
}
origin: owlcs/owlapi

@Override
@Nullable
public OWLDataProperty getOWLDataProperty(String name) {
  if (dataPropertyNames.contains(name)) {
    return df.getOWLDataProperty(getIRI(name));
  }
  return null;
}
origin: com.github.galigator.openllet/openllet-owlapi

/**
 * @param iri property
 * @return property
 * @since 2.5.1
 */
default OWLDataProperty toDataProperty(final IRI iri)
{
  return getFactory().getOWLDataProperty(iri);
}
origin: com.github.ansell.owlapi/owlapi-parsers

final public OWLDataProperty DataPropertyIRI() throws ParseException {
  IRI iri;
  iri = IRI();
  return dataFactory.getOWLDataProperty(iri);
}
origin: owlcs/owlapi

/**
 * @param dataFactory data factory to use
 * @return set of SKOS data properties
 */
public static Set<OWLDataProperty> getDataProperties(OWLDataFactory dataFactory) {
  return asSet(stream().filter(v -> v.entityType.equals(DATA_PROPERTY))
    .map(v -> dataFactory.getOWLDataProperty(
      v.iri)));
}
origin: protegeproject/protege

@Nonnull
@Override
public Optional<OWLAxiom> visit(@Nonnull OWLDataProperty property) {
  return strategy.getDeprecatedDataPropertyParentIri()
          .map(parent -> dataFactory.getOWLSubDataPropertyOfAxiom(property, dataFactory.getOWLDataProperty(parent)));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

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

  @Override
  public OWLDataProperty buildObject() {
    if (pm != null && string != null) {
      return df.getOWLDataProperty(getString(), getPM());
    }
    return df.getOWLDataProperty(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: net.sourceforge.owlapi/owlapi-osgidistribution

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: com.github.monnetproject/ontology.owlapi

protected OWLDataProperty convert(DatatypeProperty prop) {
  if (prop instanceof OWLAPIDatatypeProperty) {
    return ((OWLAPIDatatypeProperty) prop).dataProp;
  } else {
    return factory.getOWLDataProperty(IRI.create(prop.getURI()));
  }
}
origin: edu.stanford.protege/org.protege.owl.server

@Override
public OWLDataProperty read(OWLInputStream in) throws IOException {
  IRI iri = (IRI) in.read();
  return in.getOWLDataFactory().getOWLDataProperty(iri);
}
origin: com.github.galigator.openllet/openllet-owlapi

default void addValue(final IRI property, final String literal)
{
  final OWLDataProperty owlProperty = getFactory().getOWLDataProperty(property);
  addDataPropertyAxiom(owlProperty, getMe(), literal);
}
origin: net.sourceforge.owlapi/org.semanticweb.hermit

protected Node<OWLDataProperty> dataPropertyHierarchyNodeToNode(HierarchyNode<AtomicRole> hierarchyNode) {
  Set<OWLDataProperty> result=new HashSet<>();
  OWLDataFactory factory=getDataFactory();
  for (AtomicRole atomicRole : hierarchyNode.getEquivalentElements())
    result.add(factory.getOWLDataProperty(IRI.create(atomicRole.getIRI())));
  return new OWLDataPropertyNode(result);
}
protected NodeSet<OWLDataProperty> dataPropertyHierarchyNodesToNodeSet(Collection<HierarchyNode<AtomicRole>> hierarchyNodes) {
origin: net.sourceforge.owlapi/owlapi-parsers

private OWLDataProperty getOWLDataProperty(String name) {
  OWLDataProperty prop = checker.getOWLDataProperty(name);
  if (prop == null && dataPropertyNames.contains(name)) {
    prop = df.getOWLDataProperty(getIRI(name));
  }
  if (prop == null) {
    throw new ExceptionBuilder().withData().build();
  }
  return prop;
}
origin: owlcs/owlapi

private OWLDataProperty getOWLDataProperty(String name) {
  OWLDataProperty prop = checker.getOWLDataProperty(name);
  if (prop == null && dataPropertyNames.contains(name)) {
    prop = df.getOWLDataProperty(getIRI(name));
  }
  if (prop == null) {
    throw new ExceptionBuilder().withData().build();
  }
  return prop;
}
origin: owlcs/owlapi

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLDataProperty owlDataProperty = df.getOWLDataProperty(s);
      add(df.getOWLDeclarationAxiom(owlDataProperty, anns()));
    }
    addDp(s, true);
  }
}
origin: net.sourceforge.owlapi/org.semanticweb.hermit

/**
 * @param factory factory
 */
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()));
}
/**
org.semanticweb.owlapi.modelOWLDataFactorygetOWLDataProperty

Javadoc

Gets an OWLDataProperty 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
  • getOWLObjectProperty
    Gets an OWL object property that has the specified IRI
  • getOWLSubClassOfAxiom
  • getOWLClassAssertionAxiom
  • 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

  • Start an intent from android
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • Menu (java.awt)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Table (org.hibernate.mapping)
    A relational table
  • 21 Best Atom Packages for 2021
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