@Ignore @Test public final void testRenderClassDescription() { fail("Not yet implemented"); }
public static void renderClassDescription(PrintStream out, OntClass c, int depth) { indent(out, depth); if (c.isRestriction()) { renderRestriction(out, c.as(Restriction.class)); } else { if (!c.isAnon()) { out.print("Class "); renderURI(out, c.getModel(), c.getURI()); out.print(c.getLocalName()); out.print(" ["); for (Iterator<?> i = c.listLabels(null); i.hasNext(); ) { out.print(((Literal) i.next()).getString() + ", "); } out.print("] "); } else { renderAnonymous(out, c, "class"); } } }
LocalOntology implements Ontology { public static void renderClassDescription(PrintStream out, OntClass c, int depth) { indent(out, depth); if (c.isRestriction()) { renderRestriction(out, c.as(Restriction.class)); } else { if (!c.isAnon()) { out.print("Class "); renderURI(out, c.getModel(), c.getURI()); out.print(c.getLocalName()); out.print(" ["); for (Iterator<?> i = c.listLabels(null); i.hasNext(); ) { out.print(((Literal) i.next()).getString() + ", "); } out.print("] "); } else { renderAnonymous(out, c, "class"); } } } }
LocalOntology implements Ontology { public static void renderClassDescription(PrintStream out, OntClass c, int depth) { indent(out, depth); if (c.isRestriction()) { renderRestriction(out, c.as(Restriction.class)); } else { if (!c.isAnon()) { out.print("Class "); renderURI(out, c.getModel(), c.getURI()); out.print(c.getLocalName()); out.print(" ["); for (Iterator<?> i = c.listLabels(null); i.hasNext(); ) { out.print(((Literal) i.next()).getString() + ", "); } out.print("] "); } else { renderAnonymous(out, c, "class"); } } } LocalOntology(); }
LocalOntology implements Ontology { public static void renderClassDescription(PrintStream out, OntClass c, int depth) { indent(out, depth); if (c.isRestriction()) { renderRestriction(out, c.as(Restriction.class)); } else { if (!c.isAnon()) { out.print("Class "); renderURI(out, c.getModel(), c.getURI()); out.print(c.getLocalName()); out.print(" ["); for (Iterator<?> i = c.listLabels(null); i.hasNext(); ) { out.print(((Literal) i.next()).getString() + ", "); } out.print("] "); } else { renderAnonymous(out, c, "class"); } } } LocalOntology(); Ontology getInstance(); @Override void load(); @Override void load(String[] urls); OntologyParser getParser(); static OntModel getModel(); List<String> getLoadedOntologyResources(); @Override void merge(Ontology o); @Override Iterator<String> subclasses(String entitySearchTerm); @Override Iterator synonyms(String queryKeyPhrase); void addSearchTerm(String label, OntResource resource); Map<OntResource, String> retrieve(String label); static void renderClassDescription(PrintStream out, OntClass c, int depth); }
LocalOntology implements Ontology { public static void renderClassDescription(PrintStream out, OntClass c, int depth) { indent(out, depth); if (c.isRestriction()) { renderRestriction(out, c.as(Restriction.class)); } else { if (!c.isAnon()) { out.print("Class "); renderURI(out, c.getModel(), c.getURI()); out.print(c.getLocalName()); out.print(" ["); for (Iterator<?> i = c.listLabels(null); i.hasNext(); ) { out.print(((Literal) i.next()).getString() + ", "); } out.print("] "); } else { renderAnonymous(out, c, "class"); } } } LocalOntology(); Ontology getInstance(); @Override void load(); @Override void load(String[] urls); OntologyParser getParser(); static OntModel getModel(); List<String> getLoadedOntologyResources(); @Override void merge(Ontology o); @Override Iterator<String> subclasses(String entitySearchTerm); @Override Iterator synonyms(String queryKeyPhrase); void addSearchTerm(String label, OntResource resource); Map<OntResource, String> retrieve(String label); static void renderClassDescription(PrintStream out, OntClass c, int depth); static final Logger LOG; static final String DELIMITER_SEARCHTERM; }