congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
OWLDataFactory.getOWLEntity
Code IndexAdd Tabnine 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)

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
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 21 Best IntelliJ 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