예제 #1
0
  public OWLObjectProperty getObjectProperty(String uri) {
    URI propertyURI = GetURLContents.getURI(uri);
    try {
      kb.read(propertyURI);
    } catch (Exception e) {
      e.printStackTrace();
    }

    return kb.getObjectProperty(propertyURI);
  }
예제 #2
0
  public OWLIndividual convertJenaToOWLIndividual(JenaIndividual ind) {
    URI uri = GetURLContents.getURI(ind.getURI());
    try {
      kb.read(uri);
    } catch (Exception e) {
      e.printStackTrace();
    }

    return kb.getIndividual(uri);
  }