How to add RDF triples to an OWLOntology?
I have some data coming in from a RabbitMQ. The data is formatted as triples, so a message from the queue could look something like this: :Tom foaf:knows :Anna where : is the standard namespace of the ontology into which I want to import the data, but other prefixes from imports are also possible. The triples consist of subject, property/predicate and object and I know in each message which is which. On the receiving side, I have a Java program with an OWLOntology object that represents the ontology where the newly arriving triples should be stored temporarily for reasoning and other stuff. I