ナレッジグラフを用いたQAシステムのデモ
魚:
PREFIX wd:
PREFIX wdt:
PREFIX wikibase:
select DISTINCT ?s ?o ?oLabel ?p ?prop ?propLabel where{ ?s wdt:P171* ?tax . FILTER(?tax=wd:Q127282 || ?tax=wd:168422 || ?tax=wd:Q59166 || ?tax=wd:Q25371) {?s rdfs:label"#INPUT#"@ja.}union{?s rdfs:label"#INPUT#"@en.} ?s ?p ?o. FILTER(?p=wdt:P225 || ?p=wdt:P105 || ?p=wdt:P171 || ?p=wdt:P18) #FILTER(!regex(str(?o),"http://www.wikidata.org/entity/statement/")) #FILTER(lang(?o)="ja"||lang(?o)="en"||!isLiteral(?o)) OPTIONAL{?prop wikibase:directClaim ?p.} SERVICE wikibase:label { bd:serviceParam wikibase:language "ja,en". } }
質問する(クエリの実行)
[ジャンル選択に戻る]