0

我想使用此 wikidata 查询返回的 URI 从具有以下属性(名称、团队、团队编号、外观、目标)的足球运动员维基百科信息框中检索信息:

SELECT ?SoccerPlayer ?SoccerPlayerLabel ?Team ?TeamLabel ?TeamNumber ?numMatches ?numGoals ?startTime ?article WHERE 
{?SoccerPlayer wdt:P106 wd:Q937857; 
               p:P54 ?stmt . 
               ?stmt ps:P54 ?Team; 
               pq:P1350 ?numMatches; 
               pq:P1351 ?numGoals; 
               pq:P580 ?startTime . 
               optional {?stmt pq:P1618 ?TeamNumber} filter not exists {?SoccerPlayer p:P54/pq:P580 ?startTimeOther filter(?startTimeOther > ?startTime)} 
               FILTER(?startTime >= "2018-01-01T00:00:00Z"^^xsd:dateTime).
               OPTIONAL { ?article schema:about ?SoccerPlayer . 
               ?article schema:isPartOf <https://en.wikipedia.org/> . } 
               SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".} } limit 200
4

1 回答 1

1

维基百科信息框是无法查询的纯文本。

相反,使用DBpediaWikidata。如果涉及存储在英语维基百科信息框上的数据,DBpedia 可能比 Wikidata 更完整,但除此之外无法为您提供更多信息。相比之下,Wikidata 汇总了来自各种来源的数据,并且可以提供有关没有 Wikipedia 文章的实体的信息。

于 2020-02-05T13:46:46.233 回答