问题
I have two separate Jena models, one containing an RDFS ontology and the other containing the statements.
Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements.
What I want is to query the statements model by taking into account the ontology as well. How can I do this?
回答1:
You can query the ontology using SPARQL language and store the result and you can query other statements using any normal querying language.
After that you can combine the results obtained from the above two
来源:https://stackoverflow.com/questions/23856837/rdfs-jena-how-to-query-taking-ontology-into-account