Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上水流宇宙、灯里愛夏、レトラを追加 #562

Merged
merged 21 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a248ebc
上水流宇宙を追加
takayamaki Jun 24, 2024
4110b4f
灯里愛夏を追加
takayamaki Jun 24, 2024
ea51eba
レトラを追加
takayamaki Jun 24, 2024
3379273
ヴイアライヴの3人に所属ブランドを追加
takayamaki Jun 24, 2024
9c82717
ヴイアライヴの3人に876プロへの所属関係を追加
takayamaki Jun 24, 2024
f2002d1
ヴイアライヴの3人に年齢を追加
takayamaki Jun 24, 2024
d070b68
ヴイアライヴの3人に身長を追加
takayamaki Jun 24, 2024
121932b
ヴイアライヴの3人に誕生日を追加
takayamaki Jun 24, 2024
1dab4fd
ヴイアライヴの3人に星座を追加
takayamaki Jun 24, 2024
a19aa47
ヴイアライヴの3人に性別を追加
takayamaki Jun 24, 2024
ba6fd4e
ヴイアライヴの3人に血液型を追加
takayamaki Jun 24, 2024
c8fb917
ヴイアライヴの3人に出身地を追加
takayamaki Jun 24, 2024
be18270
ヴイアライヴの3人に趣味を追加
takayamaki Jun 24, 2024
43e69c3
ヴイアライヴの3人に特技を追加
takayamaki Jun 24, 2024
9d4f48f
ヴイアライヴの3人にイメージカラーを追加
takayamaki Jun 24, 2024
a0c778e
ヴイアライヴの3人にアイドル名鑑URLを追加
takayamaki Jun 24, 2024
8fcf9b3
imas:additionalNameKanaについての定義・制約を追加
takayamaki Jul 4, 2024
c0271e1
レトラの名前の扱いについての議論を反映
takayamaki Jul 4, 2024
42fd8f9
rdflintの姓名整合ルールをadditionalNameの追加に伴い変更
takayamaki Jul 4, 2024
427aed6
Merge branch 'master' into feature/add_va-liv_idollist_url
takayamaki Jul 4, 2024
cdae3a1
愛夏が18歳になったのでageを変更
takayamaki Jul 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .rdflint/rdflint-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ rules:
query: |
PREFIX schema: <http://schema.org/>
PREFIX imas: <https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#>
SELECT ?s ?fn ?gn ?nm ?fnk ?gnk ?nmk
SELECT ?s ?fn ?gn ?an ?nm ?fnk ?gnk ?ank ?nmk
WHERE {
?s schema:familyName ?fn; schema:givenName ?gn; schema:name ?nm;
imas:familyNameKana ?fnk; imas:givenNameKana ?gnk; imas:nameKana ?nmk.
FILTER(LANG(?fn) = 'ja' && LANG(?gn) = 'ja' && LANG(?nm) = 'ja'
&& LANG(?fnk) = 'ja' && LANG(?gnk) = 'ja' && LANG(?nmk) = 'ja')
?s schema:familyName ?fn; schema:givenName ?gn; schema:additionalName ?an; schema:name ?nm;
imas:familyNameKana ?fnk; imas:givenNameKana ?gnk; imas:additionalNameKana ?ank; imas:nameKana ?nmk.
FILTER(LANG(?fn) = 'ja' && LANG(?gn) = 'ja' && LANG(?an) = 'ja' && LANG(?nm) = 'ja'
&& LANG(?fnk) = 'ja' && LANG(?gnk) = 'ja' && LANG(?ank) = 'ja' && LANG(?nmk) = 'ja')
}
valid: |
while(rs.hasNext()) {
r = rs.next()
jn = [r.getLiteral("fn").value + r.getLiteral("gn").value,
r.getLiteral("gn").value + r.getLiteral("fn").value,
r.getLiteral("fn").value + "・" + r.getLiteral("gn").value,
r.getLiteral("gn").value + "・" + r.getLiteral("an").value + "・" + r.getLiteral("fn").value,
r.getLiteral("gn").value + "・" + r.getLiteral("fn").value]
nm = r.getLiteral("nm").value
if (!(nm in jn)) {
Expand All @@ -27,6 +28,7 @@ rules:
jnk = [r.getLiteral("fnk").value + r.getLiteral("gnk").value,
r.getLiteral("gnk").value + r.getLiteral("fnk").value,
r.getLiteral("fnk").value + "・" + r.getLiteral("gnk").value,
r.getLiteral("gnk").value + "・" + r.getLiteral("ank").value + "・" + r.getLiteral("fnk").value,
r.getLiteral("gnk").value + "・" + r.getLiteral("fnk").value]
nmk = r.getLiteral("nmk").value
if (!(nmk in jnk)) {
Expand All @@ -37,15 +39,16 @@ rules:
target: "RDFs/.*"
query: |
PREFIX schema: <http://schema.org/>
SELECT ?s ?fn ?gn ?nm
SELECT ?s ?fn ?gn ?an ?nm
WHERE {
?s schema:familyName ?fn; schema:givenName ?gn; schema:name ?nm
FILTER(LANG(?fn) = 'en' && LANG(?gn) = 'en' && LANG(?nm) = 'en')
?s schema:familyName ?fn; schema:givenName ?gn; schema:additionalName ?an; schema:name ?nm
FILTER(LANG(?fn) = 'en' && LANG(?gn) = 'en' && LANG(?an) = 'en' && LANG(?nm) = 'en')
}
valid: |
while(rs.hasNext()) {
r = rs.next()
jn = [r.getLiteral("fn").value + " " + r.getLiteral("gn").value,
r.getLiteral("gn").value + " " + r.getLiteral("an").value + " " + r.getLiteral("fn").value,
r.getLiteral("gn").value + " " + r.getLiteral("fn").value]
nm = r.getLiteral("nm").value
if (!(nm in jn)) {
Expand Down
96 changes: 96 additions & 0 deletions RDFs/876.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,100 @@
<rdf:type rdf:resource="https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#Idol"/>
</rdf:Description>

<rdf:Description rdf:about="Kamizuru_Cosmo">
<rdf:type rdf:resource="https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#Idol"/>
<schema:familyName xml:lang="ja">上水流</schema:familyName>
<schema:familyName xml:lang="en">Kamizuru</schema:familyName>
<imas:familyNameKana xml:lang="ja">かみずる</imas:familyNameKana>
<schema:givenName xml:lang="ja">宇宙</schema:givenName>
<schema:givenName xml:lang="en">Cosmo</schema:givenName>
<imas:givenNameKana xml:lang="ja">こすも</imas:givenNameKana>
<schema:name xml:lang="ja">上水流宇宙</schema:name>
<schema:name xml:lang="en">Cosmo Kamizuru</schema:name>
<imas:nameKana xml:lang="ja">かみずるこすも</imas:nameKana>
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">上水流宇宙</rdfs:label>
<imas:Brand xml:lang="en">va-liv</imas:Brand>
<schema:memberOf rdf:resource="876Production"/>
<foaf:age rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">17</foaf:age>
<schema:height rdf:datatype="http://www.w3.org/2001/XMLSchema#float">162</schema:height>
<schema:birthDate rdf:datatype="http://www.w3.org/2001/XMLSchema#gMonthDay">--09-12</schema:birthDate>
<imas:Constellation xml:lang="ja">蠍座</imas:Constellation>
<schema:gender rdf:datatype="http://www.w3.org/2001/XMLSchema#string">female</schema:gender>
<imas:BloodType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">B</imas:BloodType>
<schema:birthPlace xml:lang="ja">東京</schema:birthPlace>
<imas:Hobby xml:lang="ja">イラストを描くこと</imas:Hobby>
<imas:Hobby xml:lang="ja">ゲーム</imas:Hobby>
<imas:Hobby xml:lang="ja">食べること</imas:Hobby>
<imas:Talent xml:lang="ja">書道</imas:Talent>
<imas:Talent xml:lang="ja">地獄耳</imas:Talent>
<imas:Color rdf:datatype="http://www.w3.org/2001/XMLSchema#hexBinary">56CCF2</imas:Color>
<imas:IdolListURL rdf:resource="https://idollist.idolmaster-official.jp/detail/210004"/>
</rdf:Description>

<rdf:Description rdf:about="Tomori_Manaka">
<rdf:type rdf:resource="https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#Idol"/>
<schema:familyName xml:lang="ja">灯里</schema:familyName>
<schema:familyName xml:lang="en">Tomori</schema:familyName>
<imas:familyNameKana xml:lang="ja">ともり</imas:familyNameKana>
<schema:givenName xml:lang="ja">愛夏</schema:givenName>
<schema:givenName xml:lang="en">Manaka</schema:givenName>
<imas:givenNameKana xml:lang="ja">まなか</imas:givenNameKana>
<schema:name xml:lang="ja">灯里愛夏</schema:name>
<schema:name xml:lang="en">Manaka Tomori</schema:name>
<imas:nameKana xml:lang="ja">ともりまなか</imas:nameKana>
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">灯里愛夏</rdfs:label>
<imas:Brand xml:lang="en">va-liv</imas:Brand>
<schema:memberOf rdf:resource="876Production"/>
<foaf:age rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">18</foaf:age>
<schema:height rdf:datatype="http://www.w3.org/2001/XMLSchema#float">158</schema:height>
<schema:birthDate rdf:datatype="http://www.w3.org/2001/XMLSchema#gMonthDay">--07-01</schema:birthDate>
<imas:Constellation xml:lang="ja">蟹座</imas:Constellation>
<schema:gender rdf:datatype="http://www.w3.org/2001/XMLSchema#string">female</schema:gender>
<imas:BloodType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">B</imas:BloodType>
<schema:birthPlace xml:lang="ja">福岡</schema:birthPlace>
<imas:Hobby xml:lang="ja">アイドル研究</imas:Hobby>
<imas:Hobby xml:lang="ja">カフェで読書</imas:Hobby>
<imas:Hobby xml:lang="ja">ミュージカル</imas:Hobby>
<imas:Talent xml:lang="ja">料理</imas:Talent>
<imas:Talent xml:lang="ja">利きアイス</imas:Talent>
<imas:Color rdf:datatype="http://www.w3.org/2001/XMLSchema#hexBinary">FF4554</imas:Color>
<imas:IdolListURL rdf:resource="https://idollist.idolmaster-official.jp/detail/210003"/>
</rdf:Description>

<rdf:Description rdf:about="Sara_Letora_Oliveira_Utagawa">
<rdf:type rdf:resource="https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#Idol"/>
<schema:familyName xml:lang="ja">オリヴェイラ・ウタガワ</schema:familyName>
<schema:familyName xml:lang="en">Oliveira Utagawa</schema:familyName>
<imas:familyNameKana xml:lang="ja">おりゔぇいら・うたがわ</imas:familyNameKana>
<schema:givenName xml:lang="ja">サラ</schema:givenName>
<schema:givenName xml:lang="en">Sara</schema:givenName>
<imas:givenNameKana xml:lang="ja">さら</imas:givenNameKana>
<schema:additionalName xml:lang="ja">レトラ</schema:additionalName>
<schema:additionalName xml:lang="en">Letora</schema:additionalName>
<imas:additionalNameKana xml:lang="ja">れとら</imas:additionalNameKana>
<schema:name xml:lang="ja">サラ・レトラ・オリヴェイラ・ウタガワ</schema:name>
<schema:name xml:lang="en">Sara Letora Oliveira Utagawa</schema:name>
<imas:nameKana xml:lang="ja">さら・れとら・おりゔぇいら・うたがわ</imas:nameKana>
<schema:alternateName xml:lang="ja">レトラ</schema:alternateName>
<schema:alternateName xml:lang="en">Letora</schema:alternateName>
<imas:alternateNameKana xml:lang="ja">れとら</imas:alternateNameKana>
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">レトラ</rdfs:label>
<imas:Brand xml:lang="en">va-liv</imas:Brand>
<schema:memberOf rdf:resource="876Production"/>
<foaf:age rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">20</foaf:age>
<schema:height rdf:datatype="http://www.w3.org/2001/XMLSchema#float">159</schema:height>
<schema:birthDate rdf:datatype="http://www.w3.org/2001/XMLSchema#gMonthDay">--11-11</schema:birthDate>
<imas:Constellation xml:lang="ja">蠍座</imas:Constellation>
<schema:gender rdf:datatype="http://www.w3.org/2001/XMLSchema#string">female</schema:gender>
<imas:BloodType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">O</imas:BloodType>
<schema:birthPlace xml:lang="ja">埼玉</schema:birthPlace>
<imas:Hobby xml:lang="ja">寝ること</imas:Hobby>
<imas:Hobby xml:lang="ja">ネイル・メイク</imas:Hobby>
<imas:Hobby xml:lang="ja">雑貨集め</imas:Hobby>
<imas:Talent xml:lang="ja">歌</imas:Talent>
<imas:Talent xml:lang="ja">古着リメイク</imas:Talent>
<imas:Color rdf:datatype="http://www.w3.org/2001/XMLSchema#hexBinary">D7F930</imas:Color>
<imas:IdolListURL rdf:resource="https://idollist.idolmaster-official.jp/detail/210005"/>
</rdf:Description>

</rdf:RDF>
4 changes: 4 additions & 0 deletions URIs/imas-schema.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ imas:familyNameKana a rdf:Property ;
rdfs:comment "姓のよみがなを表すプロパティ" ;
rdfs:label "姓よみがな"@ja .

imas:additionalNameKana a rdf:Property ;
rdfs:comment "ミドルネームのよみがなを表すプロパティ" ;
rdfs:label "ミドルネームよみがな"@ja .

imas:givenNameKana a rdf:Property ;
rdfs:comment "名のよみがなを表すプロパティ" ;
rdfs:label "名よみがな"@ja .
Expand Down
8 changes: 8 additions & 0 deletions constraints/IdolShape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ imas-shape:IdolShape a sh:NodeShape;
"ShinyColors"@en
"Xenoglossia"@en
"Gakuen"@en
"va-liv"@en
"Other"@en # 判断に迷う場合はここ
);
];
Expand Down Expand Up @@ -78,6 +79,13 @@ imas-shape:IdolShape a sh:NodeShape;
sh:datatype rdf:langString;
sh:languageIn ("ja");
];
sh:property [
sh:name "ミドルネームの仮名の制約";
sh:description "仮名は日本語なのでlang=ja";
sh:path imas:additionalNameKana;
sh:datatype rdf:langString;
sh:languageIn ("ja");
];
sh:property [
sh:name "上の名前の仮名の制約";
sh:description "仮名は日本語なのでlang=ja";
Expand Down