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

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

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

origin: owlcs/owlapi

/**
 * Tr individual.
 *
 * @param instId the inst id
 * @return the oWL individual
 */
protected OWLIndividual trIndividual(String instId) {
  IRI iri = oboIdToIRI(instId);
  return fac.getOWLNamedIndividual(iri);
}
origin: owlcs/owlapi

@Override
@Nullable
public OWLNamedIndividual getOWLIndividual(String name) {
  if (individualNames.contains(name)) {
    return df.getOWLNamedIndividual(getIRI(name));
  }
  return null;
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
@Nullable
public OWLNamedIndividual getOWLIndividual(String name) {
  if (individualNames.contains(name)) {
    return df.getOWLNamedIndividual(getIRI(name));
  }
  return null;
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

/**
 * Tr individual.
 *
 * @param instId the inst id
 * @return the oWL individual
 */
protected OWLIndividual trIndividual(String instId) {
  IRI iri = oboIdToIRI(instId);
  return fac.getOWLNamedIndividual(iri);
}
origin: com.github.galigator.openllet/openllet-owlapi

  public OWLSelfTools(final IRI ontologyIRI, final double version) throws OWLOntologyCreationException
  {
    super(ontologyIRI, version);
    _me = getFactory().getOWLNamedIndividual(ontologyIRI);
  }
}
origin: owlcs/owlapi

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

  @Override
  public OWLNamedIndividual buildObject() {
    if (pm != null && string != null) {
      return df.getOWLNamedIndividual(getString(), getPM());
    }
    return df.getOWLNamedIndividual(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-distribution

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

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    OWLIndividual ind = df.getOWLNamedIndividual(s);
    OWLClass skosConcept = df.getOWLClass(o);
    add(df.getOWLClassAssertionAxiom(skosConcept, ind));
  }
}
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  final public void endElement() throws OWLParserException, UnloadableImportException {
//        URI uri = getNameAttribute();
    individual = getOWLDataFactory().getOWLNamedIndividual(name);
    getParentHandler().handleChild(this);
  }
}
origin: com.github.ansell.pellet/pellet-modularity

private OWLNamedIndividual termToOWLNamedIndividual( ATermAppl c, OWLDataFactory factory ) {
  if ( !ATermUtils.isBnode( c ) ) {
    return factory.getOWLNamedIndividual( IRI.create( c.getName() ) );
  }
  
  return null;
}

origin: net.sourceforge.owlapi/owlapi-parsers

private OWLNamedIndividual getOWLNamedIndividual(String name) {
  OWLNamedIndividual ind = checker.getOWLIndividual(name);
  if (ind == null && individualNames.contains(name)) {
    ind = df.getOWLNamedIndividual(getIRI(name));
  }
  if (ind == null) {
    throw new ExceptionBuilder().withInd().build();
  }
  return ind;
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

private OWLNamedIndividual getOWLNamedIndividual(String name) {
  OWLNamedIndividual ind = checker.getOWLIndividual(name);
  if (ind == null && individualNames.contains(name)) {
    ind = df.getOWLNamedIndividual(getIRI(name));
  }
  if (ind == null) {
    throw new ExceptionBuilder().withInd().build();
  }
  return ind;
}
origin: owlcs/owlapi

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLNamedIndividual individual = df.getOWLNamedIndividual(s);
      add(df.getOWLDeclarationAxiom(individual, anns()));
    }
    consumer.addOWLNamedIndividual(s, true);
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLNamedIndividual individual = df.getOWLNamedIndividual(s);
      add(df.getOWLDeclarationAxiom(individual, anns()));
    }
    consumer.addOWLNamedIndividual(s, true);
  }
}
origin: net.sourceforge.owlapi/owlapi-parsers

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLNamedIndividual individual = df.getOWLNamedIndividual(s);
      add(df.getOWLDeclarationAxiom(individual, anns()));
    }
    consumer.addOWLNamedIndividual(s, true);
  }
}
origin: net.sourceforge.owlapi/jfact

protected synchronized IndividualName pointer(OWLIndividual individual) {
  if (!individual.isAnonymous()) {
    return individualTranslator.getPointerFromEntity(individual.asOWLNamedIndividual());
  } else {
    // XXX work around this issue
    return em.individual(df.getOWLNamedIndividual(IRI.create(individual.toStringID())));
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public void visit(OWLSubObjectPropertyOfAxiom axiom) {
  // subProp some {a} subClassOf supProp some {a}
  OWLIndividual ind = dataFactory
    .getOWLNamedIndividual(IRI.getNextDocumentIRI("http://debugger.com#A"));
  OWLClassExpression sub = dataFactory.getOWLObjectHasValue(axiom.getSubProperty(), ind);
  OWLClassExpression sup = dataFactory.getOWLObjectHasValue(axiom.getSuperProperty(), ind);
  OWLAxiom ax = dataFactory.getOWLSubClassOfAxiom(sub, sup);
  ax.accept(this);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public void visit(OWLSubObjectPropertyOfAxiom axiom) {
  // subProp some {a} subClassOf supProp some {a}
  OWLIndividual ind = dataFactory
    .getOWLNamedIndividual(IRI.getNextDocumentIRI("http://debugger.com#A"));
  OWLClassExpression sub = dataFactory.getOWLObjectHasValue(axiom.getSubProperty(), ind);
  OWLClassExpression sup = dataFactory.getOWLObjectHasValue(axiom.getSuperProperty(), ind);
  OWLAxiom ax = dataFactory.getOWLSubClassOfAxiom(sub, sup);
  ax.accept(this);
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLNamedIndividual

Javadoc

Gets an OWLNamedIndividual 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
  • 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
  • getOWLObjectSomeValuesFrom
    Gets an OWLObjectSomeValuesFrom restriction
  • getOWLEquivalentClassesAxiom,
  • getOWLObjectSomeValuesFrom,
  • getOWLNothing,
  • getOWLObjectComplementOf,
  • getOWLObjectPropertyAssertionAxiom,
  • getOWLAnnotationAssertionAxiom,
  • getOWLDataPropertyAssertionAxiom,
  • getOWLDatatype,
  • getOWLAnnotation

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • JCheckBox (javax.swing)
  • Top 15 Vim 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