Tabnine Logo
OWLObject.accept
Code IndexAdd Tabnine to your IDE (free)

How to use
accept
method
in
org.semanticweb.owlapi.model.OWLObject

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

origin: protegeproject/protege

public Icon getIcon(OWLObject owlObject) {
  try {
    icon = null;
    owlObject.accept(this);
    return icon;
  }
  catch (Exception e) {
    return null;
  }
}
origin: owlcs/owlapi

/**
 * A convenience method that obtains the components of an OWL object. Note
 * that by definition, the components of the object include the object
 * itself.
 *
 * @param object The object whose components are to be obtained.
 * @return The component of the specified object.
 */
public Collection<OWLObject> getComponents(OWLObject object) {
  return object.accept(this);
}
origin: owlcs/owlapi

  @SuppressWarnings("unchecked")
  protected <O extends OWLObject> O get(O o) {
    return (O) o.accept(this);
  }
}
origin: owlcs/owlapi

  @SuppressWarnings("unchecked")
  protected <O extends OWLObject> O t(O o) {
    return (O) o.accept(this);
  }
}
origin: owlcs/owlapi

@Nullable
protected Object passToVisitor(OWLObject o) {
  if (visitor != null) {
    o.accept(visitor);
    return null;
  }
  return o.accept(verifyNotNull(visitorEx));
}
origin: owlcs/owlapi

protected void render(Stream<? extends OWLObject> objects) {
  Iterator<? extends OWLObject> it = objects.iterator();
  while (it.hasNext()) {
    it.next().accept(this);
    if (it.hasNext()) {
      sb.append(' ');
    }
  }
}
origin: owlcs/owlapi

@SuppressWarnings({"unchecked",})
protected <O extends OWLObject> O dup(O o) {
  o.accept(this);
  return (O) verifyNotNull(obj);
}
origin: owlcs/owlapi

protected void putSWRLEntity(SWRLArgument i, OWLObject o) {
  if (nodeMap.containsKey(i)) {
    return;
  }
  o.accept(this);
  nodeMap.put(i, getMappedNode(o));
}
origin: owlcs/owlapi

@Override
public String render(OWLObject object) {
  reset();
  object.accept(this);
  return sb.toString();
}
origin: protegeproject/protege

private void renderRestrictionFiller(OWLObject filler) {
  if (!isAtomic(filler)) {
    builder.append("(");
    filler.accept(this);
    builder.append(")");
  }
  else {
    filler.accept(this);
  }
}
origin: owlcs/owlapi

protected void processStream(Stream<?> s) {
  s.forEach(o -> {
    if (o instanceof OWLObject) {
      ((OWLObject) o).accept(this);
    } else if (o instanceof Stream) {
      processStream((Stream<?>) o);
    } else if (o instanceof Collection) {
      processStream(((Collection<?>) o).stream());
    }
  });
}
origin: owlcs/owlapi

@Override
public synchronized String render(OWLObject object) {
  writerDelegate.reset();
  object.accept(ren);
  return writerDelegate.toString();
}
origin: protegeproject/protege

public StyledString getRendering(OWLObject owlObject) {
  ObjectRenderer renderer = new ObjectRenderer();
  owlObject.accept(renderer);
  return renderer.builder.build();
}
origin: protegeproject/protege

public String render(OWLObject object) {
  if (object instanceof OWLOntology){
    return renderOntology((OWLOntology) object);
  }
  writerDelegate.reset();
  object.accept(delegate);
  return writerDelegate.toString();
}
origin: owlcs/owlapi

protected OWLObject deshare(OWLObject o) {
  if (o.hasSharedStructure()) {
    return o.accept(new OWLObjectDesharer(ontology.getOWLOntologyManager()));
  }
  return o;
}
origin: owlcs/owlapi

private void writeRestriction(OWLXMLVocabulary v, OWLPropertyExpression prop,
  OWLObject filler) {
  write(v);
  writeOpenBracket();
  acceptAndSpace(prop);
  filler.accept(this);
  writeCloseBracket();
}
origin: protegeproject/protege

private void renderHasValueRestriction(OWLHasValueRestriction<?> restriction) {
  restriction.getProperty().accept(this);
  renderKeywordWithSpaces(ManchesterOWLSyntax.VALUE);
  restriction.getValue().accept(this);
}
origin: owlcs/owlapi

private OWLTutorialSyntaxObjectRenderer writeRestriction(String str, OWLPropertyExpression prop,
  OWLObject filler) {
  write(str).writeOpenBracket();
  prop.accept(this);
  writeSpace();
  filler.accept(this);
  writeCloseBracket();
  return this;
}
origin: owlcs/owlapi

private <V extends OWLObject> void writeValueRestriction(OWLHasValueRestriction<V> restriction,
  OWLPropertyExpression p) {
  write(EXISTS);
  writeSpace();
  p.accept(this);
  writeRestrictionSeparator();
  write("{");
  restriction.getFiller().accept(this);
  write("}");
}
origin: owlcs/owlapi

protected void createGraph(OWLObject o) {
  RDFTranslator translator = new RDFTranslator(ontology.getOWLOntologyManager(), ontology,
    shouldInsertDeclarations(), occurrences, axiomOccurrences, nextBlankNodeId,
    blankNodeMap);
  deshare(o).accept(translator);
  graph = translator.getGraph();
  triplesWithRemappedNodes = getRDFGraph().computeRemappingForSharedNodes();
}
org.semanticweb.owlapi.modelOWLObjectaccept

Javadoc

Accepts a visitor

Popular methods of OWLObject

  • compareTo
  • isTopEntity
    Determines if this object is either, owl:Thing (the top class), owl:topObjectProperty (the top objec
  • isBottomEntity
    Determines if this object is either, owl:Nothing (the bottom class), owl:bottomObjectProperty (the b
  • isIRI
  • hashIteration
    Iteration for hash codes
  • signature
  • components
  • datatypesInSignature
  • hasSharedStructure
  • isAnonymous
  • isAnonymousExpression
  • isAxiom
  • isAnonymousExpression,
  • isAxiom,
  • isIndividual,
  • isOntology,
  • nestedClassExpressions,
  • toString,
  • typeIndex,
  • classesInSignature,
  • dataPropertiesInSignature

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top PhpStorm 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