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

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

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

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

@Override
public IRI visit(IRI iri) {
  for (EntityType<?> entityType : EntityType.values()) {
    OWLEntity entity = df.getOWLEntity(entityType, iri);
    IRI replacementIRI = replacementMap.get(entity);
    if (replacementIRI != null) {
      return replacementIRI;
    }
  }
  return iri;
}
origin: net.sourceforge.owlapi/owlapi

/**
 * Gets an entity that has the same IRI as this entity but is of the specified type.
 * @param entityType The type of the entity to obtain.  This entity is not affected in any way.
 * @return An entity that has the same IRI as this entity and is of the specified type
 */
public <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType) {
  return getOWLDataFactory().getOWLEntity(entityType, iri);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public IRI visit(IRI iri) {
  for (EntityType<?> entityType : EntityType.values()) {
    OWLEntity entity = df.getOWLEntity(entityType, iri);
    IRI replacementIRI = replacementMap.get(entity);
    if (replacementIRI != null) {
      return replacementIRI;
    }
  }
  return iri;
}
origin: com.github.ansell.owlapi/owlapi-parsers

private <E extends OWLEntity> E getErrorEntity(EntityType<E> entityType) {
  IRI iri = IRI.create("http://org.semanticweb.owlapi/error#", "Error"
      + errorCounter.incrementAndGet());
  return dataFactory.getOWLEntity(entityType, iri);
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public IRI visit(IRI iri) {
  for (EntityType<?> entityType : EntityType.values()) {
    OWLEntity entity = df.getOWLEntity(entityType, iri);
    IRI replacementIRI = replacementMap.get(entity);
    if (replacementIRI != null) {
      return replacementIRI;
    }
  }
  return iri;
}
origin: protegeproject/webprotege

public Optional<Item> parseItem(String content) {
  final Optional<IRI> iri = parseIRI(content);
  if(!iri.isPresent()) {
    return Optional.empty();
  }
  E entity = dataFactory.getOWLEntity(entityType, iri.get());
  return Optional.of(createItem(entity));
}
origin: protegeproject/webprotege

public static <T extends OWLEntity> T getFreshOWLEntity(@Nonnull EntityType<T> entityType,
                            @Nonnull String shortName,
                            @Nonnull Optional<String> langTag,
                            @Nonnull OWLDataFactory dataFactory) {
  String iri = getFreshIRIString(shortName, langTag);
  return dataFactory.getOWLEntity(entityType, IRI.create(iri));
}
origin: protegeproject/webprotege

public <E extends OWLEntity> E getRenamedEntity(E entity) {
  IRI renamedIRI = map.get(entity.getIRI());
  if(renamedIRI == null) {
    return entity;
  }
  return (E) dataFactory.getOWLEntity(entity.getEntityType(), renamedIRI);
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public void visit(IRI iri) {
  obj = iri;
  for (EntityType<?> entityType : EntityType.values()) {
    assert entityType != null;
    OWLEntity entity = df.getOWLEntity(entityType, iri);
    OWLEntity replacementIRI = replacementMap.get(entity);
    if (replacementIRI != null) {
      obj = replacementIRI.getIRI();
      break;
    }
  }
}
origin: net.sourceforge.owlapi/owlapi

/**
 * Gets an entity that has the same IRI as this entity but is of the specified type.
 * @param entityType The type of the entity to obtain.  This entity is not affected in any way.
 * @return An entity that has the same IRI as this entity and is of the specified type
 */
public <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType) {
  return getOWLDataFactory().getOWLEntity(entityType, getIRI());
}
origin: net.sourceforge.owlapi/owlapi-distribution

private <E extends OWLEntity> E getErrorEntity(EntityType<E> entityType) {
  IRI iri = IRI.create("http://org.semanticweb.owlapi/error#",
    "Error" + ERRORCOUNTER.incrementAndGet());
  LOGGER.error("Entity not properly recognized, missing triples in input? {} for type {}",
    iri, entityType);
  if (configuration.isStrict()) {
    throw new OWLParserException(
      "Entity not properly recognized, missing triples in input? " + iri + " for type "
        + entityType);
  }
  return df.getOWLEntity(entityType, iri);
}
origin: owlcs/owlapi

private <E extends OWLEntity> E getErrorEntity(EntityType<E> entityType) {
  IRI iri = IRI.create("http://org.semanticweb.owlapi/error#",
    "Error" + ERRORCOUNTER.incrementAndGet());
  LOGGER.error("Entity not properly recognized, missing triples in input? {} for type {}",
    iri, entityType);
  if (configuration.isStrict()) {
    throw new OWLParserException(
      "Entity not properly recognized, missing triples in input? " + iri + " for type "
        + entityType);
  }
  return df.getOWLEntity(entityType, iri);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

private <E extends OWLEntity> E getErrorEntity(EntityType<E> entityType) {
  IRI iri = IRI.create("http://org.semanticweb.owlapi/error#",
    "Error" + ERRORCOUNTER.incrementAndGet());
  LOGGER.error("Entity not properly recognized, missing triples in input? {} for type {}",
    iri, entityType);
  if (configuration.isStrict()) {
    throw new OWLParserException(
      "Entity not properly recognized, missing triples in input? " + iri + " for type "
        + entityType);
  }
  return df.getOWLEntity(entityType, iri);
}
origin: net.sourceforge.owlapi/owlapi-parsers

private <E extends OWLEntity> E getErrorEntity(EntityType<E> entityType) {
  IRI iri = IRI.create("http://org.semanticweb.owlapi/error#",
    "Error" + ERRORCOUNTER.incrementAndGet());
  LOGGER.error("Entity not properly recognized, missing triples in input? {} for type {}",
    iri, entityType);
  if (configuration.isStrict()) {
    throw new OWLParserException(
      "Entity not properly recognized, missing triples in input? " + iri + " for type "
        + entityType);
  }
  return df.getOWLEntity(entityType, iri);
}
origin: net.sourceforge.owlapi/owlapi

/**
 * Gets an entity that has the same IRI as this entity but is of the specified type.
 * @param entityType The type of the entity to obtain.  This entity is not affected in any way.
 * @return An entity that has the same IRI as this entity and is of the specified type
 */
public <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType) {
  return getOWLDataFactory().getOWLEntity(entityType, getIRI());
}
origin: SmartDataAnalytics/DL-Learner

  /**
   * Convert a JENA Node into an OWL entity of the given type.
   * @param node the JENA node
   * @param entityType the type of the OWL entity, e.g. class, property, etc.
   * @return the OWL entity
   */
  public static <T extends OWLEntity> T asOWLEntity(Node node, EntityType<T> entityType) {
    return dataFactory.getOWLEntity(entityType, IRI.create(node.getURI()));
  }
}
origin: owlcs/owlapi

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

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

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

  @Override
  public OWLEntity buildObject() {
    if (pm != null && string != null) {
      return df.getOWLEntity(getEntityType(), getPM().getIRI(getString()));
    }
    return df.getOWLEntity(getEntityType(), getIRI());
  }
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLEntity

Javadoc

Gets an entity that has the specified IRI and is of the specified type.

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

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JList (javax.swing)
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