Obtaining start and end date from a DBPedia CareerStation

天涯浪子 提交于 2019-12-11 23:35:59

问题


I am trying to write a query that will return my all CareerStation objects that are associated with Arsenal FC. Then I want to be able to get the start and end dates of these CareerStations, currently I can only get the start date. It may be that only the start date is in the DB but this doesn't make much sense to me. Also I would like to know if there is a way of formatting the date so to remove the parts that aren't the actual year.

Thanks in advance for any pointers.

PREFIX p: <http://dbpedia.org/property/>

select *

where {

    ?careerStation <http://dbpedia.org/ontology/team>     
    <http://dbpedia.org/resource/Arsenal_F.C.> .
    ?careerStation <http://dbpedia.org/ontology/years> ?year

}

order by ?player

Can see query in action here

来源:https://stackoverflow.com/questions/35173122/obtaining-start-and-end-date-from-a-dbpedia-careerstation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!