"여성 인물 연표"의 두 판 사이의 차이
hiblue
(→SPARQL 질의문) |
|||
| 13번째 줄: | 13번째 줄: | ||
prefix skos: <http://www.w3.org/2004/02/skos/core#> | prefix skos: <http://www.w3.org/2004/02/skos/core#> | ||
| − | SELECT DISTINCT ?woman ?solarYear | + | SELECT DISTINCT ?woman ?womanBegin ?man ?manBegin ?solarYear |
| − | WHERE { | + | WHERE { |
| + | { | ||
{?woman ekc:hasHusband ?man. } | {?woman ekc:hasHusband ?man. } | ||
UNION | UNION | ||
{?man ekc:hasWife ?woman} | {?man ekc:hasWife ?woman} | ||
| − | OPTIONAL {?man edm:begin ? | + | OPTIONAL {?woman edm:begin ?womanBegin.} |
| − | OPTIONAL {?woman edm:begin ?begin.} | + | OPTIONAL {?man edm:begin ?manBegin.} |
| − | ? | + | |
| − | + | ?womanBegin dhtime:solarYear ?solarYear | |
| + | } | ||
| + | union | ||
| + | { | ||
| + | {?woman ekc:hasHusband ?man. } | ||
| + | UNION | ||
| + | {?man ekc:hasWife ?woman} | ||
| + | OPTIONAL {?woman edm:begin ?womanBegin.} | ||
| + | OPTIONAL {?man edm:begin ?manBegin.} | ||
| + | ?manBegin dhtime:solarYear ?solarYear. filter (!bound(?womanBegin)) | ||
| + | |||
| + | } | ||
| + | } | ||
| + | order by ?woman | ||
</pre> | </pre> | ||
<span class="mw-ui-button {{#switch: {{{color|white}}} | blue = mw-ui-progressive}}" role="button" aria-disabled="false"> | <span class="mw-ui-button {{#switch: {{{color|white}}} | blue = mw-ui-progressive}}" role="button" aria-disabled="false"> | ||
| − | [http://dh.aks.ac.kr:8890/sparql?default-graph-uri=&query=prefix+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0D%0Aprefix+dhtime%3A+%3Chttp%3A%2F%2Fdh.aks.ac.kr%2Fontologies%2Fdhtime%23%3E+%0D%0Aprefix+time%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2006%2Ftime%23%3E+%0D%0Aprefix+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E+%0D%0Aprefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+edm%3A+%3Chttp%3A%2F%2Fwww.europeana.eu%2Fschemas%2Fedm%2F%3E%0D%0Aprefix+ekc%3A%3Chttp%3A%2F%2Fdh.aks.ac.kr%2Fontologies%2Fekc%23%3E%0D%0Aprefix+ekci%3A%3Chttp%3A%2F%2Fdh.aks.ac.kr%2Firi%2Fekc%23%3E%0D%0Aprefix+skos%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0D%0A%0D%0ASELECT+DISTINCT+%3Fwoman+%3FsolarYear%0D%0A++WHERE+%7B%0D%0A++++%7B%3Fwoman+ekc%3AhasHusband+%3Fman.+%7D+%0D%0A++++UNION%0D%0A++++%7B%3Fman+ekc%3AhasWife+%3Fwoman%7D%0D%0AOPTIONAL+%7B% | + | [http://dh.aks.ac.kr:8890/sparql?default-graph-uri=&query=prefix+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0D%0Aprefix+dhtime%3A+%3Chttp%3A%2F%2Fdh.aks.ac.kr%2Fontologies%2Fdhtime%23%3E+%0D%0Aprefix+time%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2006%2Ftime%23%3E+%0D%0Aprefix+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E+%0D%0Aprefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+edm%3A+%3Chttp%3A%2F%2Fwww.europeana.eu%2Fschemas%2Fedm%2F%3E%0D%0Aprefix+ekc%3A%3Chttp%3A%2F%2Fdh.aks.ac.kr%2Fontologies%2Fekc%23%3E%0D%0Aprefix+ekci%3A%3Chttp%3A%2F%2Fdh.aks.ac.kr%2Firi%2Fekc%23%3E%0D%0Aprefix+skos%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0D%0A%0D%0ASELECT+DISTINCT+%3Fwoman+%3FwomanBegin+%3Fman+%3FmanBegin+%3FsolarYear%0D%0A++WHERE++%7B%0D%0A%7B%0D%0A++++%7B%3Fwoman+ekc%3AhasHusband+%3Fman.+%7D+%0D%0A++++UNION%0D%0A++++%7B%3Fman+ekc%3AhasWife+%3Fwoman%7D%0D%0AOPTIONAL+%7B%3Fwoman+edm%3Abegin+%3FwomanBegin.%7D%0D%0AOPTIONAL+%7B%3Fman+edm%3Abegin+%3FmanBegin.%7D%0D%0A%0D%0A%3FwomanBegin+dhtime%3AsolarYear+%3FsolarYear+%0D%0A%7D%0D%0A+union%0D%0A%7B%0D%0A++++%7B%3Fwoman+ekc%3AhasHusband+%3Fman.+%7D+%0D%0A++++UNION%0D%0A++++%7B%3Fman+ekc%3AhasWife+%3Fwoman%7D%0D%0AOPTIONAL+%7B%3Fwoman+edm%3Abegin+%3FwomanBegin.%7D%0D%0AOPTIONAL+%7B%3Fman+edm%3Abegin+%3FmanBegin.%7D%0D%0A+%3FmanBegin+dhtime%3AsolarYear+%3FsolarYear.++filter+%28%21bound%28%3FwomanBegin%29%29%0D%0A%0D%0A%7D%0D%0A%7D%0D%0A+order+by+%3Fwoman&should-sponge=&format=text%2Fhtml&timeout=0&debug=on 결과값 보러가기] |
</span> | </span> | ||
2018년 12월 21일 (금) 18:52 판
SPARQL 질의문
- 여성 인물의 생몰년이 있는 경우는 그 정보를 이용하여
생몰년 정보가 없는 경우에는 혼인 관계를 이용해, 남편의 생몰년으로 인물의 연대를 추정하도록 하여
나타낸 연표입니다.
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix dhtime: <http://dh.aks.ac.kr/ontologies/dhtime#>
prefix time: <http://www.w3.org/2006/time#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix edm: <http://www.europeana.eu/schemas/edm/>
prefix ekc:<http://dh.aks.ac.kr/ontologies/ekc#>
prefix ekci:<http://dh.aks.ac.kr/iri/ekc#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
SELECT DISTINCT ?woman ?womanBegin ?man ?manBegin ?solarYear
WHERE {
{
{?woman ekc:hasHusband ?man. }
UNION
{?man ekc:hasWife ?woman}
OPTIONAL {?woman edm:begin ?womanBegin.}
OPTIONAL {?man edm:begin ?manBegin.}
?womanBegin dhtime:solarYear ?solarYear
}
union
{
{?woman ekc:hasHusband ?man. }
UNION
{?man ekc:hasWife ?woman}
OPTIONAL {?woman edm:begin ?womanBegin.}
OPTIONAL {?man edm:begin ?manBegin.}
?manBegin dhtime:solarYear ?solarYear. filter (!bound(?womanBegin))
}
}
order by ?woman