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

SHACL制約「Value must be an instance of」のエラーで指摘箇所が正しくない場合がある #70

Closed
takemikami opened this issue Oct 29, 2019 · 0 comments · Fixed by #71
Labels
bug Something isn't working

Comments

@takemikami
Copy link
Member

takemikami commented Oct 29, 2019

SHACL制約「Value must be an instance of」のエラーで指摘箇所が正しくない場合がある。
実際にim@sparqlで発生した問題と、期待結果を示す。

発生エラーのCIリンク:
https://circleci.com/gh/imas/imasparql/231?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

発生エラー:

RDFs/Clothes.rdf
  WARN  SHACL violation: (https://sparql.crssnky.xyz/imasrdf/RDFs/detail/Glory_Monochrome_Another2 @https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#Whose https://sparql.crssnky.xyz/imasrdf/RDFs/detail/Watanabe_Minori) "Value must be an instance of <https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#Idol>" (http://www.w3.org/ns/shacl#ClassConstraintComponent) (triple: https://sparql.crssnky.xyz/imasrdf/RDFs/detail/Glory_Monochrome_Another2 - https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#Whose - https://sparql.crssnky.xyz/imasrdf/RDFs/detail/Watanabe_Minori)

制約:

  • Glory_Monochrome_Another2(Clothe)のwhoseはIdolでなければならない

データの状態:

  • Glory_Monochrome_Another2 → whose → Watanabe_Minori
  • Glory_Monochrome_Another2 → whose → Akizuki_Ryo
  • Watanabe_MinoriはIdolとして定義
  • Akizuki_Ryoは未定義
  • Akizuki_Ryo_315, Akizuki_Ryo_876でIdolとして定義

発生しているエラー:

期待されるエラー:

@takemikami takemikami added the bug Something isn't working label Oct 29, 2019
kiridaruma added a commit to kiridaruma/rdflint that referenced this issue Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant