I get an ontology from: http://webmind.dico.unimi.it/care/locont-2.0.owl. It contains location, person开发者_如何转开发, activity, etc.
I want to find the location of person by SPARQL querying in Java. The result of this query should be something like this:
("Ali" is located in "Kitchen")
Could someone help me with this query?
Off the top of my head, you'll need something like SELECT { "Ali" ?p ?o }. Then you'll have to restrict ?p to relationships that concern location. Here is a link to some examples; I hope you will find it useful.
精彩评论