Slide 25
Slide 25 text
25
クエリ データ例
PREFIX ic:
PREFIX dsv:
select distinct ?category ?area ?name ?place ?datef ?datet where {
?s a ic:イベント型.
?s ic:種別 ?category .
?s dsv:対象地域 ?area .
?s ic:名称/ic:表記 ?name .
?s ic:開催場所/ic:名称/ic:表記 ?place .
?s ic:期間 [ ic:開始日 ?datef; ic:終了日 ?datet ] .
FILTER ((xsd:dateTime(“2019-01-12T00:00:00") <=
xsd:dateTime(?datet) && xsd:dateTime(?datef) <=
xsd:dateTime(“2019-01-12T00:00:00") ||
xsd:dateTime(“2019-01-13T00:00:00”) <=
xsd:dateTime(?datet) && xsd:dateTime(?datef) <=
xsd:dateTime(“2019-01-13T00:00:00"))
&& regex(?category,“学び")
&& regex(?area,“中央")
)
} LIMIT 10
"head": {・・・},
“results”: {・・・
"bindings": [
{
"category": {
"type": "literal",
"value": "芸術・文化|全般"
},
"area": {
"type": "literal",
"value": "中央"
},
"name": {
"type": "literal",
"value": "兵庫県立美術館 特別展「Oh!マツリ☆ゴト 昭和・平成のヒーロー&ピーポー」"
},
"place": {
"type": "literal",
"value": "兵庫県立美術館"
},
"datef": {
"type": "literal",
"value": "2019-01-12"
},
"datet": {
"type": "literal",
"value": "2019-03-17"
}
},・・・
詳細は、以下に掲載しています
https://a093.jp/sparql-kobuilder/