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

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

Best Java code snippets using org.semanticweb.owlapi.model.OWLDataFactory.getOWLAnonymousIndividual (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: com.github.galigator.openllet/openllet-owlapi

public static OWLAnonymousIndividual AnonymousIndividual()
{
  return _factory.getOWLAnonymousIndividual();
}
origin: owlcs/owlapi

@Override
public OWLAnonymousIndividual buildObject() {
  if (id == null) {
    return df.getOWLAnonymousIndividual();
  }
  return df.getOWLAnonymousIndividual(getId());
}
origin: net.sourceforge.owlapi/owlapi-fixers

@Override
public OWLAnonymousIndividual buildObject() {
  if (id == null) {
    return df.getOWLAnonymousIndividual();
  }
  return df.getOWLAnonymousIndividual(getId());
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLAnonymousIndividual buildObject() {
  if (id == null) {
    return df.getOWLAnonymousIndividual();
  }
  return df.getOWLAnonymousIndividual(getId());
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public OWLAnonymousIndividual buildObject() {
  if (id == null) {
    return df.getOWLAnonymousIndividual();
  }
  return df.getOWLAnonymousIndividual(getId());
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

  @Override
  public OWLAnonymousIndividual getOWLAnonymousIndividual(String nodeId) {
    if (!cf.shouldRemapAllAnonymousIndividualsIds()) {
      return df.getOWLAnonymousIndividual(nodeId);
    }
    OWLAnonymousIndividual toReturn = map.get(nodeId);
    if (toReturn == null) {
      toReturn = df.getOWLAnonymousIndividual();
      map.put(nodeId, toReturn);
    }
    return toReturn;
  }
}
origin: net.sourceforge.owlapi/owlapi

final public OWLAnonymousIndividual AnonymousIndividual() throws ParseException {
 Token t;
 t = jj_consume_token(NODEID);
   String id = t.image.substring(2, t.image.length());
   {if (true) return dataFactory.getOWLAnonymousIndividual(id);}
 throw new Error("Missing return statement in function");
}
origin: edu.stanford.protege/rdf-library

public OWLAnonymousIndividual getAnonymousIndividual(IRI iri) {
  OWLAnonymousIndividual i = iriToAnonymousIndividualMap.get(iri);
  if (i == null) {
    i = factory.getOWLAnonymousIndividual();
    addSurrogateIndividual(i, iri);
  }
  return i;
}
origin: net.sourceforge.owlapi/owlapi

public OWLIndividual getOWLIndividual(String name) {
  if (name.startsWith("_:")) {
    return dataFactory.getOWLAnonymousIndividual(name);
  }
  return getOWLNamedIndividual(name);
}
origin: edu.stanford.protege/org.protege.owl.rdf

public OWLAnonymousIndividual getAnonymousIndividual(IRI iri) {
  OWLAnonymousIndividual i = iriToAnonymousIndividualMap.get(iri);
  if (i == null) {
    i = factory.getOWLAnonymousIndividual();
    addSurrogateIndividual(i, iri);
  }
  return i;
}
origin: com.github.ansell.owlapi/owlapi-parsers

private OWLIndividual getOWLIndividual(String name) {
  if (name.startsWith("_:")) {
    return dataFactory.getOWLAnonymousIndividual(name);
  }
  return getOWLNamedIndividual(name);
}
origin: com.github.ansell.owlapi/owlapi-parsers

final public OWLAnonymousIndividual AnonymousIndividual() throws ParseException {
  Token t;
  t = jj_consume_token(NODEID);
  String id = t.image.substring(2, t.image.length());
  return dataFactory.getOWLAnonymousIndividual(id);
}
origin: protegeproject/protege

public boolean setEditedObject(OWLAnonymousIndividual object) {
  if (object == null) {
    String id = "genid-" + UUID.randomUUID().toString();
    object = editorKit.getModelManager().getOWLDataFactory().getOWLAnonymousIndividual(id);
  }
  frameList.setRootObject(object);
  mainComponent.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
  annotationValueLabel.setIcon(new OWLIndividualIcon());
  annotationValueLabel.setText(editorKit.getModelManager().getRendering(object));
  return true;
}
origin: edu.stanford.protege/protege-editor-owl

public boolean setEditedObject(OWLAnonymousIndividual object) {
  if (object == null) {
    String id = "genid-" + UUID.randomUUID().toString();
    object = editorKit.getModelManager().getOWLDataFactory().getOWLAnonymousIndividual(id);
  }
  frameList.setRootObject(object);
  mainComponent.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
  annotationValueLabel.setIcon(new OWLIndividualIcon());
  annotationValueLabel.setText(editorKit.getModelManager().getRendering(object));
  return true;
}
origin: com.github.ansell.owlapi/owlapi-parsers

protected OWLIndividual getOWLIndividual(IRI iri) {
  if (isAnonymousNode(iri)) {
    return dataFactory.getOWLAnonymousIndividual(iri.toString());
  }
  else {
    return dataFactory.getOWLNamedIndividual(iri);
  }
}
origin: net.sourceforge.owlapi/owlapi

protected OWLIndividual getOWLIndividual(IRI iri) {
  if (isAnonymousNode(iri)) {
    return getDataFactory().getOWLAnonymousIndividual(iri.toString());
  }
  else {
    return getDataFactory().getOWLNamedIndividual(iri);
  }
}
origin: edu.stanford.protege/org.protege.owl.server

@Override
public Object read(OWLInputStream in) throws IOException {
  String id = IOUtils.readString(in.getInputStream());
  return in.getOWLDataFactory().getOWLAnonymousIndividual(id);
}
origin: ontop/ontop

/***
 * Translates from assertion objects into
 * 
 * @param constant
 * @return
 */
public OWLIndividual translate(ObjectConstant constant) {
  if (constant instanceof IRIConstant)
    return dataFactory.getOWLNamedIndividual(IRI.create(((IRIConstant)constant).getIRI().getIRIString()));
  else /*if (constant instanceof BNode)*/ 
    return dataFactory.getOWLAnonymousIndividual(((BNode) constant).getName());
}

origin: ontop/ontop

public OWLAnnotationSubject translateAnnotationSubject(ObjectConstant subject) {
  if (subject instanceof IRIConstant)
    return IRI.create(((IRIConstant) subject).getIRI().getIRIString());
  else if (subject instanceof BNode)
    return dataFactory.getOWLAnonymousIndividual(((BNode) subject).getName());
  else
    throw new UnexceptedAssertionTermException(subject);
}
origin: ontop/ontop

public OWLAnnotationValue translateAnnotationValue(Constant constant) {
  if (constant instanceof ValueConstant)
    return translate((ValueConstant) constant);
  else if (constant instanceof IRIConstant)
    return IRI.create(((IRIConstant) constant).getIRI().getIRIString());
  else if (constant instanceof BNode)
    return dataFactory.getOWLAnonymousIndividual(((BNode) constant).getName());
  else
    throw new UnexceptedAssertionTermException(constant);
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLAnonymousIndividual

Javadoc

Gets an anonymous individual. The node ID for the individual will be generated automatically

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
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • requestLocationUpdates (LocationManager)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JComboBox (javax.swing)
  • JTextField (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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