コード例 #1
0
  public OWLSIndividual(String baseURL, String name, OWLSModel owlsModel) {
    setURI(baseURL, name);

    model = owlsModel;
    model.createOntology(fullURL);
    model.addImportsToOntology();

    setProperties();
  }
コード例 #2
0
 public String toString() {
   StringWriter wtr = new StringWriter();
   model.getOntology().write(wtr, model.getOntology().getURI());
   String rdfString = wtr.toString();
   return rdfString;
 }