PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX imas: <https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#>
SELECT ?unit (?name as ?member)
WHERE {
?s rdf:type imas:Unit;
schema:name ?unit;
schema:member ?m.
?m schema:name ?name;
filter(regex(str(?unit), "KBKYZD"))
}
{
"head": {
"vars": [ "unit" , "member" ]
} ,
"results": {
"bindings": [
{
"unit": { "type": "literal" , "value": "KBKYZD" } ,
"member": { "type": "literal" , "xml:lang": "ja" , "value": "白坂小梅" }
} ,
(中略、星輝子、輿水幸子、姫川友紀も同様)
{
"unit": { "type": "literal" , "value": "KBKYZD" } ,
"member": { "type": "literal" , "xml:lang": "ja" , "value": "小早川紗枝" }
} ,
{
"unit": { "type": "literal" , "datatype": "https://www.w3.org/TR/xmlschema11-2/#string" , "value": "KBKYZD" } ,
"member": { "type": "literal" , "xml:lang": "ja" , "value": "白坂小梅" }
} ,
(中略、星輝子、輿水幸子、姫川友紀も同様)
{
"unit": { "type": "literal" , "datatype": "https://www.w3.org/TR/xmlschema11-2/#string" , "value": "KBKYZD" } ,
"member": { "type": "literal" , "xml:lang": "ja" , "value": "小早川紗枝" }
}
]
}
}
PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX imas: <https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#>
SELECT (?name as ?member)
WHERE {
?s rdf:type imas:Unit;
schema:name "KBKYZD";
schema:member ?m.
?m schema:name ?name;
}
{
"head": {
"vars": [ "member" ]
} ,
"results": {
"bindings": [
{
"member": { "type": "literal" , "xml:lang": "ja" , "value": "白坂小梅" }
} ,
(中略、星輝子、輿水幸子、姫川友紀も同様)
{
"member": { "type": "literal" , "xml:lang": "ja" , "value": "小早川紗枝" }
}
]
}
}