jp-textbook / jp-textbook.github.io

Japanese Textbook Linked Open Data (LOD)
https://w3id.org/jp-textbook/
16 stars 1 forks source link

発行中止の教科書の扱い #472

Closed masao closed 3 years ago

masao commented 3 years ago

publisherリンクが作れない問題が出ます。。。

yegusa commented 3 years ago

教科書目録に登場したことがないので、存在しないのよねえ。その出版者は、他の教科書出してるので、あることはありますが。。。例外処理なきがするなあ。

masao commented 3 years ago

では、これ一件しかないので、例外にします。

masao commented 3 years ago

ひとまず出版者や教科書目録が空でもエラーにならないように修正しました。

yegusa commented 3 years ago

これって、本当に問題のあったレコードは検知できるけど、このような例外的なものがあってもできるようになってますよね?念のため確認。

masao commented 3 years ago

はい。例外的なものは以下のようなSHACL検証エラーが出ますが、LOD変換と公開処理自体は問題無くできます。

[info] sh:ShapesFailed FocusNode: textbook:高等学校/2017/コII/352 LiteralValue("Property shape failed")
[info] sh:MinCountConstraintComponent FocusNode: textbook:高等学校/2017/コII/352 LiteralValue("MinCount violation. Expected 1, obtained: 0")
[info] sh:ShapesFailed FocusNode: textbook:高等学校/2017/コII/352 LiteralValue("Property shape failed")
[info] sh:MinCountConstraintComponent FocusNode: textbook:高等学校/2017/コII/352 LiteralValue("MinCount violation. Expected 1, obtained: 0")
[info] sh:ShapesFailed FocusNode: textbook:高等学校/2017/コII/352 LiteralValue("Property shape failed")
[info] sh:MinCountConstraintComponent FocusNode: textbook:高等学校/2017/コII/352 LiteralValue("MinCount violation. Expected 1, obtained: 0")
[info] sh:ShapesFailed FocusNode: textbook:高等学校/2017/コII/352 LiteralValue("Property shape failed")
[info] sh:MinCountConstraintComponent FocusNode: textbook:高等学校/2017/コII/352 LiteralValue("MinCount violation. Expected 1, obtained: 0")
[info] sh:ShapesFailed FocusNode: textbook:高等学校/2017/コII/352 LiteralValue("<https://w3id.org/jp-textbook/高等学校/2017/コII/352> does not have nodeShape https://w3id.org/jp-textbook/TextbookShape because some shapes failed.")
[info] @prefix sh:    <http://www.w3.org/ns/shacl#> .
[info] [ a            sh:ValidationReport ;
[info]   sh:conforms  false ;
[info]   sh:result    [ a                             sh:ValidationResult ;
[info]                  sh:focusNode                  <https://w3id.org/jp-textbook/高等学校/2017/コII/352> ;
[info]                  sh:message                    "Property shape failed" ;
[info]                  sh:resultPath                 <http://schema.org/publisher> ;
[info]                  sh:resultSeverity             sh:Info ;
[info]                  sh:sourceConstraintComponent  sh:ShapesFailed ;
[info]                  sh:sourceShape                _:b0
[info]                ] ;
[info]   sh:result    [ a                             sh:ValidationResult ;
[info]                  sh:focusNode                  <https://w3id.org/jp-textbook/高等学校/2017/コII/352> ;
[info]                  sh:message                    "MinCount violation. Expected 1, obtained: 0" ;
[info]                  sh:resultPath                 <https://w3id.org/jp-textbook/usageYear> ;
[info]                  sh:resultSeverity             sh:Violation ;
[info]                  sh:sourceConstraintComponent  sh:MinCountConstraintComponent ;
[info]                  sh:sourceShape                _:b1
[info]                ] ;
[info]   sh:result    [ a                             sh:ValidationResult ;
[info]                  sh:focusNode                  <https://w3id.org/jp-textbook/高等学校/2017/コII/352> ;
[info]                  sh:message                    "MinCount violation. Expected 1, obtained: 0" ;
[info]                  sh:resultPath                 <https://w3id.org/jp-textbook/catalogue> ;
[info]                  sh:resultSeverity             sh:Violation ;
[info]                  sh:sourceConstraintComponent  sh:MinCountConstraintComponent ;
[info]                  sh:sourceShape                _:b2
[info]                ] ;
[info]   sh:result    [ a                             sh:ValidationResult ;
[info]                  sh:focusNode                  <https://w3id.org/jp-textbook/高等学校/2017/コII/352> ;
[info]                  sh:message                    "Property shape failed" ;
[info]                  sh:resultPath                 <https://w3id.org/jp-textbook/usageYearRange> ;
[info]                  sh:resultSeverity             sh:Info ;
[info]                  sh:sourceConstraintComponent  sh:ShapesFailed ;
[info]                  sh:sourceShape                _:b3
[info]                ] ;
[info]   sh:result    [ a                             sh:ValidationResult ;
[info]                  sh:focusNode                  <https://w3id.org/jp-textbook/高等学校/2017/コII/352> ;
[info]                  sh:message                    "MinCount violation. Expected 1, obtained: 0" ;
[info]                  sh:resultPath                 <https://w3id.org/jp-textbook/usageYearRange> ;
[info]                  sh:resultSeverity             sh:Violation ;
[info]                  sh:sourceConstraintComponent  sh:MinCountConstraintComponent ;
[info]                  sh:sourceShape                _:b3
[info]                ] ;
[info]   sh:result    [ a                             sh:ValidationResult ;
[info]                  sh:focusNode                  <https://w3id.org/jp-textbook/高等学校/2017/コII/352> ;
[info]                  sh:message                    "Property shape failed" ;
[info]                  sh:resultPath                 <https://w3id.org/jp-textbook/catalogue> ;
[info]                  sh:resultSeverity             sh:Info ;
[info]                  sh:sourceConstraintComponent  sh:ShapesFailed ;
[info]                  sh:sourceShape                _:b2
[info]                ] ;
[info]   sh:result    [ a                             sh:ValidationResult ;
[info]                  sh:focusNode                  <https://w3id.org/jp-textbook/高等学校/2017/コII/352> ;
[info]                  sh:message                    "MinCount violation. Expected 1, obtained: 0" ;
[info]                  sh:resultPath                 <http://schema.org/publisher> ;
[info]                  sh:resultSeverity             sh:Violation ;
[info]                  sh:sourceConstraintComponent  sh:MinCountConstraintComponent ;
[info]                  sh:sourceShape                _:b0
[info]                ] ;
[info]   sh:result    [ a                             sh:ValidationResult ;
[info]                  sh:focusNode                  <https://w3id.org/jp-textbook/高等学校/2017/コII/352> ;
[info]                  sh:message                    "Property shape failed" ;
[info]                  sh:resultPath                 <https://w3id.org/jp-textbook/usageYear> ;
[info]                  sh:resultSeverity             sh:Info ;
[info]                  sh:sourceConstraintComponent  sh:ShapesFailed ;
[info]                  sh:sourceShape                _:b1
[info]                ] ;
[info]   sh:result    [ a                             sh:ValidationResult ;
[info]                  sh:focusNode                  <https://w3id.org/jp-textbook/高等学校/2017/コII/352> ;
[info]                  sh:message                    "<https://w3id.org/jp-textbook/高等学校/2017/コII/352> does not have nodeShape https://w3id.org/jp-textbook/TextbookShape because some shapes failed." ;
[info]                  sh:resultSeverity             sh:Info ;
[info]                  sh:sourceConstraintComponent  sh:ShapesFailed ;
[info]                  sh:sourceShape                <https://w3id.org/jp-textbook/TextbookShape>
[info]                ]
[info] ] .
yegusa commented 3 years ago

了解!じゃ、クローズします。