开发者

Find location of person with SPARQL in Java

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜