How to fill an ontology from Java?

7

I'm working with ontologies, and I have an OWL file where my ontology is already defined, classes, object properties, and so on. I use Protegé 4.1 to fill these policies by creating the instances of each class. But I'm trying to create these instances directly through the java code, using the OWL API, but I could not even find in the documentation how to do this. So what I want is basically to get the ontology created but no instances, and create those instances in the code itself. Has anyone done this, or know how?

    
asked by anonymous 20.08.2015 / 17:52

1 answer

2

During my masters dissertation I used the jena, which at that time was from hp. That was in 2012. I know jena was donated to apache.

Take a look at Apache Jena . The API for manipulating ontologies remains similar when it was hp. See examples here .

I hope it helps.

    
11.11.2015 / 02:37