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

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • JComboBox (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now